用两个Cisco 1841配置l2tpv3

2020-02-25  本文已影响0人  达摩院的扫地僧

打算跟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 索引关系,容易配错。

参考:

https://www.cisco.com/c/en/us/support/docs/ip/layer-two-tunnel-protocol-l2tp/116266-configure-l2-00.html

上一篇 下一篇

猜你喜欢

热点阅读