- 论坛徽章:
- 0
|
今天在公司里遇到一个怪问题,系统:linux (centos5) IP:192.168.3.12 掩码:255.255.255.0 网关:192.168.3.1 DNS:202.96.64.68 就是ping不能路由器:192.168.3.1,而同接在一台交换机上的linux(centos5) IP:192.168.3.230就可以配置跟ping不通网关的192.168.3.12一样:我的hosts.allow 与hosts.deny没有任何内容。网线也更换过。把192.168.3.12那台主机接到路由(192.168.3.1)上也是一样。我怀疑是系统的问题。请大家帮忙解答
以下是我192.168.3.12上的配置
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:21:1F:09:CD
inet addr:192.168.3.12 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::219:21ff:fe1f:9cd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1636 errors:0 dropped:0 overruns:0 frame:0
TX packets:1302 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:153621 (150.0 KiB) TX bytes:239898 (234.2 KiB)
Interrupt:201 Base address:0xec00
lo Link encap:Local 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:1424 errors:0 dropped:0 overruns:0 frame:0
TX packets:1424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2990344 (2.8 MiB) TX bytes:2990344 (2.8 MiB)
[root@localhost ~]# ping 192.168.3.1
PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data.
--- 192.168.3.1 ping statistics ---
34 packets transmitted, 0 received, 100% packet loss, time 33010ms
[root@localhost ~]# ping 192.168.3.230
PING 192.168.3.230 (192.168.3.230) 56(84) bytes of data.
64 bytes from 192.168.3.230: icmp_seq=1 ttl=64 time=1.03 ms
64 bytes from 192.168.3.230: icmp_seq=2 ttl=64 time=0.149 ms
--- 192.168.3.230 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.149/0.592/1.035/0.443 ms
以下是我192.168.3.230的配置
[root@localhost etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:21:1F:11:09
inet addr:192.168.3.230 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::219:21ff:fe1f:1109/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13130836 errors:2 dropped:4 overruns:2 frame:0
TX packets:8617539 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2637723505 (2.4 GiB) TX bytes:3589480086 (3.3 GiB)
Interrupt:201 Base address:0xac00
lo Link encap:Local 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:544201 errors:0 dropped:0 overruns:0 frame:0
TX packets:544201 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:161877771 (154.3 MiB) TX bytes:161877771 (154.3 MiB)
[root@localhost etc]# ping 192.168.3.1
PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data.
64 bytes from 192.168.3.1: icmp_seq=1 ttl=255 time=0.604 ms
64 bytes from 192.168.3.1: icmp_seq=2 ttl=255 time=0.606 ms
64 bytes from 192.168.3.1: icmp_seq=3 ttl=255 time=0.612 ms
64 bytes from 192.168.3.1: icmp_seq=4 ttl=255 time=0.607 ms
--- 192.168.3.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.604/0.607/0.612/0.017 ms
[root@localhost etc]# |
|