免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1923 | 回复: 0
打印 上一主题 下一主题

PING该Bonding网关时出现(DUP!) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-10 13:05 |只看该作者 |倒序浏览

在一个机器上配置Bonding时,把二个网口捆绑在一起,当二个网口全是RUNNING状态时,PING该Bonding网关时,问题出现(DUP!)。当把其中一个网口DOWN后,PING该Bonding网关时没有出现(DUP!)。
[email=root@real01]root@real01[/email]
/]# cd /
[root@real01 /]# cd etc
[root@real01 rc.d]# more rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
ifenslave bond0 eth0 eth1
ifenslave bond1 eth2 eth3
route add -net 172.16.0.0 netmask 255.255.0.0 gw 172.16.142.1
[root@real01 ~]# ifconfig eth2 up
[root@real01 ~]# ifconfig
bond0     Link encap:Ethernet  HWaddr 00:15:17:3D:B1:82  
          inet addr:172.16.142.201  Bcast:172.16.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1317779 errors:4 dropped:0 overruns:0 frame:2
          TX packets:54984 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:101044058 (96.3 MiB)  TX bytes:8813196 (8.4 MiB)

bond1     Link encap:Ethernet  HWaddr 00:1D:09:0E:72:38  
          inet addr:218.30.119.229  Bcast:218.30.119.255  Mask:255.255.255.224
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:665296 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:44456582 (42.3 MiB)  TX bytes:6899077 (6.5 MiB)

eth0      Link encap:Ethernet  HWaddr 00:15:17:3D:B1:82  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:664319 errors:2 dropped:0 overruns:0 frame:1
          TX packets:27478 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50596556 (48.2 MiB)  TX bytes:4477290 (4.2 MiB)
          Base address:0xece0 Memory:fc3e0000-fc400000

eth1      Link encap:Ethernet  HWaddr 00:15:17:3D:B1:82  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:653460 errors:2 dropped:0 overruns:0 frame:1
          TX packets:27506 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50447502 (48.1 MiB)  TX bytes:4335906 (4.1 MiB)
          Base address:0xecc0 Memory:fc3a0000-fc3c0000

eth2      Link encap:Ethernet  HWaddr 00:1D:09:0E:72:38  
          UP BROADCAST SLAVE 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:169 Memory:f8000000-f8012100

eth3      Link encap:Ethernet  HWaddr 00:1D:09:0E:72:38  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:665296 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:44456582 (42.3 MiB)  TX bytes:6899077 (6.5 MiB)
          Interrupt:169 Memory:f4000000-f4012100

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:80 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6380 (6.2 KiB)  TX bytes:6380 (6.2 KiB)

lo:0      Link encap:Local Loopback  
          inet addr:172.16.142.204  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
[root@real01 network-scripts]#  netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
218.30.119.224  0.0.0.0         255.255.255.224 U         0 0          0 bond1
172.16.142.0    0.0.0.0         255.255.255.0   U         0 0          0 bond0
172.16.0.0      172.16.142.1    255.255.0.0     UG        0 0          0 bond0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 bond1
0.0.0.0         218.30.119.226  0.0.0.0         UG        0 0          0 bond1

[root@real01 ~]# ping 218.30.119.226
PING 218.30.119.226 (218.30.119.226) 56(84) bytes of data.
64 bytes from 218.30.119.226: icmp_seq=1 ttl=255 time=2.50 ms
64 bytes from 218.30.119.226: icmp_seq=1 ttl=255 time=2.51 ms (DUP!)
64 bytes from 218.30.119.226: icmp_seq=2 ttl=255 time=5.52 ms
64 bytes from 218.30.119.226: icmp_seq=2 ttl=255 time=5.52 ms (DUP!)

[root@real01 ~]# ifconfig eth2 down
[root@real01 ~]# ifconfig
bond0     Link encap:Ethernet  HWaddr 00:15:17:3D:B1:82  
          inet addr:172.16.142.201  Bcast:172.16.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1318466 errors:4 dropped:0 overruns:0 frame:2
          TX packets:55056 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:101090959 (96.4 MiB)  TX bytes:8825878 (8.4 MiB)

bond1     Link encap:Ethernet  HWaddr 00:1D:09:0E:72:38  
          inet addr:218.30.119.229  Bcast:218.30.119.255  Mask:255.255.255.224
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:665815 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53740 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:44491758 (42.4 MiB)  TX bytes:6901831 (6.5 MiB)

eth0      Link encap:Ethernet  HWaddr 00:15:17:3D:B1:82  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:664658 errors:2 dropped:0 overruns:0 frame:1
          TX packets:27514 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50619721 (48.2 MiB)  TX bytes:4484482 (4.2 MiB)
          Base address:0xece0 Memory:fc3e0000-fc400000

eth1      Link encap:Ethernet  HWaddr 00:15:17:3D:B1:82  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:653808 errors:2 dropped:0 overruns:0 frame:1
          TX packets:27542 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50471238 (48.1 MiB)  TX bytes:4341396 (4.1 MiB)
          Base address:0xecc0 Memory:fc3a0000-fc3c0000

eth3      Link encap:Ethernet  HWaddr 00:1D:09:0E:72:38  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:665760 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53729 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:44487782 (42.4 MiB)  TX bytes:6900709 (6.5 MiB)
          Interrupt:169 Memory:f4000000-f4012100

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:80 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6380 (6.2 KiB)  TX bytes:6380 (6.2 KiB)

lo:0      Link encap:Local Loopback  
          inet addr:172.16.142.204  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
[root@real01 ~]# ping 218.30.119.226
PING 218.30.119.226 (218.30.119.226) 56(84) bytes of data.
64 bytes from 218.30.119.226: icmp_seq=1 ttl=255 time=2.47 ms
64 bytes from 218.30.119.226: icmp_seq=2 ttl=255 time=2.77 ms
64 bytes from 218.30.119.226: icmp_seq=3 ttl=255 time=2.53 ms
64 bytes from 218.30.119.226: icmp_seq=4 ttl=255 time=4.05 ms
64 bytes from 218.30.119.226: icmp_seq=5 ttl=255 time=3.45 ms


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/33556/showart_492796.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP