1 我的電腦是用pppoe連線,只有一張網卡,設定 IP 192.168.1.2 ,如果設定 gateway (ADSL Modem的 IP 192.168.1.1)就無法ping到外部的網域,當然也連不出去
2 我無法 ping 到同網域的電腦,但是同網域的電腦可以 ping 到這台電腦(用 Windows XP)
在Windows XP裏,我設定gateway(192.168.1.1)及IP(192.168.1.2),可以正常連線,但在Gentoo裏卻不行
用 route add default gw 192.168.1.1
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.70.145.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 203.70.145.1 0.0.0.0 UG 0 0 0 ppp0
192.168.1.1的gateway所對應的又是0.0.0.0?
但是用ifconfig
Code: Select all
eth0 Link encap:Ethernet HWaddr 00:0E:A6:2A:7D:17
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11025 errors:0 dropped:0 overruns:0 frame:0
TX packets:7428 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14455397 (13.7 Mb) TX bytes:680683 (664.7 Kb)
Interrupt:10 Base address:0x9000
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:1194 errors:0 dropped:0 overruns:0 frame:0
TX packets:1194 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:59904 (58.5 Kb) TX bytes:59904 (58.5 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:203.70.145.28 P-t-P:203.70.145.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:10676 errors:0 dropped:0 overruns:0 frame:0
TX packets:7137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:14196769 (13.5 Mb) TX bytes:510406 (498.4 Kb)
希望大家知道我說什麼
