1.打开终端
#sudo pppoeconf
进入配置,输入用户名和密码.
2.建立连接
#sudo pon dsl-provider
3.断开连接
#sudo poff dsl-provider
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
LOGIN NAME
#请输入adsl帐户名:
Enter your Login Name (default root):gzdsl123456789
INTERFACE
#哪一块网卡连接的是adsl moden:
Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): eth1
#输入server自动获取dns服务器IP
DNS
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
Enter the DNS information here:server
上一篇:【C++】类和对象(下)