Configuring a LAC-to-LAC IPv6 tunnel
Sample LAC-to-LAC IPv6 tunnel shows the topology of a sample L2TPv3 LAC-to-LAC IPv6 tunnel configuration. To configure this sample LAC-to-LAC tunnel, perform the following steps in configuration mode:
- Configure the L2TPv3 tunnel and LAC cross-connect settings on the R1 router.
- Configure the L2TPv3 tunnel settings (Configuring the L2TPv3 settings for a LAC-to-LAC IPv6 tunnel on R1).
- Configure the LAC cross-connect settings (Configuring the LAC cross-connect settings on R1).
- Configure the L2TPv3 tunnel and LAC cross-connect settings on the R2 router.
- Configure the L2TPv3 tunnel settings (Configuring the L2TPv3 tunnel settings on R2).
- Configure the LAC cross-connect settings (Configuring the LAC cross-connect settings on R2).
Configuring the L2TPv3 settings for a LAC-to-LAC IPv6 tunnel on R1 shows how to configure the L2TPv3 tunnel interface on R1.
Table 1. Configuring the L2TPv3 settings for a LAC-to-LAC IPv6 tunnel on R1 Step Command Specify IP as the encapsulation method to use for the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session encapsulation 'ip'
Specify the cookie string used by R1 (the local router).
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-cookie '12345678'
Specify the local IP address of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-ip '2001:db:1::1'
Specify the local session identifier of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-session-id '88776655'
Specify the local UDP port of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-udp-port '65535'
Specify the cookie string used by R2 (the remote router).
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-cookie '87654321'
Specify the remote IP address of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-ip '2001:db:2::1'
Specify the remote session identifier of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-session-id '88776655'
Specify the remote UDP port of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-udp-port '65534'
Commit the configuration.
vyatta@vyatta# commit
Save the configuration.
vyatta@vyatta# save
Configuring the LAC cross-connect settings on R1 shows how to configure the LAC cross-connect settings on R1.
Table 2. Configuring the LAC cross-connect settings on R1 Step Command Specify the cross-connect parameters of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces dataplane dp0p224p1 xconnect l2tpeth 'lttp20'
Commit the configuration.
vyatta@vyatta# commit
Save the configuration.
vyatta@vyatta# save
Configuring the L2TPv3 tunnel settings on R2 shows how to configure the LAC cross-connect settings on R2.
Table 3. Configuring the L2TPv3 tunnel settings on R2 Step Command Specify IP as the encapsulation method to use for the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session encapsulation 'ip'
Specify the cookie string used by R2 (the local router).
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-cookie '87654321'
Specify the local IP address of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-ip '2001:db:2::1'
Specify the local session identifier of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-session-id '88776655'
Specify the local UDP port of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-udp-port '65534'
Specify the cookie string used by R1 (the remote router).
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-cookie '12345678'
Specify the remote IP address of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-ip '2001:db:1::1'
Specify the remote session identifier of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-session-id '88776655'
Specify the remote UDP port of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-udp-port '65535'
Commit the configuration.
vyatta@vyatta# commit
Save the configuration.
vyatta@vyatta# save
Configuring the LAC cross-connect settings on R2 shows how to configure the LAC cross-connect settings on R2.
Table 4. Configuring the LAC cross-connect settings on R2 Step Command Specify the cross-connect parameters of the lttp20 L2TPv3 tunnel interface.
vyatta@vyatta# set interfaces dataplane dp0p224p1 xconnect l2tpeth 'lttp20'
Commit the configuration.
vyatta@vyatta# commit
Save the configuration.
vyatta@vyatta# save