LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1468|回复: 6

adsl连上网,但是 ping 不通网址,请帮忙。

[复制链接]
发表于 2005-12-31 22:15:48 | 显示全部楼层 |阅读模式
我用pppoeconf配置完,我用ifconfig看了,也连上网了,但是怎么也ping 不通.浏览器也打不开网址,请知道的朋友帮个忙,谢谢。
debian:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:03:0F:FF:14:2C
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::203:fff:feff:142c/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:245 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:240 dropped:0 overruns:0 carrier:480
          collisions:0 txqueuelen:1000
          RX bytes:19800 (19.3 KiB)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0xac00

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:232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:232 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15074 (14.7 KiB)  TX bytes:15074 (14.7 KiB)

ppp0      Link encapoint-to-Point Protocol
          inet addr:60.30.226.45  P-t-P:60.30.226.254  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:181 (181.0 b)  TX bytes:158 (158.0 b)
以下是我的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
auto eth0
iface eth0 inet static
address 192.168.2.1
netmask 255.255.255.0
auto dsl-provider
iface dsl-provider inet ppp
     provider dsl-provider
# please do not modify the following line
     pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
发表于 2005-12-31 22:31:08 | 显示全部楼层
设置DNS服务器地址了吗?
如果没有设,就用 dpkg-reconfigure etherconf 重新设置一下eth0。
如果没有etherconf ,就先用apt-get安装一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-31 22:39:37 | 显示全部楼层
pppoeconf 已经自动设置了dns服务器地址了。
回复 支持 反对

使用道具 举报

发表于 2006-1-1 10:51:25 | 显示全部楼层
请检查防火墙规则,是否禁止icmp包出入?
回复 支持 反对

使用道具 举报

发表于 2006-1-1 11:07:09 | 显示全部楼层
Post by qyl1
pppoeconf 已经自动设置了dns服务器地址了。



你手动设置下试试,我原来碰到过自动设置无效的情况
回复 支持 反对

使用道具 举报

发表于 2006-1-1 22:10:50 | 显示全部楼层
看一下路由表:route -n
自己手动设置DNS试试。
回复 支持 反对

使用道具 举报

发表于 2006-1-2 19:39:20 | 显示全部楼层
ifconfig eth0 down
ifconfig eth0 up
pon dsl-provider
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表