[问题]配置好了,ping不通网关能帮我看看吗?希望能详细指点。
-
- 帖子: 69
- 注册时间: 2006-09-10 11:48
[问题]配置好了,ping不通网关能帮我看看吗?希望能详细指点。
按照winxp的配置来配置eth0的,一切都好了。ping 127.0.0.1也是好的。就是ping 网关的时候不行。而且ping局域网的其它机器也不行啊。刚装个ubuntu,也是刚开始接触linux希望能详细指点。
-
- 帖子: 69
- 注册时间: 2006-09-10 11:48
试过啦,下面是结果
kingf@kingf-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:8F:7C:50:08
inet addr:172.16.72.31 Bcast:172.16.72.255 Mask:255.255.255.0
inet6 addr: fe80::213:8fff:fe7c:5008/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2720 (2.6 KiB) TX bytes:1092 (1.0 KiB)
Interrupt:217 Base address:0xd800
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:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:760 (760.0 b) TX bytes:760 (760.0 b)
kingf@kingf-desktop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.72.0 * 255.255.255.0 U 0 0 0 eth0
default 172.16.72.1 0.0.0.0 UG 0 0 0 eth0
kingf@kingf-desktop:~$
应该没有问题才对吧。
ip:172.16.72.31
网关:172.16.72.1
kingf@kingf-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:8F:7C:50:08
inet addr:172.16.72.31 Bcast:172.16.72.255 Mask:255.255.255.0
inet6 addr: fe80::213:8fff:fe7c:5008/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2720 (2.6 KiB) TX bytes:1092 (1.0 KiB)
Interrupt:217 Base address:0xd800
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:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:760 (760.0 b) TX bytes:760 (760.0 b)
kingf@kingf-desktop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.72.0 * 255.255.255.0 U 0 0 0 eth0
default 172.16.72.1 0.0.0.0 UG 0 0 0 eth0
kingf@kingf-desktop:~$
应该没有问题才对吧。
ip:172.16.72.31
网关:172.16.72.1