论坛风格切换切换到宽版
  • 1165阅读
  • 2回复

[问题求助]关于bond的问题,bond之后为什么网关找不到,请多多帮助! [复制链接]

上一主题 下一主题
离线ft16.
 
发帖
2054
C币
-198567
威望
421
贡献值
2
银元
0
铜钱
4653
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
在red hat en.terprise .advance server 下做了双网卡的bond    外汇
按照精华贴子里的步骤。
我的路由表如下:
Kernel .IP routing table    美容
Destina.tion     Gateway         Genmask    .     Flags Metric R.ef    Use Iface服务器
202.196.2..0    *          .     255.255.255.0.   U     0      0        0 bond0.
20.2.196.2.0   . *               255.255.255.0   U     0      0        0 eth0.
202..196.2.0    *               255.255.255.0   U     0      0      .  0 eth1             汽车
127.0.0.0       *      .         255.0.0.0  .     U     0      0        0 lo(        游戏          )

ifconfig如下:
bond0     Link enc.ap:Ethernet  HWaddr 00:0C.:76:4E:37:87  [成人用品]
        .  inet addr:202.196.2.4  Bcast:202.196.2.255  Mask:255.255.255..0    外汇
          UP B.ROADCAST RUNNING MASTER MULTICAST  MTU.:1500  Metric:1              乙肝
          RX packets:110692 erro.rs:0 dropped:0. overruns:0 frame:0域名
          TX packets:204308 errors:0 droppe.d.:0 overruns:0 carrier:0.
         . collisions:0 txq.ueuelen:0 电影
          RX bytes:7805441 (7.4 Mb)  TX bytes:.309598822. (295.2 Mb)

eth0      .Link encap:Ethernet  H.Waddr 00:0C:76:4E:37:87      外汇
          inet addr:202.196.2.4  Bcast:.202.196.2.255  Mask:255.255.2.55.0    外汇
          UP BROADCA.ST RUNNING SLAVE MULTICAST  MTU:1500 . Metric:1电脑
          RX packet.s:5333 errors:0 dr.opped:0 overruns:0 frame:0--------------彩票
         . TX packets:70 errors:0 dropped:.0 overruns:0 carrier:0虚拟主机
          collisions:0 txque.uele.n:1000 .
          RX bytes.:401601 (392.1 K.b)  TX bytes:6161 (6.0 Kb)--- 印刷
         . Interrupt:1.1 Base address:0xa000 Memory:f7000000-f7020000 (广告)

eth1      Link encap:Ethernet  HWaddr 00:0C:76:4E.:37:8.7  域名
        .  inet a.ddr:202.196.2.4  Bcast:202.196.2.255  Mask:255.255.255.0(广告)
          UP BROADCAST R.UNNING SLAVE MULTICAST  MTU:1500  Metri.c:1    外汇
          R.X packets:105359 errors:0. dropped:0 overruns:0 frame:0.
          .TX packets:204238 errors:0 dropped:0 overru.ns:0 carrier:0健康
.         collis.ions:0 txqueuelen:1000 --- 印刷
          RX bytes.:7403840 (7.0 Mb.)  TX bytes:309592661 (295.2 Mb).
          .I.nterrupt:10 Base address:0xc000 Memory:f4000000-f4020000 健康

lo        Link enc.ap:Local Loopb.ack             鲜花
          inet add.r:127.0..0.1  Mask:255.0.0.0学习
. .        UP LOOPBACK RUNNING  MTU:16436  Metric:1.
          RX packets:5042 errors:0 .dr.opped:0 overruns:0 frame:0.
          TX packets:5.042. errors:0 dropped:0 overruns:0 carrier:0.
          collis.ions:0 txqu.euelen:0 电脑
          RX bytes:.369943 (361.2 Kb)  TX bytes:369943 (361..2 Kb).

现在问题如下:
1。为什么我将两个网卡bond之后,网关就找不到了,在/etc/sysconfig/.network-s.cript/ifcfg-bond0 中网关是有的服务器
在/etc/sysconfig/network 中网关也加.了,但是就出不了子网,苦闷.呀!!!            杀毒

2。做好bond之后.,怎么判断是否起了作用,是不是拔掉一.根网线之后,ping 包隔一个出现一次,现在总感觉,我的只是一块网卡起作用?             汽车

各.位老.大,帮帮小弟吧,本以为做好了,现在除了本网段,别的都不能访问,郁闷呀!(广告)

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线pchhh.
发帖
1960
C币
-235489
威望
365
贡献值
1
银元
0
铜钱
4343
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13


QUOTE:原帖由 "zcmmhu" 发表:
在red hat enterprise advance server 下做了双网卡的bond
按照精华贴子里的步骤。
我的路由表如下:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface..........


route add default gw xx.xx.xx.xx bond0加在启动脚本里面
bond应该有4种模式:
mode
        Specifies one of four bonding policies. The default is round-robin.
        Possible values are:

        0       Round-robin policy: Transmit in a sequential order from the
                first available slave through the last. This mode provides
                load balancing and fault tolerance.

        1       Active-backup policy: Only one slave in the bond is active. A
                different slave becomes active if, and only if, the active slave
                fails. The bond's MAC address is externally visible on only
                one port (network adapter) to avoid confusing the switch.
                This mode provides fault tolerance.


        2       XOR policy: Transmit based on [(source MAC address XOR'd with
                destination MAC address) modula slave count]. This selects the
                same slave for each destination MAC address. This mode provides
                load balancing and fault tolerance.

        3       Broadcast policy: transmits everything on all slave interfaces.
                This mode provides fault tolerance.



pls read /usr/src/linux/Documentation/networking/bonding.txt to get further info.

离线smilei34516.
发帖
2024
C币
-140163
威望
393
贡献值
1
银元
-1
铜钱
4592
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
十分感谢这位老兄,我先去看看!
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个