[问题]求助ADSL设置问题,相关参考文档都看过,仍旧未解决问题。(已解决)

上网、浏览、聊天、下载等
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

[问题]求助ADSL设置问题,相关参考文档都看过,仍旧未解决问题。(已解决)

#1

帖子 oliver » 2006-02-12 16:50

如题,"sudo pppoeconf"命令打开拨号程序设置窗口,用户名和密码都已经正确设置,步骤都是一路点选"yes",设置开机自动运行以及立刻运行。提示配置成功,用"plog"命令提示服务器已经确定了用户名和密码,并且取得IP,但是仍旧不能上网,ping电信网关也ping不通。

下面我附上终端的内容:
oliver@ubuntu:~$ ping 24.24.24.24
PING 24.24.24.24 (24.24.24.24) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

--- 24.24.24.24 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2002ms

oliver@ubuntu:~$ sudo pon dsl-provider
Password:
Plugin rp-pppoe.so loaded.
oliver@ubuntu:~$ ping 24.24.24.24
PING 24.24.24.24 (24.24.24.24) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

--- 24.24.24.24 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

oliver@ubuntu:~$ sudo pppoeconf
Timeout waiting for PADO packets
Plugin rp-pppoe.so loaded.
oliver@ubuntu:~$ ping 24.24.24.24
PING 24.24.24.24 (24.24.24.24) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

--- 24.24.24.24 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

oliver@ubuntu:~$ sudo pon dsl-provider
Plugin rp-pppoe.so loaded.
oliver@ubuntu:~$ ping 24.24.24.24
PING 24.24.24.24 (24.24.24.24) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

--- 24.24.24.24 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms

oliver@ubuntu:~$ plog
Feb 12 11:44:50 localhost pppd[8797]: PAP authentication succeeded
Feb 12 11:44:50 localhost pppd[8797]: peer from calling number 00:E0:FC:21:8D:3A authorized
Feb 12 11:44:50 localhost pppd[8797]: Cannot determine ethernet address for proxy ARP
Feb 12 11:44:50 localhost pppd[8797]: local IP address 222.185.74.101
Feb 12 11:44:50 localhost pppd[8797]: remote IP address 24.24.24.24
Feb 12 11:44:50 localhost pppd[8797]: primary DNS address 221.228.255.1
Feb 12 11:44:50 localhost pppd[8797]: secondary DNS address 218.2.135.1
oliver@ubuntu:~$
上次由 oliver 在 2006-02-12 23:27,总共编辑 2 次。
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2006-02-12 17:05

运行 ifconfig /all 贴出结果。

如果eth0由设置网关,删除网关

route del default
route add default ppp0
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#3

帖子 oliver » 2006-02-12 17:15

删除网关以后问题依然没有解决……,我再去运行ifconf /all……
oneleaf 写了:运行 ifconfig /all 贴出结果。

如果eth0由设置网关,删除网关

route del default
route add default ppp0
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#4

帖子 oliver » 2006-02-12 17:26

执行ifconfig /all以后的终端信息:
oliver@ubuntu:~$ ifconf /all
bash: ifconf: command not found
oliver@ubuntu:~$ ifconfig /all
/all: error fetching interface information: Device not found
oliver@ubuntu:~$ ifconfig /a
/a: error fetching interface information: Device not found
oliver@ubuntu:~$ ifconfig /all
/all: error fetching interface information: Device not found
oliver@ubuntu:~$ ifconfig /all
/all: error fetching interface information: Device not found
oliver@ubuntu:~$
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#5

帖子 oneleaf » 2006-02-12 17:31

我记错了,直接ifconfig
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#6

帖子 eexpress » 2006-02-12 17:39

ping: sendmsg: Operation not permitted
没权限?是不是没加入什么组。
Feb 12 11:44:50 localhost pppd[8797]: PAP authentication succeeded
已经通过认证了。
● 鸣学
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#7

帖子 oliver » 2006-02-12 17:59

执行ifconfig的终端内容附上:
oliver@ubuntu:~$ ifconfig
eth1 Link encap:Ethernet HWaddr 00:E0:91:00:F3:84
inet addr:172.31.123.9 Bcast:172.31.123.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:91ff:fe00:f384/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4038 (3.9 KiB) TX bytes:4761 (4.6 KiB)
Interrupt:11 Base address:0x4000

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

