LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 628|回复: 3

双网卡,关于bonding之后的问题请教

[复制链接]
发表于 2005-11-16 15:08:38 | 显示全部楼层 |阅读模式
根据大家伙说的:

#ifconfig eth0 down
#ifconfig eth1 down
#ifconfig bond0 1.1.2.1
#ifenslave bond0 eth0
#ifenslave bond0 eth1

这样之后,ifconfig确实可以看到bond0这个借口了
地址也正确,但是看不到网关
但是系统无法上网了,不能ping通外面

而且,我vi /etc/network/interfaces的时候
看不到bind0

只有eth1,eth0

看路由,也没有问题啊
 楼主| 发表于 2005-11-16 15:35:35 | 显示全部楼层
bond0     Link encap:Ethernet  HWaddr 00:50:BA:CF:32:2C
          inet addr:166.111.180.5  Bcast:166.111.255.255  Mask:255.255.0.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scopeink
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:60794 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26575 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:28906526 (27.5 MiB)  TX bytes:3288914 (3.1 MiB)

eth0      Link encap:Ethernet  HWaddr 00:00:E8:4E:09:C5
          inet addr:192.168.40.1  Bcast:192.168.40.255  Mask:255.255.255.0
          inet6 addr: fe80::200:e8ff:fe4e:9c5/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31913 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4257602 (4.0 MiB)  TX bytes:27952080 (26.6 MiB)
          Interrupt:177 Base address:0xc000

eth1      Link encap:Ethernet  HWaddr 00:50:BA:CF:32:2C
          inet addr:166.111.180.5  Bcast:166.111.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:baff:fecf:322c/64 Scopeink
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:57673 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26547 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28611891 (27.2 MiB)  TX bytes:3286786 (3.1 MiB)
          Interrupt:169 Base address:0xc400

eth2      Link encap:Ethernet  HWaddr 00:50:BA:CF:32:2C
          inet addr:166.111.180.5  Bcast:166.111.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:baff:fecf:322c/64 Scopeink
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:3121 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:294635 (287.7 KiB)  TX bytes:2128 (2.0 KiB)


douguimei:/home/yaya# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
166.111.0.0     *               255.255.0.0     U     0      0        0 bond0
166.111.0.0     *               255.255.0.0     U     0      0        0 eth1
166.111.0.0     *               255.255.0.0     U     0      0        0 eth2

douguimei:/home/yaya# route add default gateway 166.111.180.126
douguimei:/home/yaya# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
166.111.0.0     *               255.255.0.0     U     0      0        0 bond0
166.111.0.0     *               255.255.0.0     U     0      0        0 eth1
166.111.0.0     *               255.255.0.0     U     0      0        0 eth2
default         166.111.180.126 0.0.0.0         UG    0      0        0 bond0
回复 支持 反对

使用道具 举报

发表于 2005-12-9 09:48:10 | 显示全部楼层
期侍中..!!!
....
我需要绑定双网卡....
我今天试试一下...
兄弟解决了吗??
回复 支持 反对

使用道具 举报

发表于 2005-12-9 10:18:15 | 显示全部楼层
route add default gateway x.x.x.x dev bond0
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表