|
|
现在是 XP LINUX 双系统。但是在XP下能上网,LINUX却不能。
我用windows XP系统 从网上下载了fedora 8 从硬盘安装,挺顺利的。用静态IP192.168.1.108 网关是192.168.1.1我们宿舍三个人用一个小路由器上网。在LINUX 下 系统-管理-网络 里设置DNS 192.168.1.1 和 202.99.160.68 。 202.99.160.68是WINDOWS下ipconfig下查到的。
[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:22:15:61 9:61
inet addr:192.168.1.158 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:768 errors:0 dropped:379526399 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:188358 (183.9 KiB) TX bytes:0 (0.0 b)
Interrupt:19 Base address:0xe000
[root@localhost ~]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.158 icmp_seq=1 Destination Host Unreachable
From 192.168.1.158 icmp_seq=2 Destination Host Unreachable
From 192.168.1.158 icmp_seq=3 Destination Host Unreachable
From 192.168.1.158 icmp_seq=5 Destination Host Unreachable
From 192.168.1.158 icmp_seq=6 Destination Host Unreachable
From 192.168.1.158 icmp_seq=7 Destination Host Unreachable
--- 192.168.1.1 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7049ms
, pipe 3
[root@localhost ~]# ping 192.168.1.158
PING 192.168.1.158 (192.168.1.158) 56(84) bytes of data.
64 bytes from 192.168.1.158: icmp_seq=1 ttl=64 time=0.064 ms
64 bytes from 192.168.1.158: icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from 192.168.1.158: icmp_seq=3 ttl=64 time=0.067 ms
--- 192.168.1.158 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.059/0.063/0.067/0.007 ms
[root@localhost ~]# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.064 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.063 ms
--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.063/0.064/0.065/0.000 ms
[root@yangzhou ~]# netstat -ar
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
mdefault 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 |
|