当前位置: 技术问答>linux和unix
RedHat7.X + Adsl 安装成后的小问题!高手请进!愿出高分!不够再加!
来源: 互联网 发布时间:2015-01-12
本文导语: RPM软件包为: rp-pppoe-3.5-1.i386.rpm 安装完毕后:adsl-status adsl-status: Link is up and running on interface ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:61.183.x.x P-t-P:202.103.x.x Mask:255.255.255.255 ...
RPM软件包为:
rp-pppoe-3.5-1.i386.rpm
安装完毕后:adsl-status
adsl-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.183.x.x P-t-P:202.103.x.x Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:5 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:210 (210.0 b) TX bytes:54 (54.0 b)
命令: netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
202.103.x.x 0.0.0.0 255.255.255.255 UH 40 0 0 ppp0
192.168.101.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 192.168.101.254 0.0.0.0 UG 40 0 0 eth0
两个命令后的IP 202.103.x.x 是相同的
命令:nslookup www.sina.com.cn
;; connection timed out; no servers could be reached
命令:ping www.sina.com.cn
说没发现服务!
不能浏览网页!
ping 其它常用的站点也没用!
不知道是什么原因?
请高手指点!
rp-pppoe-3.5-1.i386.rpm
安装完毕后:adsl-status
adsl-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.183.x.x P-t-P:202.103.x.x Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:5 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:210 (210.0 b) TX bytes:54 (54.0 b)
命令: netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
202.103.x.x 0.0.0.0 255.255.255.255 UH 40 0 0 ppp0
192.168.101.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 192.168.101.254 0.0.0.0 UG 40 0 0 eth0
两个命令后的IP 202.103.x.x 是相同的
命令:nslookup www.sina.com.cn
;; connection timed out; no servers could be reached
命令:ping www.sina.com.cn
说没发现服务!
不能浏览网页!
ping 其它常用的站点也没用!
不知道是什么原因?
请高手指点!
|
http://tech.sina.com.cn/c/2002-06-25/14051.html
http://www.roaringpenguin.com/pppoe/
自己下载一个合适的然后使用 RPM 安装方法:
rpm -ivh rp-pppoe-3.5-1.i386.rpm
之后使用命令:
adsl-setup
配置你的账号,密码
adsl-start
连接你的账号
adsl-stop
断开连接 http://www.neweasier.com/article/2002-08-10/1028989812.html
http://www.roaringpenguin.com/pppoe/
自己下载一个合适的然后使用 RPM 安装方法:
rpm -ivh rp-pppoe-3.5-1.i386.rpm
之后使用命令:
adsl-setup
配置你的账号,密码
adsl-start
连接你的账号
adsl-stop
断开连接 http://www.neweasier.com/article/2002-08-10/1028989812.html
|
我找着原因了:
adsl-start 后需要设置默认路由,但我把路由的IP搞错了,请看下面!
adsl-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.183.x.x P-t-P:202.103.x.x
^^^^^^^^^^ ->应该是这个IP
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:5 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:210 (210.0 b) TX bytes:54 (54.0 b)
命令:route add default gw 上面的地址
netstat -nr
显示如下:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
202.103.x.x 0.0.0.0 255.255.255.255 UH 40 0 0 ppp0
192.168.101.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 61.183.x.x 255.0.0.0 U 40 0 0 lo
^^^^^^^^^^ -> 这才是正确的
0.0.0.0 192.168.101.254 0.0.0.0 UG 40 0 0 eth0
呵呵!终于搞定了!
希望能结大家帮助!
adsl-start 后需要设置默认路由,但我把路由的IP搞错了,请看下面!
adsl-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.183.x.x P-t-P:202.103.x.x
^^^^^^^^^^ ->应该是这个IP
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:5 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:210 (210.0 b) TX bytes:54 (54.0 b)
命令:route add default gw 上面的地址
netstat -nr
显示如下:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
202.103.x.x 0.0.0.0 255.255.255.255 UH 40 0 0 ppp0
192.168.101.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 61.183.x.x 255.0.0.0 U 40 0 0 lo
^^^^^^^^^^ -> 这才是正确的
0.0.0.0 192.168.101.254 0.0.0.0 UG 40 0 0 eth0
呵呵!终于搞定了!
希望能结大家帮助!