|
与别人使用一台NetCore的路由器共享宽带上网,ip由路由器通过dhcp指派。在windows下上网,一切正常,到linux下,使用apt-get能正常下载软件,Eva即QQ也能正常使用,但wget, ping, telnet, ssh,ping等等程序全都无法正常上网,tcpdump也看不到这些包(apt-get和eva发的包以及路由的arp查询可以看到),使用域名,显示地址无法解析,使用ip,显示找不到主机。
然后我在windows下使用vmware跑linux的时候,网络设置为NAT即通过winodws出去时,上网一切正常,选用bridge直接桥接到该路由器的网络上的时候,也出现上述的情况。看上去应该不是linux本身网络配置的问题(因为vmware下通过NAT正常上网),而是貌似是linux对那台路由器直接发的请求送不出去,貌似UDP能用(QQ),TCP不能用……请有经验的达人指点一下,一般来说这是路由禁止了神秘引起的?是否有解决的方法?
- root@ubuntu ~
- # ping www.163.com
- ping: unknown host www.163.com
复制代码
- root@ubuntu ~
- # host www.163.com
- ;; reply from unexpected source: 192.168.8.220#53, expected 192.168.1.1#53
- ;; reply from unexpected source: 61.144.56.101#53, expected 192.168.1.1#53
- ;; connection timed out; no servers could be reached
复制代码
- root@ubuntu ~
- # wget http://www.163.com/
- --01:50:19-- http://www.163.com/
- => `index.html'
- Resolving www.163.com... failed: Temporary failure in name resolution.
复制代码
- root@ubuntu ~
- # telnet zixia.net
- telnet: could not resolve zixia.net/telnet: Temporary failure in name resolution
复制代码
/etc/network/interfaces如下:
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0
- iface eth0 inet dhcp
复制代码 |
|