Linux的ADSL共享上网,在linux拨号成功,但在本机ping 外部IP地址都不通
Linux的ADSL共享上网,在linux拨号成功,但在本机ping 外部IP地址都不通,就是在本机上网也不去,
ADSL的modemIP:192.168.1.1
eth0自动获取IP
eth1ip:192.168.0.100
以下:ifconfig和route 结果
eth0 Link encap:Ethernet HWaddr 00:60:94:23:B1:88
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:126 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:14 carrier:0
collisions:0
RX bytes:11154 (10.8 Kb) TX bytes:14709 (14.3 Kb)
eth1 Link encap:Ethernet HWaddr 00:05:5D:0E:F4:3F
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:41868 errors:0 dropped:0 overruns:0 frame:0
TX packets:19361 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:5755504 (5.4 Mb) TX bytes:12759789 (12.1 Mb)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:234 errors:0 dropped:0 overruns:0 frame:0
TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:18266 (17.8 Kb) TX bytes:18266 (17.8 Kb)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.100 0.0.0.0 UG 0 0 0 eth1