ITPub博客

首页 > IT基础架构 > 网络安全 > 给安腾机增加网卡后遇到的网络问题

给安腾机增加网卡后遇到的网络问题

原创 网络安全 作者:tonykorn97 时间:2008-09-03 16:30:52 0 删除 编辑
公司有一台dell PE7250的安腾机,机器自带只有一块网卡,需要增加2块网卡,原来以为是必须要支持安腾系列的才可以,今天知道了普遍的pci网卡就可以了。
[@more@]
增加完网卡后有eth0,eth1,eth2共3个。刚开始的时候把3个网卡都设置成一个ip段,这样出现的情况是,当eth0这个网卡插上网线的时候,其他两个网卡不插网线都可以通,当eth0这个网卡不插网线的时候,其他两个网卡插上网线也不通,必须要eth0插上网线。
最后查明原因是,操作系统的路由情况,如果3个网卡都设置成一个网段,默认情况下都是通过eth0这个网卡发送和接受广播包的,如下所示:
操作系统:
[root@test ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Kernel r on an m
[root@test ~]# uname -a
Linux test 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:55 EDT 2007 ia64 ia64 ia64 GNU/Linux
[root@test ~]#
路由信息:
[root@test ~]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.25.0.0 * 255.255.0.0 U 0 0 0 eth0
172.25.0.0 * 255.255.0.0 U 0 0 0 eth2
172.25.0.0 * 255.255.0.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 172.25.0.254 0.0.0.0 UG 0 0 0 eth0
[root@test ~]#
把其他的网卡设置成其他网段就可以了。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/312079/viewspace-1010088/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-05

  • 博文量
    1854
  • 访问量
    2088311