>>> Enter your PPPoE user name: ——此处输入拨号帐号的用户名 >>> 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 >>> Enter the demand value (default no): ——输no >>> Enter the DNS information here: ——输210.52.149.2(视当地运营商的DNS服务器IP而定) >>> Please enter your PPPoE password: ——输网通用户口令 >>> Choose a type of firewall (0-2): ——输0 >>> Accept these settings and adjust configuration files (y/n)? ——输y
6、启动拨号连接
/usr/sbin/adsl-start
成功连接后,屏幕显示Connected.
此时这台linux已可以上网浏览了。
7、IP伪装
为了使局域网中的其他机器能通过Linux服务器共享上网,至少须执行下面的命令:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE