关闭某个网卡

 

[root@ok Desktop]# ifconfig br0 up 开启网桥br0
#给主要个临时的ip
[root@ok Desktop]# ifconfig eth0 192.168.1.112
[root@ok Desktop]# ifconfig
eth0      Link encap:Ethernet  HWaddr 54:EE:75:4E:37:D9  
          inet addr:192.168.1.112  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:20 Memory:f2600000-f2620000 
关闭一个网卡
[root@ok Desktop]# ifconfig eth0 down

 

posted @ 2016-10-23 20:29  bass  阅读(256)  评论(0编辑  收藏  举报