Specify the type of encapsulating protocol and UDP port numbers:
esr(config-l2tpv3)# protocol udp
esr(config-l2tpv3)# local port 519
esr(config-l2tpv3)# remote port 519
Specify identifiers for session inside the tunnel for local and remote sides:
esr(config-l2tpv3)# local session-id 100
esr(config-l2tpv3)# remote session-id 200
Define the inherence of L2TPv3 tunnel to a bridge that should be mapped to remote office network (for bridge
configuration, see Section Configuration example of bridge for VLAN and L2TPv3 tunnel):
esr(config-l2tpv3)# bridge-group 333
Enable previously created tunnel and exit:
esr(config-l2tpv3)# enable
esr(config-l2tpv3)# exit
Create sub-interface for switching of traffic coming from the tunnel into LAN with VLAN id 333:
esr(config)# interface gi 1/0/2.333
Define the inherence of sub-interface to a bridge that should be mapped to LAN (for bridge configuration, see
Section Configuration of PPP via E1):
esr(config-subif)# bridge-group 333
esr(config-subif)# exit
When settings are applied, traffic will be encapsulated into the tunnel and sent to the partner regardless of
their L2TPv3 tunnel existence and settings validity.
Tunnel settings for the remote office should mirror local ones. IP address 183.0.0.10 should be used as a local
gateway. IP address 21.0.0.1 should be used as a remote gateway for the tunnel. Encapsulation protocol port
number at the local side should be 520, at the partner's side – 519. Session identifier inside the tunnel should
be equal to 200, at the partner's side – 100. Also, the tunnel should belong to a bridge that should be
connected with the partner's network.
To view the tunnel status, use the following command:
esr# show tunnels status l2tpv3 333