PPPoE server 配置 Un-numbered Mode

Un-numbered Mode IP Segment:
Subent Mask: 29, (255.255.255.248)
Network IP: 100.100.88.120 (reserved)
Broadcast IP: 100.100.88.127 (reserved)
Gateway IP: 100.100.88.121
Usable Range of LAN Devices: 100.100.88.122~100.100.88.126
 
1. PPPoE Authentication Configuration:
vim /etc/ppp/chap-secrets
unnumbered1     *       111111                    100.100.88.121
unnumbered2     *       111111            100.100.88.177
unnumbered3    *    111111            100.100.88.185
unnumbered4    *    111111            100.100.88.193
unnumbered5    *    111111            100.100.88.201
unnumbered6    *    111111            100.100.88.209
unnumbered7    *    111111            100.100.88.217
unnumbered8     *       111111            100.100.88.233
 
2. Enable PPPoE server
pppoe-server -L 10.18.99.1 -R 10.18.99.2 -I p2p1
 
3. Add NAT rule:
iptables -t nat -A POSTROUTING -s 100.100.88.120/29 -o eth0 -j SNAT --to-source 192.168.10.108
 
4. Add Routing item:
ip route add 100.100.88.120/29 dev ppp0
 
#Appendix:
#PPPoE Server Network Settings:
#eth0: 192.168.125.250/24
#ppp0: 192.168.100.1

你可能感兴趣的:(pppoe,Un-numbered)