adsl不能上网
电信的adsl,网卡8139一只,原来在redhat9.0下用系统自带的网络配置程序,只需要填上ech0的IP和子网掩码就能拨号上网,现在在fedora core 1.0下,照redhat9.0的办法无法上网,能ping到 ech0的ip,ppp0的ip ping不出去,各位帮忙 解决了,真没想到,奇怪 hoho,电信的ADSL没什么问题的,8139的网卡Linux也支持的很好。 :-) 小弟,我当初也是这样的,经过我一周的时间才成功,现在把方法告诉你.希望给点掌声.我看你是已经拨号成功了,先ifconfig下,# ifconfig
eth0 Link encap:EthernetHWaddr 00:05:5D:E4:46:C6
inet addr:192.168.1.3Bcast:192.168.1.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:2523 errors:0 dropped:0 overruns:0 frame:0
TX packets:2044 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:489374 (477.9 Kb)TX bytes:230744 (225.3 Kb)
Interrupt:11 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:16436Metric:1
RX packets:6441 errors:0 dropped:0 overruns:0 frame:0
TX packets:6441 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:439903 (429.5 Kb)TX bytes:439903 (429.5 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.149.249.239P-t-P:61.51.148.1Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric:1
RX packets:1903 errors:0 dropped:0 overruns:0 frame:0
TX packets:1903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:392429 (383.2 Kb)TX bytes:179990 (175.7 Kb)
假如这个已经成功,记下你的自动获得的IP:61.149.249.239
然后,配置网关和DNS,先说明下,DNS已经自动获取成功了.可以查看一下:
# more /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 202.106.196.152
search localdomain
nameserver 202.106.196.115
这个是北京ADSL的默认DNS
然后,在你的路由表中加入默认网关;
# route add default gw 61.149.249.239
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
61.51.148.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 61.149.249.2390.0.0.0 UG 0 0 0 ppp0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
这样,就可以了
最后,ping下;
# ping -c 3 www.sina.com.cn
PING libra.sina.com.cn (202.106.185.249) 56(84) bytes of data.
64 bytes from 202.106.185.249: icmp_seq=1 ttl=56 time=89.4 ms
64 bytes from 202.106.185.249: icmp_seq=2 ttl=56 time=90.8 ms
64 bytes from 202.106.185.249: icmp_seq=3 ttl=56 time=89.6 ms
--- libra.sina.com.cn ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2029ms
rtt min/avg/max/mdev = 89.482/89.986/90.808/0.586 ms
有问题给我发消息:
[email protected]
QQ: 151018383
给点掌声谢谢 小弟,我当初也是这样的,经过我一周的时间才成功,现在把方法告诉你.希望给点掌声.我看你是已经拨号成功了,先ifconfig下,
# ifconfig
eth0 Link encap:EthernetHWaddr 00:05:5D:E4:46:C6
inet addr:192.168.1.3Bcast:192.168.1.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:2523 errors:0 dropped:0 overruns:0 frame:0
TX packets:2044 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:489374 (477.9 Kb)TX bytes:230744 (225.3 Kb)
Interrupt:11 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:16436Metric:1
RX packets:6441 errors:0 dropped:0 overruns:0 frame:0
TX packets:6441 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:439903 (429.5 Kb)TX bytes:439903 (429.5 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.149.249.239P-t-P:61.51.148.1Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric:1
RX packets:1903 errors:0 dropped:0 overruns:0 frame:0
TX packets:1903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:392429 (383.2 Kb)TX bytes:179990 (175.7 Kb)
假如这个已经成功,记下你的自动获得的IP:61.149.249.239
然后,配置网关和DNS,先说明下,DNS已经自动获取成功了.可以查看一下:
# more /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 202.106.196.152
search localdomain
nameserver 202.106.196.115
这个是北京ADSL的默认DNS
然后,在你的路由表中加入默认网关;
# route add default gw 61.149.249.239
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
61.51.148.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 61.149.249.2390.0.0.0 UG 0 0 0 ppp0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
这样,就可以了
最后,ping下;
# ping -c 3 www.sina.com.cn
PING libra.sina.com.cn (202.106.185.249) 56(84) bytes of data.
64 bytes from 202.106.185.249: icmp_seq=1 ttl=56 time=89.4 ms
64 bytes from 202.106.185.249: icmp_seq=2 ttl=56 time=90.8 ms
64 bytes from 202.106.185.249: icmp_seq=3 ttl=56 time=89.6 ms
--- libra.sina.com.cn ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2029ms
rtt min/avg/max/mdev = 89.482/89.986/90.808/0.586 ms
有问题给我发消息:
[email protected]
QQ: 151018383
给点掌声谢谢
//
掌声 ~~~~~
照老兄的设置搞定了 , 爽啊, 再也 不用打开一个网页就掉线了.............. USB 端口的ADSL咋配置? 咋没人回复呀! 我的也是usb的,不会用 笨!!!怎么不用内置路由 怎末用?不会!
教~! 看来楼上的不会
页:
[1]