免费注册 查看新帖 |

Chinaunix

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

单机情况下两块网卡使用一个IP? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-01-10 12:05 |只看该作者 |倒序浏览
有双网卡的服务器的IP地址使用Multipathing 技术

以一个简单的例子阐述Multipathing
其实与实际不一样的就是IP地址,以及网口类型,根据实际情况需要修改内容。

multipathing test IP  10.170.1.81
multipathing test IP  10.170.1.82
Logical  IP                10.170.1.80
Group Name              mswitch
Network Card            ge0,ge1
一:使用命令方式(机器重新启动将失效)
1:Become superuser.
2:如果ge0,ge1被配置了IP,请使用如下命令清除ge0,ge1上配置信息
ifconfig ge0 unplumb
ifconfig ge1 unplumb

3:使用如下命令配置multipathing
ifconfig ge0 plumb 10.17.1.80 group mswitch netmask + broadcast + up
(使ge0可用,配置ge0的IP为Loical IP 10.17.1.80、使ge0为mswitch组的一块网卡)
ifconfig ge0 addif 10.170.1.81 deprecated -failover netmask + broadcast + up
(配置ge0的test ip为10.170.1.81)
ifconfig ge1 plumb 10.170.1.82 group mswitch  netmask + broadcast + deprecated -failover standby up
(配置ge1为mswitch  组的另外一块网卡,它的test ip为10.170.1.82 并且这块网卡为standby)
4:以上为所有的配置命令,使用ifconfig –a命令将看到ge0、ge0:1、ge1的IP分别为10.17.1.80、10.17.1.81、10.17.1.82
5:测试。拔掉ge0的网线,使用ifconfig –a会发现10.170.1.80的地址failover到了ge1:1上。10.170.1.80这个地址可以正常使用。插回网线,会发现ge1:1没有了,10.17.1.80又回到了ge0上。

二:使用文件方式(机器重新启动后生效)
edit the /etc/hostname.ge0   file and add the following line.

10.170.1.80 netmask + broadcast + group mswitch up \\
addif 10.170.1.81 deprecated -failover netmask + broadcast + up

edit the /etc/hostname.ge1  file and add the following line.

10.170.1.82 netmask + broadcast + group mswitch up deprecated -failover standby up

论坛徽章:
0
2 [报告]
发表于 2003-01-10 12:16 |只看该作者

单机情况下两块网卡使用一个IP?

不错不错
能不能做binding啊?

论坛徽章:
0
3 [报告]
发表于 2003-01-10 12:56 |只看该作者

单机情况下两块网卡使用一个IP?

好文啊!

加入精华吧,m4n!!!

论坛徽章:
0
4 [报告]
发表于 2003-01-10 14:57 |只看该作者

单机情况下两块网卡使用一个IP?

这样做是否带宽就加大了,实实在在地加大

论坛徽章:
0
5 [报告]
发表于 2003-01-11 22:38 |只看该作者

单机情况下两块网卡使用一个IP?

噢。朋友,这样和compag的netrain技术,以及cisco的trunck技术一样了么?

谢谢。

论坛徽章:
0
6 [报告]
发表于 2003-01-11 23:42 |只看该作者

单机情况下两块网卡使用一个IP?

比方说4口的sbus以太网卡,要是在全双工的情况下(当然交换机也要设置成全双工和auto模式了),是否可以跑800mb的数据流那?

同时也希望朋友们讨论一下slb的实现,我知道是在路由器上实现的,是否还有其他的实现方式那?

谢谢。

论坛徽章:
0
7 [报告]
发表于 2003-02-25 14:56 |只看该作者

单机情况下两块网卡使用一个IP?

好文章,加入精华!!

论坛徽章:
0
8 [报告]
发表于 2003-02-25 15:05 |只看该作者

单机情况下两块网卡使用一个IP?

好像也要 SWITCH SUPPORT 吧。。

论坛徽章:
0
9 [报告]
发表于 2003-02-25 16:40 |只看该作者

单机情况下两块网卡使用一个IP?

用trunking软件就行。

原帖由 \"mrcenter\" 发表:
比方说4口的sbus以太网卡,要是在全双工的情况下(当然交换机也要设置成全双工和auto模式了),是否可以跑800mb的数据流那?

同时也希望朋友们讨论一下slb的实现,我知道是在路由器上实现的,是否还有其他的实现方?.........

论坛徽章:
0
10 [报告]
发表于 2003-03-10 22:36 |只看该作者

单机情况下两块网卡使用一个IP?

Sorry that I have to use English, I can\'t input chinese from my terminal. IP multipathing is different than trunking. In order to do trunking, you need switch support and you practiacally increase the bandwidth. For multipathing, it is more like NAFO group in Sun Cluster or MultiNIC in Veritas cluster, it is merely a failover thing. So I don\'t think you increases the bandwith.

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP