QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 641|回复: 2

请教RH9+ADSL的上网的问题,按照好多教程搞了好久也没有

[复制链接]
发表于 2003-11-28 17:19:47 | 显示全部楼层 |阅读模式
OS:RH9,中国电信的ADSL,RTL8139
adsl-start显示连接上了,可以就是上不了网。

没有连接前的信息:
[root@localhost root]# 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
127.0.0.0 * 255.255.255.0 U 0 0 0 lo
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

[root@localhost root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

[root@localhost root]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:FD:1F:37
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:212 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:17466 (17.0 Kb) TX bytes:18334 (17.9 Kb)
Interrupt:11 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.255.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9277 errors:0 dropped:0 overruns:0 frame:0
TX packets:9277 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:633995 (619.1 Kb) TX bytes:633995 (619.1 Kb)

[root@localhost root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:FD:1F:37
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:212 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:17466 (17.0 Kb) TX bytes:18334 (17.9 Kb)
Interrupt:11 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.255.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9391 errors:0 dropped:0 overruns:0 frame:0
TX packets:9391 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:641792 (626.7 Kb) TX bytes:641792 (626.7 Kb)

连接后的信息:
[root@localhost root]# adsl-start
... Connected!
[root@localhost root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
218.14.182.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.255.255.0 U 0 0 0 lo
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
218.14.182.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:FD:1F:37
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:240 errors:0 dropped:0 overruns:0 frame:0
TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:19504 (19.0 Kb) TX bytes:20320 (19.8 Kb)
Interrupt:11 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.255.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10265 errors:0 dropped:0 overruns:0 frame:0
TX packets:10265 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:701569 (685.1 Kb) TX bytes:701569 (685.1 Kb)

ppp0 Link encapoint-to-Point Protocol
inet addr:218.14.185.70 P-t-P:218.14.182.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:8 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:514 (514.0 b) TX bytes:54 (54.0 b)

[root@localhost root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:FD:1F:37
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:240 errors:0 dropped:0 overruns:0 frame:0
TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:19504 (19.0 Kb) TX bytes:20320 (19.8 Kb)
Interrupt:11 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.255.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10303 errors:0 dropped:0 overruns:0 frame:0
TX packets:10303 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:704168 (687.6 Kb) TX bytes:704168 (687.6 Kb)

ppp0 Link encapoint-to-Point Protocol
inet addr:218.14.185.70 P-t-P:218.14.182.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:8 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:514 (514.0 b) TX bytes:54 (54.0 b)

[root@localhost root]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
218.14.182.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

[root@localhost root]# ping 218.14.185.70
PING 218.14.185.70 (218.14.185.70) 56(84) bytes of data.
64 bytes from 218.14.185.70: icmp_seq=1 ttl=64 time=0.089 ms
64 bytes from 218.14.185.70: icmp_seq=2 ttl=64 time=0.060 ms

[root@localhost root]# ping 202.96.128.143
PING 202.96.128.143 (202.96.128.143) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable

[root@localhost root]# ping 202.96.128.68
PING 202.96.128.68 (202.96.128.6 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable

[root@localhost root]# ping 162.105.31.222
PING 162.105.31.222 (162.105.31.222) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable

[root@localhost root]# adsl-status
adsl-status: Link is up and running on interface ppp0
ppp0 Link encapoint-to-Point Protocol
inet addr:218.14.185.70 P-t-P:218.14.182.1 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:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2778 (2.7 Kb) TX bytes:54 (54.0 b)


/etc/ppp/resolv.conf
nameserver 202.96.128.68
nameserver 202.96.128.143

/etc/resolv/conf
nameserver 202.96.128.68
nameserver 202.96.128.143


/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=

/etc/sysconfig/networking/ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.255.255.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

/etc/sysconfig/networking/profiles/default/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

/etc/sysconfig/networking/profiles/default/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

/etc/sysconfig/networking/profiles/default/resolv.conf
; generated by /sbin/dhclient-script
nameserver 202.96.128.143
nameserver 202.96.128.68

/etc/sysconfig/network-scripts/ifcfg/eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp

/etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
发表于 2003-11-28 18:23:00 | 显示全部楼层
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

DEFAULT应该是PPP0
回复

使用道具 举报

 楼主| 发表于 2003-11-29 01:03:29 | 显示全部楼层
那请问该如何手动改这些设置呢?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-15 00:12 , Processed in 0.036637 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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