Tunnel L2TPv3
U
SER
G
UIDE
254
T
UNNEL
L2TP
V
3
The router Imola can manage L2TPv3 protocol compliant to RFC 3931 both in static and dynamic
version. Thanks to this protocol, you can transport Layer 2 packets in a transparent way over IP
network; those packets can be from any LAN port of the router itself, extending logically one or
more segment of the local network on a geographical network.
TUNNEL
L2TP
V
3
STATIC CONFIGURATION
It is possible to configure up to 8 L2TPv3 tunnel, creating 8 pseudo wire interfaces, respectively
called
pseth0
,
pseth1
, ....
pseth7
.
An example of this configuration is:
set l2tpv3 pseth0 tunnel-source 10.10.7.11
set l2tpv3 pseth0 tunnel-destination 7.10.100.100
set l2tpv3 pseth0 tunnel-address 100.100.8.2/24
set l2tpv3 pseth0 local-cookie 1234
set l2tpv3 pseth0 local-cookie-size 4
set l2tpv3 pseth0 remote-cookie 4321
set l2tpv3 pseth0 remote-cookie-size 4
set l2tpv3 pseth0 local-id 11
set l2tpv3 pseth0 remote-id 22
set l2tpv3 pseth0 description Tunnel-L2TPv3-Manual
set l2tpv3 pseth0 on
This activate an information exchange with the peer leading to the definition and creation of the
tunnel, and negotiating dynamically the parameters
local-cookie
,
remote-cookie
,
local-id
and
remote-id.
The router uses the attribute
Pseudowire-id
and the value
100
during the negotiation process.
But you can modify it by using:
set l2tpv3 pseth0 pseudowire-id N
The result is the creation of the
pseth0
interface to which the IP
100.100.8.2/24
is associated
root@IMOLA>
ifconfig pseth0
pseth0 Link encap:Ethernet HWaddr 8E:70:E5:CF:0E:1D
inet addr:100.100.8.2 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::8c70:e5ff:fecf:e1d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1458 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:438 (438.0 B)