分页: 1 / 1

ubuntu 拨号成功,访问网页失败。

发表于 : 2012-03-02 1:23
unsafe

代码: 全选

baron@baron~$ ping www.baidu.com
ping: unknown host www.baidu.com
baron@baron~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1c:25:9a:4f:b0  
          inet6 addr: fe80::21c:25ff:fe9a:4fb0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:3 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1130 (1.1 KB)  TX bytes:5165 (5.1 KB)
          Interrupt:20 Memory:fc000000-fc020000 

lo        Link encap:Local 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:80 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5856 (5.8 KB)  TX bytes:5856 (5.8 KB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:1.83.142.136  P-t-P:1.83.142.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:54 (54.0 B)  TX bytes:54 (54.0 B)
baron@baron~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 ppp0
1.83.142.1      *               255.255.255.255 UH    0      0        0 ppp0
baron@baron~$ route add default dev ppp0 
SIOCADDRT: Operation not permitted
baron@baron~$ sudo route add default dev ppp0 
[sudo] password for baron: 
SIOCADDRT: File exists
baron@baron~$ sudo route add default ppp0 
SIOCADDRT: File exists

ping ip 还是ping的通。
就是无法浏览网站,用ip也不行。
百度之,貌似这是路由的问题。
系统版本10.10,U盘安装。
各种方法,各种求。

Re: ubuntu 拨号成功,访问网页失败。

发表于 : 2012-03-02 8:19
peteryeh64
.../etc/resolv.conf內容貼上來看看...

Re: ubuntu 拨号成功,访问网页失败。

发表于 : 2012-03-02 20:38
unsafe
/etc/resolv.conf
没有此文件
在/etc/resolvconf/run/目录有个resolv.conf
内容如下

代码: 全选

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

Re: ubuntu 拨号成功,访问网页失败。

发表于 : 2012-03-03 22:58
unsafe
问题以解决
谢谢照顾
补上解决方案

代码: 全选

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 202.113.16.10
nameserver 8.8.8.8
nameserver 8.8.4.4
search domain
完事在
/etc/ 下来个快捷方式 ok