迷彩 潜伏 隐蔽 伪装
分类:
2012-11-23 19:20:21
原文地址:shell脚本自动配置双网卡绑定 作者:niezhenqun
搞定,给个执行权限 chmod +x bond.sh
执行./bond.sh,看效果
---------------------------------华丽的分割线-----------------------------------
[root@nao tmp]# ifconfig
bond0 Link encap:Ethernet HWaddr 08:00:27:6E:72:FE
inet addr:10.1.1.250 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe6e:72fe/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:10954 errors:0 dropped:0 overruns:0 frame:0
TX packets:488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:944060 (921.9 KiB) TX bytes:85171 (83.1 KiB)
eth0 Link encap:Ethernet HWaddr 08:00:27:6E:72:FE
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:5598 errors:0 dropped:0 overruns:0 frame:0
TX packets:422 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:487797 (476.3 KiB) TX bytes:74268 (72.5 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:6E:72:FE
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:5361 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:456563 (445.8 KiB) TX bytes:12305 (12.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1793 errors:0 dropped:0 overruns:0 frame:0
TX packets:1793 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2907560 (2.7 MiB) TX bytes:2907560 (2.7 MiB)
[root@nao tmp]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 08:00:27:6e:72:fe
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 08:00:27:d2:f3:dc
OK,效果已呈现,最熟练的时候可以两分钟搞定,现在两秒搞定,这就是速度,这就是效率。