LinuxSir.cn,穿越时空的Linuxsir!

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

网卡配置故障

[复制链接]
发表于 2005-10-19 10:00:28 | 显示全部楼层 |阅读模式
新安装的FC4_64位系统,一切正常,机子集成两块网卡,准备做网关/防火墙用。
在配置一块网卡绑定多个IP的过程中,出现断网(我用ssh连上去的,突然就断开了)。赶紧恢复到原来的配置,但是出现了一个奇怪的现象:两块网卡当中的一块ping不通对应网段的机子了,但是能ping通该网卡的IP,奇怪?!

ps:先前做的绑定多IP的过程忘了改哪些文件,郁闷~~~

:beat  :beat  :beat  :beat
 楼主| 发表于 2005-10-19 10:38:30 | 显示全部楼层
[root@localhost ~]# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
From 192.168.1.254 icmp_seq=1 Destination Host Unreachable
From 192.168.1.254 icmp_seq=2 Destination Host Unreachable
From 192.168.1.254 icmp_seq=3 Destination Host Unreachable
From 192.168.1.254 icmp_seq=5 Destination Host Unreachable
From 192.168.1.254 icmp_seq=6 Destination Host Unreachable
From 192.168.1.254 icmp_seq=7 Destination Host Unreachable

--- 192.168.1.2 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6998ms
, pipe 4

********************************************************************************
[root@localhost ~]# tcpdump -i eth1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
10:36:59.456010 arp who-has 192.168.1.2 tell 192.168.1.254
10:37:00.455856 arp who-has 192.168.1.2 tell 192.168.1.254
10:37:01.455703 arp who-has 192.168.1.2 tell 192.168.1.254
10:37:03.456400 arp who-has 192.168.1.2 tell 192.168.1.254
10:37:04.456249 arp who-has 192.168.1.2 tell 192.168.1.254
10:37:05.456094 arp who-has 192.168.1.2 tell 192.168.1.254
10:38:08.000590 arp who-has 192.168.1.2 tell 192.168.1.254
10:38:09.000434 arp who-has 192.168.1.2 tell 192.168.1.254
10:38:10.000282 arp who-has 192.168.1.2 tell 192.168.1.254
10:38:11.999980 arp who-has 192.168.1.2 tell 192.168.1.254
10:38:12.999827 arp who-has 192.168.1.2 tell 192.168.1.254
10:38:13.999675 arp who-has 192.168.1.2 tell 192.168.1.254
******************************************************************************
包好象回不来还是怎么的?
回复 支持 反对

使用道具 举报

发表于 2005-10-19 12:51:59 | 显示全部楼层
先shutdown一块,把另外一块配好ip试下能通么,然后在调试另外块
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-19 12:59:57 | 显示全部楼层
一块好的,一块不好的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-19 13:06:36 | 显示全部楼层
问题就一个:一块网卡ping通自己的IP,ping不通它所在网络中其他主机的IP!
回复 支持 反对

使用道具 举报

发表于 2005-10-19 13:28:45 | 显示全部楼层
netstat -nr
ifconfig
你的说明实在太没头绪了,分开来一块块都可以ping通吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-19 13:40:24 | 显示全部楼层
分开来也一样,就那块网卡不通。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-19 13:42:07 | 显示全部楼层
[root@localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:118:C0:E1:E5
          inet addr:60.190.xx.xx  Bcast:60.190.xx.xx  Mask:255.255.255.248
          inet6 addr: fe80::211:d8ff:fec0:e1e5/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18653 errors:0 dropped:0 overruns:0 frame:0
          TX packets:397 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1612338 (1.5 MiB)  TX bytes:67488 (65.9 KiB)
          Interrupt:50 Memory:db004000-0

eth1      Link encap:Ethernet  HWaddr 00:118:C0:CA:36
          inet addr:192.168.1.254  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:fec0:ca36/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:319 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:652886 (637.5 KiB)  TX bytes:0 (0.0 b)
          Interrupt:58 Base address:0xe000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13847 (13.5 KiB)  TX bytes:13847 (13.5 KiB)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-19 13:43:16 | 显示全部楼层
:beat  :beat  :beat  :beat
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-19 13:43:54 | 显示全部楼层
    
回复 支持 反对

使用道具 举报

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

本版积分规则

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