我用pppoe的方式拨号上网(adsl或其他需要拨号程序输入用户名密码的宽带网络),在Magic Linux下面我应该怎么做? 回复:Magic Linux如同其他许多linux发行版一样提供了对pppoe拨号方式的支持,您可以用以下几个命令来配置、拨号。 adsl-setup 这个命令将会给出一个字符界面的向导,要求您输入您的用户名、IP地址、网关、DNS服务器以及密码等信息,请按照提示做,除了用户名和密码,其他的一般直接回车是用默认设置。 adsl-start 这个命令可以在您设置结束后开始拨号。 adsl-status 这个命令可以查看你的拨号网络的状态。 adsl-stop 这个命令可以断开您的拨号连接。 如果您正确设置了您的adsl连接,并且已经拨号成功,却无法打开网页,先用adsl-stop断开,用route看一下,系统是否存在default gateway, 如果已经存在, 需要用route命令删除,否则adsl无法重新设定default gateway。再次重申:用ADSL上网的网卡一定不能设有网关(gateway)。 现在可以试试看用adsl-start拨号,能不能打开网页?如果连拨号都拨不上了,不要紧,运行/etc/rc.d/init.d/network restart,重置网络,现在应该可以了。
[root@SpingLinux ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:05:5D:6A:28:52 inet addr:192.168.1.2 Bcast:192.168.1.1 Mask:255.255.255.0 inet6 addr: fe80::205:5dff:fe6a:2852/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:546 (546.0 b) Interrupt:11 Base address:0xc000 [root@SpingLinux ~]# adsl-start [root@SpingLinux ~]# adsl-status adsl-status: Link is up and running on interface ppp0 ppp0 Link encapoint-to-Point Protocol inet addr:222.78.132.235 P-t-P:222.78.128.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:7 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:238 (238.0 b) TX bytes:30 (30.0 b) [root@SpingLinux ~]# adsl-stop [root@SpingLinux ~]# 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 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
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
GMT+8, 2025-3-5 07:14 , Processed in 0.047571 second(s), 16 queries .
© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.