rh9下如何修改网卡的MAC地址?
试过一些方法可是不行,大家能给个方法吗? 我也有此困难,那位大侠指点 > ifconfig --helpUsage:
ifconfig [-a] [-i] [-v] [-s] <interface> [[<AF>] <address>]
[add <address>[/<prefixlen>]]
[del <address>[/<prefixlen>]]
[[-]broadcast [<address>]][[-]pointopoint [<address>]]
[netmask <address>][dstaddr <address>][tunnel <address>]
[outfill <NN>] [keepalive <NN>]
[hw <HW> <address>][metric <NN>][mtu <NN>]
[[-]trailers][[-]arp][[-]allmulti]
[multicast][[-]promisc]
[mem_start <NN>][io_addr <NN>][irq <NN>][media <type>]
[txqueuelen <NN>]
[[-]dynamic]
[up|down] ...
<HW>=Hardware Type.
List of possible hardware types:
loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adap
tive Serial Line IP)
strip (Metricom Starmode IP) ash (Ash) ether (Ethernet)
tr (16/4 Mbps Token Ring) tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel)
ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB)
arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device)
sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI)
irda (IrLAP) ec (Econet) x25 (generic X.25)
<AF>=Address family. Default: inet
List of possible address families:
unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE)
ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet)
ash (Ash) x25 (CCITT X.25)
看见那一行 hw 了吧?:mrgreen:
> ifconfig
eth0 Link encap:EthernetHWaddr 00:E0:4C:39:09:50
inet addr:192.168.0.53Bcast:192.168.0.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:66748 errors:771 dropped:0 overruns:0 frame:0
TX packets:62155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76917133 (73.3 Mb)TX bytes:4910236 (4.6 Mb)
Interrupt:11 Base address:0xd000 修改/etc/sysconfig/network-scripts/ifcfg-eth0文件。
在里面添加
HWADDR=xx:xx:xx:xx:xx:xx
注意中间是冒号,不是分号。 请问 :-D 修改mac地址有什么用啊??
页:
[1]