red hat linux 9 总是上不了网.求助!!!搞了
搞了两天.还是不行.实在不懂为什么??求助各位fans.帮帮我吧.首先介绍一下:实验室里的DELL品牌机.双系统(WINXP和RED HAT 9).然后单网
卡.静态IP.在WINXP下上网非常顺利.转到LINUX下就大问题了.ping自己可以
ping得通,ping网关或者其他机子就不通.当然更不用说上网了.很奇怪.我以前也
用过自己机子上的LINUX上网的.记忆中没那么复杂的.可是在实验室里就是奇怪
了.下面是我运行各个命令的结果.给各位大虾做个参考,帮我看看什么问题.
我觉得都没问题的,sigh!!!
#ifconfig
eth0 Link encap:EthernetHWaddr 00:13:20:1D:35:F4
inet addr:210.34.55.178Bcast:210.34.55.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b)TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:16436Metric:1
RX packets:649 errors:0 dropped:0 overruns:0 frame:0
TX packets:649 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42743 (41.7 Kb)TX bytes:42743 (41.7 Kb)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref UseIface
210.34.55.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 210.34.55.254 0.0.0.0 UG 0 0 0 eth0
#ping -c 3 210.34.55.178 (ping自己机子的IP,通了)
PING 210.34.55.178 (210.34.55.178) 56(84) bytes of data.
64 bytes from 210.34.55.178: icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from 210.34.55.178: icmp_seq=2 ttl=64 time=0.016 ms
64 bytes from 210.34.55.178: icmp_seq=3 ttl=64 time=0.015 ms
--- 210.34.55.178 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.015/0.018/0.023/0.003 ms
# ping -c 3 210.34.55.254(ping网关的IP,就是不通)
PING 210.34.55.254 (210.34.55.254) 56(84) bytes of data.
From 210.34.55.178 icmp_seq=1 Destination Host Unreachable
From 210.34.55.178 icmp_seq=2 Destination Host Unreachable
From 210.34.55.178 icmp_seq=3 Destination Host Unreachable
--- 210.34.55.254 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2014ms
, pipe 3
#iptables -L -n (防火墙?!!)
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
文件/etc/sysconfig/network-scripts/ifcfg-eth0的内容如下:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=210.34.55.178
NETMASK=255.255.255.0
GATEWAY=210.34.55.254
TYPE=Ethernet
USERCTL=no
PEERDNS=no
NETWORK=210.34.55.0
BROADCAST=210.34.55.255
文件/etc/hosts内容如下:
127.0.0.1 localhost.localdomain localhost
210.34.55.178 www.yangb.com yangb
#mii-tool(网卡似乎也没问题)
eth0: negotiated 100baseTx-FD flow-control, link ok
顺带说一下.我尝试过终止防火墙(service iptables stop),
还有(ifconfig eth0 down;ifconfig eth0 210.34.55.178 netmask 255.255.255.0 broadcast
210.34.55.255;ifconfig eth0 up)也不见效.晕死了. 古老的版本,估计也没什么人研究你的问题了!
页:
[1]