设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
运维技术 —— LinuxSir.cn
›
服务器架设、应用、维护
›
双网卡,关于bonding之后的问题请教
返回列表
查看:
627
|
回复:
3
双网卡,关于bonding之后的问题请教
[复制链接]
smthining
smthining
当前离线
积分
8
IP卡
狗仔卡
发表于 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
看路由,也没有问题啊
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
smthining
smthining
当前离线
积分
8
IP卡
狗仔卡
楼主
|
发表于 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 Scope
ink
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 Scope
ink
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 Scope
ink
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 Scope
ink
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
回复
支持
反对
使用道具
举报
显身卡
vbghost
vbghost
当前离线
积分
22
IP卡
狗仔卡
发表于 2005-12-9 09:48:10
|
显示全部楼层
期侍中..!!!
....
我需要绑定双网卡....
我今天试试一下...
兄弟解决了吗??
回复
支持
反对
使用道具
举报
显身卡
Yuri
Yuri
当前离线
积分
3231
IP卡
狗仔卡
发表于 2005-12-9 10:18:15
|
显示全部楼层
route add default gateway x.x.x.x dev bond0
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
LFS(LinuxfromScratch)
Redhat/Fedora/CentOS Linux
开源软件专题讨论
Linux 基础讨论区(新手速成)
Ubuntu Linux 专题讨论
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表