|
发表于 2004-1-9 13:54:08
|
显示全部楼层
[quote:e16a6c45f4="caikf"]小弟,我当初也是这样的,经过我一周的时间才成功,现在把方法告诉你.希望给点掌声.我看你是已经拨号成功了,先ifconfig下,
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:05:5D:E4:46:C6
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: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.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric: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 encapoint-to-Point Protocol
inet addr:61.149.249.239 P-t-P:61.51.148.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric: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已经自动获取成功了.可以查看一下:
[root@localhost root]# more /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 202.106.196.152
search localdomain
nameserver 202.106.196.115
这个是北京ADSL的默认DNS
然后,在你的路由表中加入默认网关;
[root@localhost root]# route add default gw 61.149.249.239
[root@localhost root]# 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.239 0.0.0.0 UG 0 0 0 ppp0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
这样,就可以了
最后,ping下;
[root@localhost root]# 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
给点掌声谢谢[/quote]
//
掌声 ~~~~~
照老兄的设置搞定了 , 爽啊, 再也 不用打开一个网页就掉线了.............. |
|