Lab L2tpv3

L2TPv3 配置:

静态(一般不采用)
动态
1、开启 CEF(Enable Cisco Express Forwarding)
2、配置环回口
3、Configure the L2TP Class(定义控制通道安全参数的可选项)
r2(config)#l2tp-class AA
r2(config-l2tp-class)#authentication 
r2(config-l2tp-class)#password 0 cisco

4、Configure the Pseudowire Class(指定源地址)
r2(config)#pseudowire-class T4
r2(config-pw-class)#encapsulation l2tpv3
r2(config-pw-class)#protocol l2tpv3 AA
r2(config-pw-class)#ip local interface loopback 0
r2(config-pw-class)#interworking ip(Any-to-Any)

5、Configure the Attachment Circuits(调用上述定义的伪线)
r2(config-subif)#int e0/0.12
r2(config-subif)#xconnect 10.1.1.2 120 pw-class T4

r2#show l2tun
r2#show l2tun                                                                   
                                                                                
L2TP Tunnel and Session Information Total tunnels 1 sessions 1                  
                                                                                
LocTunID   RemTunID   Remote Name   State  Remote Address  Sessn L2TP Class/    
                                                           Count VPDN Group     
1317103989 3627901902 r4            est    4.4.4.4         1     l2tp_default_cl
                                                                                
LocID      RemID      TunID      Username, Intf/      State  Last Chg Uniq ID   
                                 Vcid, Circuit                                  
2340154578 1620984577 1317103989 100, Et0/0.12:10     est    00:12:53 8         


 

原文地址:https://www.cnblogs.com/cyrusxx/p/12824124.html