2015年7月28日 星期二

[Linux] PPPOE build up settings

1.
vim /etc/ppp/pppoe-server-options

require-chap
lcp-echo-interval 10
lcp-echo-failure 2
ms-dns 8.8.8.8
ms-dns 8.8.4.4
netmask 255.255.255.0
defaultroute
noipdefault
usepeerdns

2.
vim /etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client    server  secret          IP addresses

# "aliens"  *   "changeme"  *
aliens  *   changeme    *

3.
method1:
echo “192.168.1.1-20” > /etc/ppp/allip

method2:
echo “10.10.10.1-20” > /etc/ppp/allip

4. Execute binary
method1:
pppoe-server -L 192.168.1.254 -p /etc/ppp/allip -I eth2

method2:
pppoe-server -L 10.10.10.254 -p /etc/ppp/allip -I eth2

Reference:

0 意見:

張貼留言