打算跟cisco对接l2tpv3,先用两个1841配好l2tpv3.
R1:
enable
config t
ip cef
int g0/0
ip addr 192.168.11.1 255.255.255.0
exit
l2tp-class l2tp-defaults
retransmit initial retries 30
cookie size 8
pseudowire-class PWE3_CLASS
encapsulation l2tpv3
protocol none
ip local int g0/0
interface g0/1
xconnect 192.168.11.2 123 encapsulation l2tpv3 manual pw-class PWE3_CLASS
l2tp id 111 222
l2tp hello l2tp-defaults
R2:
enable
config t
ip cef
int g0/0
ip addr 192.168.11.2 255.255.255.0
exit
l2tp-class l2tp-defaults
retransmit initial retries 30
cookie size 8
pseudowire-class PWE3_CLASS
encapsulation l2tpv3
protocol none
ip local int g0/0
interface g0/1
xconnect 192.168.11.1 123 encapsulation l2tpv3 manual pw-class PWE3_CLASS
l2tp id 222 111
l2tp hello l2tp-defaults
查看:
show l2tun session brief
show l2tun session all
两个PC之间能够ping通,才能算配置成功。
注意点:
1. G0/1不能配置IP地址;
2. G0/1 -》PWE3_CLASS-》G0/0 索引关系,容易配错。
参考: