中兴1809 L2TP配置
中兴1809网络架构:
中兴1809 L2TP部分脚本:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
conf t
vpdn-group 1
service-type lns
virtual-template 1
no l2tp tunnel authentication
ex
vpdn default vpdn-group 1
int virtual-template1
ip unnum fei_1/1
peer default ip pool vpn_chinanet
ppp authentication pap
ip policy route-map src1
ex
user-group special vpn.com vpn hanshou
user-vpdn-group user-group vpn.com vpdn-group 1
vpdn enable
ip local pool vpn_chinanet 192.168.1.8 192.168.1.15 255.255.255.0
ip route 0.0.0.0 0.0.0.0 211.143.5.193
acl standard number 10
rule 1 permit 192.168.1.8 0.0.0.7
route-map src1 permit 10
match ip address 10
set ip next-hop 192.168.1.1
interface fei_1/1
ip address 192.168.1.2 255.255.255.0
本文由作者按照 CC BY 4.0 进行授权