当出现
>>> 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 ethn, where 'n' is a number.
(default eth0):
输入 eth0 ,这是ADSL相连的网卡的名字
当出现
>>> Enter the demand value (default no):
输入 no
当出现
>>> Enter the DNS information here:
输入 server ,这表示使用ADSL拨号自动获得的DNS服务器IP地址
当出现
>>> Please enter your PPPoE password:
输入ADSL帐号的密码
当出现
>>> Choose a type of firewall (0-2):
输入 0 ,不使用防火墙
当出现
>>> Accept these settings and adjust configuration files (y/n)?
如果输入的信息正确,输入 y ,完成配置,否则,输入 n 重新输入。
在/etc/modules.conf中加入下面一行:
alias char-major-144 pppox
修改文件 /etc/ppp/options.
# general options
idle 600
# this is a must
user " domain@hermes.com "
sync
local
nocrtscts
noauth
usepeerdns
mru 1490
mtu 1490
# this is recommended
defaultroute
hide-password
nodetach
#
# switch off all compressions
# this is a must
noaccomp
nopcomp
# this is recommended
novj
novjccomp
nobsdcomp
nodeflate
noccp
注意:Replace with your own login name.
运行 /usr/sbin/pppoed开始连接。
注意:只有root 用户可以启动连接。
If you use a network device other than eth0, you’ll need to start /usr/sbin/pppoed with the option -I ethX, where X is the number of the device。