|
我有两ð机器,
ð式机:arch和windowsxpûß.Ì网卡,
ð式机eth0: ==> ip:192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255
eth0Þmoderm
ð式机eth1: ==> ip:192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255
eth1Þ笔°本
ð式机ï由:
route del default;route add default ppp0
笔°本:ubuntuûß.à¿网上和普通网卡,
eht1: ===> ip:192.168.1.30 netmask 255.255.255.0 broadcast 192.168.1.255
笔°本网关:
gateway 192.168.1.20
ð式机一块网卡接moderm,一块网卡连接笔记本,这样双机共享上网.我在台式机中的windowsxp中时,当台式机联上internet,笔记本就可以直接上网了.
但在台式机的arch系统中时,台式机接上internet后,笔记本还是不能上网.互ping也出现问题,互ping时,出现"Destination Host Unreachable",但可以找到对方IP.请问还要如何设置呢?
==========================================================
台式机ping笔记本结果
root@kings:~# ping 192.168.1.30
PING 192.168.1.30 (192.168.1.30) 56(84) bytes of data.
From 192.168.1.10 icmp_seq=1 Destination Host Unreachable
From 192.168.1.10 icmp_seq=2 Destination Host Unreachable
From 192.168.1.10 icmp_seq=3 Destination Host Unreachable
笔记本ping台式机时也返回类似结果
台式机route结果
root@kings:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
58.53.96.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
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
请问我哪里设置有问题呢?该如何设置了? |
|