|
楼主 |
发表于 2006-12-4 20:47:40
|
显示全部楼层
谢谢lanzinc的热心回复!
我今天开机直接进入ML,在上不了网的情况下按照lanzinc的方法进行了修改
但是仍然无法上网,现将结果贴出来请大家帮忙看看:(注:lanzinc的帖子里面有些重定向的文件为了方便查看我把它们的结果给写出来了)
第一步:
[root@MagicLinux2 nofirewall]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0A:48:15:0A:A5
inet addr:211.66.15.158 Bcast:211.66.15.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36310 errors:0 dropped:0 overruns:0 frame:0
TX packets:241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2423840 (2.3 MiB) TX bytes:23047 (22.5 KiB)
Interrupt:177 Base address:0x6000
第二步:
[root@MagicLinux2 ~]# route del default
[root@MagicLinux2 ~]# route add default gw 211.66.15.254
[root@MagicLinux2 ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.66.15.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 211.66.15.254 0.0.0.0 UG 0 0 0 eth0 eth0
第三步:
[root@MagicLinux2 ~]# arp -a > arp1.txt
[root@MagicLinux2 ~]# cat arp1.txt | grep 15.254
? (211.66.15.254) at 00:04:96:10:1A:A0 [ether] on eth0
ping 211.66.15.254无法ping通
arp -a > arp2.txt
cat arp2.txt | grep 15.254
? (211.66.15.254) at 00:04:96:10:1A:A0 [ether] on eth0
第四步:
[root@MagicLinux2 ~]# cat /etc/resolv.conf
nameserver 202.38.193.33
[root@MagicLinux2 ~]# ping 202.38.193.33> dnsping.txt && cat dnsping.txt
结果无法ping通
第五步:
[root@MagicLinux2 ~]# ping www.google.cn
ping: unknown host www.google.cn
[root@MagicLinux2 ~]# ping 64.233.189.104
PING 64.233.189.104 (64.233.189.104) 56(84) bytes of data.
--- 64.233.189.104 ping statistics ---
35 packets transmitted, 0 received, 100% packet loss, time 34001ms
于是关闭了Guarddog
开始重复3~5步:
重复第三步:
[root@MagicLinux2 nofirewall]# arp -a > arp1.txt
(211.66.15.254) at 00:04:96:10:1A:A0 [ether] on eth0
[root@MagicLinux2 nofirewall]# ping 211.66.15.254
PING 211.66.15.254 (211.66.15.254) 56(84) bytes of data.
--- 211.66.15.254 ping statistics ---
27 packets transmitted, 0 received, 100% packet loss, time 26013ms
[root@MagicLinux2 nofirewall]# arp -a > arp2.txt
? (211.66.15.254) at 00:04:96:10:1A:A0 [ether] on eth0
[root@MagicLinux2 nofirewall]# cat arp2.txt | grep 15.254
? (211.66.15.254) at 00:04:96:10:1A:A0 [ether] on eth0
重复第四步:
[root@MagicLinux2 nofirewall]# cat /etc/resolv.conf
nameserver 202.38.193.33
[root@MagicLinux2 nofirewall]# ping 202.38.193.33> dnsping.txt && cat dnsping.txt
PING 202.38.193.33 (202.38.193.33) 56(84) bytes of data.
--- 202.38.193.33 ping statistics ---
23 packets transmitted, 0 received, 100% packet loss, time 22015ms
重复第五步:
[root@MagicLinux2 nofirewall]# ping 64.233.189.104
PING 64.233.189.104 (64.233.189.104) 56(84) bytes of data.
--- 64.233.189.104 ping statistics ---
18 packets transmitted, 0 received, 100% packet loss, time 17014ms
[root@MagicLinux2 nofirewall]# ping www.google.com
没有反应 |
|