配置LAC_1
#
sysname LAC_1
#
bridge 1
#
l2tp enable //使能L2TP功能
#
interface Virtual-Template1 //创建VT虚拟接口模板,配置拨号参数
bridge 1 //创建网桥组1并将VT虚拟接口加入网桥组1
bridge vlan-transmit enable //使能网桥组接口透明传输VLAN ID功能
ppp chap user huawei
ppp chap password cipher %@%@U>upTZ}mQM:rhRL:4;s$,(xf%@%@
l2tp-auto-client enable
#
interface GigabitEthernet1/0/0
ip address 1.1.2.1 255.255.255.0
#
interface GigabitEthernet2/0/0
bridge 1
bridge vlan-transmit enable
#
l2tp-group 1 //创建L2TP组,配置L2TP连接参数
tunnel password cipher %@%@/-#)Lg[S4F:#2~ZNvqa$]\DL%@%@
tunnel name lac_1
start l2tp ip 1.1.1.1 fullusername huawei
#
ip route-static 1.1.1.1 255.255.255.255 1.1.2.2 //配置静态路由
#
return
配置LAC_2
#
sysname LAC_2
#
bridge 1
#
l2tp enable //使能L2TP功能
#
interface Virtual-Template1 //创建VT虚拟接口模板,配置拨号参数
bridge 1 //创建网桥组1并将VT虚拟接口加入网桥组1
bridge vlan-transmit enable //使能网桥组接口透明传输VLAN ID功能
ppp chap user huawei
ppp chap password cipher %@%@U>upTZ}mQM:rhRL:4;s$,(xf%@%@
ip address ppp-negotiate
l2tp-auto-client enable
#
interface GigabitEthernet1/0/0
ip address 1.1.3.1 255.255.255.0
#
interface GigabitEthernet2/0/0
bridge 1
bridge vlan-transmit enable
#
l2tp-group 1 //创建L2TP组,配置L2TP连接参数
tunnel password cipher %@%@/-#)Lg[S4F:#2~ZNvqa$]\DL%@%@
tunnel name lac_2
start l2tp ip 1.1.1.1 fullusername huawei
#
ip route-static 1.1.1.1 255.255.255.255 1.1.3.2 //配置静态路由
#
return
配置LNS
#
sysname LAC_2
#
bridge 1
#
l2tp enable //使能L2TP功能
#
interface Virtual-Template1 //创建VT虚拟接口模板,配置拨号参数
bridge 1 //创建网桥组1并将VT虚拟接口加入网桥组1
bridge vlan-transmit enable //使能网桥组接口透明传输VLAN ID功能
ppp chap user huawei
ppp chap password cipher %@%@U>upTZ}mQM:rhRL:4;s$,(xf%@%@
ip address ppp-negotiate
l2tp-auto-client enable
#
interface GigabitEthernet1/0/0
ip address 1.1.3.1 255.255.255.0
#
interface GigabitEthernet2/0/0
bridge 1
bridge vlan-transmit enable
#
l2tp-group 1 //创建L2TP组,配置L2TP连接参数
tunnel password cipher %@%@/-#)Lg[S4F:#2~ZNvqa$]\DL%@%@
tunnel name lac_2
start l2tp ip 1.1.1.1 fullusername huawei
#
ip route-static 1.1.1.1 255.255.255.255 1.1.3.2 //配置静态路由
#
return
配置LNS
#
sysname LNS
#
l2tp enable //使能L2TP功能
#
bridge 1
#
aaa
local-user huawei password cipher %^%#_<`.CO&(:LeS/$#F\H0Qv8B]KAZja3}3q'RNx;VI%^%#
local-user huawei privilege level 15
local-user huawei service-type ppp
#
interface Virtual-Template1
bridge 1 //创建网桥组1并将VT虚拟接口加入网桥组1
bridge vlan-transmit enable //使能网桥组接口透明传输VLAN ID功能
ppp authentication-mode chap
#
interface GigabitEthernet1/0/0
ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet2/0/0
bridge 1
bridge vlan-transmit enable
#
l2tp-group 1
allow l2tp virtual-template 1
tunnel password cipher %^%#_<`.CO&(:LeS/$#F\H0Qv8B]KAZja3}3q'RNx;VI%^%#
tunnel name lns
#
ip route-static 1.1.2.1 255.255.255.255 1.1.1.2 //配置静态路由
ip route-static 1.1.3.1 255.255.255.255 1.1.1.2
#
return