上不了网,求助
- ciclo
- 帖子: 786
- 注册时间: 2007-01-25 16:43
- 来自: 塔尔塔洛斯
上不了网,求助
具体情况如下:
我用的是宽带路由猫,网卡设置成静态ip:192.168.1.5 掩码:255.255.255.0 网关192.168.1.1
DNS:202.99.192.68
在windows下这样设置然后新建连接输入用户名和密码,连接就可以上网。
而在ubuntu下:
在首选项设置成和windows一样,
然后 pppoeconf 设置
然后,还是打不开网页,
接着又ping自己,ping网关都没问题,而ping DNS的时候ping不通。
route如下:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
ifconfig如下:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:17:31:C2:B0:0A
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:31ff:fec2:b00a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2660 (2.5 KiB) TX bytes:4172 (4.0 KiB)
Interrupt:177 Base address:0xc800
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:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1760 (1.7 KiB) TX bytes:1760 (1.7 KiB)
请问该如何设置啊?
我用的是宽带路由猫,网卡设置成静态ip:192.168.1.5 掩码:255.255.255.0 网关192.168.1.1
DNS:202.99.192.68
在windows下这样设置然后新建连接输入用户名和密码,连接就可以上网。
而在ubuntu下:
在首选项设置成和windows一样,
然后 pppoeconf 设置
然后,还是打不开网页,
接着又ping自己,ping网关都没问题,而ping DNS的时候ping不通。
route如下:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
ifconfig如下:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:17:31:C2:B0:0A
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:31ff:fec2:b00a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2660 (2.5 KiB) TX bytes:4172 (4.0 KiB)
Interrupt:177 Base address:0xc800
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:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1760 (1.7 KiB) TX bytes:1760 (1.7 KiB)
请问该如何设置啊?
- zhan
- 帖子: 1880
- 注册时间: 2005-08-15 0:04
- 来自: 南7技校
-
- 帖子: 47
- 注册时间: 2006-11-11 10:25
拨号时要去掉网关的设置
修改/etc/network/interfaces文件,去掉网关的设置的一行就OK了
设置了网关,是拨不上的
设置了网关,是拨不上的
- ciclo
- 帖子: 786
- 注册时间: 2007-01-25 16:43
- 来自: 塔尔塔洛斯
Re: 拨号时要去掉网关的设置
不行啊,去掉设置网关的那一行还是上不了网,还是ping不通DNShoward 写了:修改/etc/network/interfaces文件,去掉网关的设置的一行就OK了
设置了网关,是拨不上的
-
- 帖子: 47
- 注册时间: 2006-11-11 10:25
RE 不行啊,去掉设置网关的那一行还是上不了网,还是ping不通DNS
将plog命令输出的信息贴出来看看
- ciclo
- 帖子: 786
- 注册时间: 2007-01-25 16:43
- 来自: 塔尔塔洛斯
Re: RE 不行啊,去掉设置网关的那一行还是上不了网,还是ping不通DNS
Jan 26 10:34:05 localhost pppd[4816]: PAP authentication failedhoward 写了:将plog命令输出的信息贴出来看看
Jan 26 10:34:11 localhost pppd[4816]: Connection terminated.
Jan 26 10:34:12 localhost pppd[4816]: Modem hangup
Jan 26 10:34:42 localhost pppd[4816]: PPP session is 297
Jan 26 10:34:42 localhost pppd[4816]: Using interface ppp0
Jan 26 10:34:42 localhost pppd[4816]: Connect: ppp0 <--> eth0
Jan 26 10:34:42 localhost pppd[4816]: PAP authentication failed
Jan 26 10:34:48 localhost pppd[4816]: Connection terminated.
Jan 26 10:34:48 localhost pppd[4816]: Modem hangup
- ciclo
- 帖子: 786
- 注册时间: 2007-01-25 16:43
- 来自: 塔尔塔洛斯
-
- 帖子: 164
- 注册时间: 2007-02-08 8:14
- 来自: 死亡一定