ppp0 Link encap:Point-to-Point Protocol
inet addr:222.185.74.182 P-t-P:24.24.24.24 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2604 (2.5 KiB) TX bytes:775 (775.0 b)

oliver@ubuntu:~$
原先我是使用广电宽带上网,直接设置好网络参数就能够上网了,而且那些网络参数没有修改……eth0怎么没有呢?难道第一块网卡在Ubuntu是eth1?
networker
帖子: 419
注册时间: 2006-02-06 21:06
来自: Shanghai,China
联系:

#8

帖子 networker » 2006-02-12 19:34

看看你的DNS设置有没有错误。
cat /etc/resolv.conf帖出来看可那。
还有检查你的网卡配置。是否有配置虚拟网卡什么的。
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#9

帖子 oliver » 2006-02-12 20:15

oliver@ubuntu:~$ cat /etc/resolv.conf
nameserver 221.228.255.1
nameserver 218.2.135.1
oliver@ubuntu:~$
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#10

帖子 oneleaf » 2006-02-12 20:33

route 看看?

另外,你把eth0配置一个ip看看,顺便将eth1禁用一下,再拨号看看。
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#11

帖子 oliver » 2006-02-12 21:11

oliver@ubuntu:~$ ping 202.43.217.78
connect: Network is unreachable
oliver@ubuntu:~$ ping 24.24.24.24
PING 24.24.24.24 (24.24.24.24) 56(84) bytes of data.

--- 24.24.24.24 ping statistics ---
31 packets transmitted, 0 received, 100% packet loss, time 30023ms

oliver@ubuntu:~$ ping 66.249.89.99
connect: Network is unreachable
oliver@ubuntu:~$


oliver@ubuntu:~$ ping 66.249.89.99
connect: Network is unreachable
oliver@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
24.24.24.24 * 255.255.255.255 UH 0 0 0 ppp0
oliver@ubuntu:~$
以上是终端的内容复制,我的网卡代号是如此的,无线网卡代号是"eth0",以太网卡代号是"eth1",调制解调器代号是"ppp0"。奇怪着,按照道理ADSL也是适用以太网卡的,可是ppp0的代号却是指调制解调器。会不会是这儿出问题呢?我将eth1禁用了,也就是禁用了以太网卡,还是不能够ping通。上面的终端内容里头我有ping过internet的主机ip。
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#12

帖子 oliver » 2006-02-12 21:32

oliver@ubuntu:~$ sudo pon dsl-provider
Password:
Plugin rp-pppoe.so loaded.
oliver@ubuntu:~$ route add default ppp0
SIOCADDRT: Operation not permitted
oliver@ubuntu:~$ route add default gw ppp0
ppp0: Unknown host
oliver@ubuntu:~$
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#13

帖子 oneleaf » 2006-02-12 21:37

sudo route add default ppp0

另外,在windows下可以ping通 24.24.24.24 吗?
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#14

帖子 oliver » 2006-02-12 21:51

oliver@ubuntu:~$ pon dsl-provider
Plugin rp-pppoe.so loaded.
oliver@ubuntu:~$ sudo route add default ppp0
Password:
oliver@ubuntu:~$ ping 24.24.24.24
PING 24.24.24.24 (24.24.24.24) 56(84) bytes of data.

--- 24.24.24.24 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1998ms

oliver@ubuntu:~$ ping 202.43.217.78
PING 202.43.217.78 (202.43.217.78) 56(84) bytes of data.

--- 202.43.217.78 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms

oliver@ubuntu:~$
另外 ,windows平台也不能ping通24.24.24.24这个IP
头像
oliver
帖子: 775
注册时间: 2005-10-05 11:31
联系:

#15

帖子 oliver » 2006-02-12 22:21

oliver@ubuntu:~$ pon dsl-provider
Plugin rp-pppoe.so loaded.
oliver@ubuntu:~$ sudo route add default ppp0
Password:
oliver@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

oliver@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

oliver@ubuntu:~$ ping 202.43.217.78
PING 202.43.217.78 (202.43.217.78) 56(84) bytes of data.

--- 202.43.217.78 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

oliver@ubuntu:~$
route命令执行没有反应,"Ctrl+C"将命令中止了。
回复