打算跟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 索引關(guān)系府喳,容易配錯蘑拯。
參考: