能ping通本机,ping不通默认网关
Tofloor
poster avatar
cosli
deepin
2012-03-11 09:31
Author
详细情况如下:

正确的静态ip:121.194.89.180    默认网关:121.194.89.254   子网掩码:255.255.255.0

linux下的情况:

cos@cos-Aspire ~ $[color=#FF0000:2073ofko] ifconfig[/color:2073ofko]
eth0      Link encap:Ethernet  HWaddr b8:70:f4:e2:a0:d0  
          inet addr:121.194.89.180  Bcast:121.194.89.255  Mask:255.255.255.0
          inet6 addr: 2001:da8:214:1089:ba70:f4ff:fee2:a0d0/64 Scope:Global
          inet6 addr: fe80::ba70:f4ff:fee2:a0d0/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24123 errors:0 dropped:0 overruns:0 frame:0
          TX packets:475 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2519502 (2.5 MB)  TX bytes:58033 (58.0 KB)
          Interrupt:16

lo        Link encapocal 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:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2304 (2.3 KB)  TX bytes:2304 (2.3 KB)

cos@cos-Aspire ~ $ [color=#FF0000:2073ofko]route[/color:2073ofko]
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         121.194.89.254  0.0.0.0         UG    0      0        0 eth0
121.194.89.0    *               255.255.255.0   U     1      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0

cos@cos-Aspire ~ $[color=#FF0000:2073ofko] arp -a[/color:2073ofko]
? (121.194.89.18) at on eth0
? (121.194.89.254) at c8:4c:75:15:4d:ff [ether] on eth0
? (121.194.89.252) at 20:6a:8a:43:88:4e [ether] on eth0
cos@cos-Aspire ~ $ ping 121.194.89.254
PING 121.194.89.254 (121.194.89.254) 56(84) bytes of data.
^C
--- 121.194.89.254 ping statistics ---
26 packets transmitted, 0 received, 100% packet loss, time 25199ms

[color=#FF0000:2073ofko]ping局域网其它机器:[/color:2073ofko]
cos@cos-Aspire ~ $ ping 121.194.89.18
PING 121.194.89.18 (121.194.89.18) 56(84) bytes of data.
From 121.194.89.180 icmp_seq=1 Destination Host Unreachable
From 121.194.89.180 icmp_seq=2 Destination Host Unreachable
From 121.194.89.180 icmp_seq=3 Destination Host Unreachable
^C
--- 121.194.89.18 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4022ms
pipe 3


[color=#FF0000:2073ofko]期待大神们尽快给予解答啊~网上的方法几乎试了一遍,实在没办法整了[/color:2073ofko]
Reply Favorite View the author
All Replies
cosli
deepin
2012-03-11 19:20
#1
求解中~~~~~
Reply View the author
bsfmig
deepin
2012-03-11 21:21
#2
其实我也迷惑,最好请人到你的网络环境实地看一看。
Reply View the author
cosli
deepin
2012-03-12 02:27
#3
其实我也迷惑,最好请人到你的网络环境实地看一看。
好吧,还是感谢呀~
其实就是校园网,静态的ip,用srun3000客户端认证,着实让我头疼啊
Reply View the author
bsfmig
deepin
2012-03-12 04:17
#4
[quote]其实我也迷惑,最好请人到你的网络环境实地看一看。
好吧,还是感谢呀~
其实就是校园网,静态的ip,用srun3000客户端认证,着实让我头疼啊[/quote]
爱莫能助,我在公网,用无线路由器。
Reply View the author
jhkwei
deepin
2012-03-13 20:27
#5
看到你好象有默认网关,
你运行 route -n 这样可以看清楚一点儿;
不过也可以直接运行
sudo route add default gw  your_gateway
添加默认网关,
这样就会有默认网关了,

如果真的不通,你可以试试
sudo route add  -host other_pc_ip dev eth0
sudo arp -i eth0 -Ds your_host_ip eth0 pub

其中 other_pc_ip 是你內網中其它主機ip
your_host_ip 是你主機的ip
Reply View the author
deepIgood
deepin
2012-03-16 01:11
#6
校园网不能用dhcp吗?
Reply View the author
cosli
deepin
2012-03-19 04:16
#7
校园网不能用dhcp吗?
不能的,分配的静态ip,和MAC绑定的
Reply View the author
cosli
deepin
2012-03-19 04:17
#8
其实我也迷惑,最好请人到你的网络环境实地看一看。
哎,周围都没人用linux~~~~ ops:  ops:  ops:
Reply View the author
cosli
deepin
2012-03-19 04:19
#9
看到你好象有默认网关,
你运行 route -n 这样可以看清楚一点儿;
不过也可以直接运行
sudo route add default gw  your_gateway
添加默认网关,
这样就会有默认网关了,

如果真的不通,你可以试试
sudo route add  -host other_pc_ip dev eth0
sudo arp -i eth0 -Ds your_host_ip eth0 pub

其中 other_pc_ip 是你內網中其它主機ip
your_host_ip 是你主機的ip
多谢,虽然还是没有解决~~~
装回了11.06,现在是能ping通,但是打不开网页
Reply View the author