>>> 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