快速业务通道

Linux IPBonding网卡冗余安装启动说明书

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-03-31
2245519 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:2305237371 (2.1 GiB) TX bytes:1240369619 (1.1 GiB)

Interrupt:225 Base address:0xc800

eth1 Link encap:Ethernet HWaddr 00:16:EC:AE:07:54

inet6 addr: fe80::216:ecff:feae:754/64 Scope:Link

UP BROADCAST SLAVE MULTICAST MTU:1500 Metric:1

RX packets:99554 errors:0 dropped:0 overruns:0 frame:0

TX packets:291 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:8729599 (8.3 MiB) TX bytes:47044 (45.9 KiB)

Interrupt:217 Base address:0xac00

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:12133 errors:0 dropped:0 overruns:0 frame:0

TX packets:12133 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:18922380 (18.0 MiB) TX bytes:18922380 (18.0 MiB)

5.2 网关连通状态

# ping 192.168.1.1

PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.608 ms

64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.593 ms

64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.800 ms

64 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.515 ms

--- 192.168.1.1 ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3000ms

rtt min/avg/max/mdev = 0.515/0.629/0.800/0.104 ms

5.3 查看bond0状态 拥有帝国一切,皆有可能。欢迎访问phome.net

# cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.1.2 (January 20, 2007)

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: 1

Permanent HW addr: 00:16:ec:ae:07:54

Slave Interface: eth1

MII Status: down

Link Failure Count: 2

Permanent HW addr: 00:50:ba:0c:65:02

5.4 Bond迁移状态

在同一网段用一台机器持续ping Bonding主机,然后拔掉eth0的网线,同时使用其他网络接入服务.

# ping 192.168.1.201

Pinging 192.168.1.201 with 32 bytes of data:

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Reply from 192.168.1.201: bytes=32 time=3ms TTL=64

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Reply from 192.168.1.201: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.1.201:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号