linuxdeepin如何捆绑双网卡(已解决)
Tofloor
poster avatar
ruanhuachang
deepin
2012-04-24 04:47
Author
如题,如在linuxdeepin下如何捆绑双网卡,在百度上查了一些linux安装双网卡方法的文档,可是很无奈,linuxdeepin10.06没有相关文件,能提供个这方面的详细一点的讲解吗?学习中......
Reply Favorite View the author
All Replies
cxbii
deepin
2012-04-24 06:11
#1
楼主把情况具体说出来,大家才可以帮你解决


如果我说ld可能应该不会提供,楼主先不要生气
但我们可以帮楼主找资料,解决问题!
ld是个linux'的发行版,它的最大努力方向是开发软件(例如正在开发的音乐播放器)
定制gnome shell的ui,至于硬件问题,语言包问题。显卡驱动问题。。。
这些ld目前对此都是没什么办法的,楼主不要责怪ld
目前ld资源有限,目前只能专注最重要的东西!其他的只能力所能及的帮助
但以后ld发展起来了!以上的方面只要能解决的,ld应该都会出力的!
Reply View the author
FEI17
deepin
2012-04-24 06:18
#2
如题,如在linuxdeepin下如何捆绑双网卡,在百度上查了一些linux安装双网卡方法的文档,可是很无奈,linuxdeepin10.06没有相关文件,能提供个这方面的详细一点的讲解吗?学习中......

查技术资料用google
百度会让你崩溃
Reply View the author
cnchanghai
deepin
2012-04-25 02:38
#3
不知道你要用双网卡做啥! 最好能说明下
Reply View the author
ruanhuachang
deepin
2012-04-25 04:17
#4
哦,大大们已说得很明白了,起因只是因为多了一块网卡,闲着想多了。
Reply View the author
tuhaihe
deepin
2012-04-25 19:09
#5
2 楼说的在理。LD 只能专注于自己能力范围之内的。

其实,有些问题可以搜索下 Ubuntu 这方面的解决方法。在 Ubuntu 下的解决方法大部分还是适用于 LD 下的。寻找问题答案比较好的地方是 askubuntu
Reply View the author
jhkwei
deepin
2012-04-25 20:29
#6
修改/etc/network/interfaces

auto lo
iface lo inet loopback


auto eth0
iface eth0 inet static
address 192.168.200.99
netmask 255.255.255.0
gateway 192.168.200.100

auto eth1
iface eth1 inet static
address 192.168.200.100
netmask 255.255.255.0
gateway 192.168.200.100
Reply View the author
feng32
deepin
2012-04-26 20:24
#7
LZ是想要把Linux主机当成一个路由器,还是想做双线接入,还是只配置一个更简单的网络
Reply View the author
ruanhuachang
deepin
2012-04-28 19:54
#8
其实我对linux一无所知,只是想和windows一样弄个软件和nic一样效果,而linux下原来有这么多个方面术语我是一点也不知道的,好在得前辈们指点,搜索的关键字改成ubuntu,立即就有许多资料索到了,只是仍在学习中,在这先行谢个各位了,如是做到了我也会把方法贴出来,望大家指点更正.
Reply View the author
ruanhuachang
deepin
2012-05-02 04:06
#9
经过网上资料的东拉西拼,终于有个影了,大概如下:
1.检查系统是否符合这两个要求:

  [root@node1 bin]# lsmod | grep bond

  bonding 65128 0

  说明该模块已经加载

  安装ifensalve,之后一般在/sbin 路径下面可查到
  [root@node1 bin]# which ifenslave

  /sbin/ifenslave

  说明该使用工具也存在。
2./etc/network/interfaces(这是我改后的文件内容,天真的为配合dnsmasq而加上了127.0.0.1这一段,因为不知为何后来在屏幕右下方没了网络连接的图标,不能编辑连接属性,网络连接那里手工添加连接又无反应,就试了一下这样)
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto bond0
iface bond0 inet static
address 192.168.0.103
netmask 255.255.255.0
gateway 192.168.0.1
nameserver 127.0.0.1,202.96.134.133,202.96.128.166
post-up ifenslave bond0 eth1 eth2
pre-down ifenslave -d bond0 eth1 eth2

3./etc/modules内容中加上一句:
bonding miimon=100 mode=0
4:重启网络:
在终端输入:sudo /etc/init.d/networking restart
照理可以了,但我在这一步卡住了,使用ifconfig命令发现,除了bond0外,其它连接都有数据,唯独bond0所有数据都为零,连续几天都无进展,后来在网上又搜到另一条命令为:sudo ifup bond0,使用后 bond0居然有数据了,后来我又安装了dnsmasq,发觉几好,记起大大们的耐心教导,就赶紧回来回复了.
Reply View the author
a***[email protected]
deepin
2021-05-18 01:13
#10
ruanhuachang
经过网上资料的东拉西拼,终于有个影了,大概如下:
1.检查系统是否符合这两个要求:

  [root@node1 bin]# lsmod | grep bond

  bonding 65128 0

  说明该模块已经加载

  安装ifensalve,之后一般在/sbin 路径下面可查到
  [root@node1 bin]# which ifenslave

  /sbin/ifenslave

  说明该使用工具也存在。
2./etc/network/interfaces(这是我改后的文件内容,天真的为配合dnsmasq而加上了127.0.0.1这一段,因为不知为何后来在屏幕右下方没了网络连接的图标,不能编辑连接属性,网络连接那里手工添加连接又无反应,就试了一下这样)
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto bond0
iface bond0 inet static
address 192.168.0.103
netmask 255.255.255.0
gateway 192.168.0.1
nameserver 127.0.0.1,202.96.134.133,202.96.128.166
post-up ifenslave bond0 eth1 eth2
pre-down ifenslave -d bond0 eth1 eth2

3./etc/modules内容中加上一句:
bonding miimon=100 mode=0
4:重启网络:
在终端输入:sudo /etc/init.d/networking restart
照理可以了,但我在这一步卡住了,使用ifconfig命令发现,除了bond0外,其它连接都有数据,唯独bond0所有数据都为零,连续几天都无进展,后来在网上又搜到另一条命令为:sudo ifup bond0,使用后 bond0居然有数据了,后来我又安装了dnsmasq,发觉几好,记起大大们的耐心教导,就赶紧回来回复了.

哥们,我用的统信uos按网上类似于你的方法没能成功绑定。

主要是第一步

[root@node1 bin]# lsmod | grep bond

  bonding 65128 0

 

我的查不出bond模块,能指教指教吗?

Reply View the author