|
发表于 2004-9-18 12:19:00
|
显示全部楼层
我自己看ifconfig 的帮助做的,不知道对不对哈
[root@Key root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0A:E6:0C:6A:3E
inet addr:192.168.0.185 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10544 errors:0 dropped:0 overruns:0 frame:0
TX packets:9776 errors:0 dropped:0 overruns:0 carrier:0
collisions:2723 txqueuelen:100
RX bytes:8895626 (8.4 Mb) TX bytes:1501994 (1.4 Mb)
Interrupt:11 Base address:0x6000
[root@Key root]# ifconfig eth0 down
[root@Key root]# ifconfig eth0 hw ether 010101010101
[root@Key root]# ifconfig eth0 up
[root@Key root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 01:01:01:01:01:01
inet addr:192.168.0.185 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10544 errors:0 dropped:0 overruns:0 frame:0
TX packets:9776 errors:0 dropped:0 overruns:0 carrier:0
collisions:2723 txqueuelen:100
RX bytes:8895626 (8.4 Mb) TX bytes:1501994 (1.4 Mb)
Interrupt:11 Base address:0x6000
[root@Key root]# |
|