cosli
2012-03-11 19:20 deepin
求解中~~~~~
Reply Like 0 View the author
其实我也迷惑,最好请人到你的网络环境实地看一看。
[quote]其实我也迷惑,最好请人到你的网络环境实地看一看。
校园网不能用dhcp吗?
其实我也迷惑,最好请人到你的网络环境实地看一看。
看到你好象有默认网关,
你运行 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
Popular Events
More
正确的静态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]