|
发表于 2005-5-3 19:55:54
|
显示全部楼层
在/etc/ppp/ppp.conf中写入。原来那个删了算了。
- default:
- set log Phase tun command # you can add more detailed logging if you wish
- set ifaddr 10.0.0.1/0 10.0.0.2/0
- name_of_service_provider:
- set device PPPoE:xl1 # replace xl1 with your Ethernet device
- set authname YOURLOGINNAME
- set authkey YOURPASSWORD
- set dial
- set login
- add default HISADDR
复制代码
用命令行拨号:
#ppp -ddial name_of_service_provider
自动拨号:
/etc/rc.conf 中加入:
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES" # if you want to enable nat for your local network, otherwise NO
ppp_profile="name_of_service_provider"
其实,很多东西在handbook都有。 |
|