The l2tpv3 local connection command configures an L2TPv3 local switching connection.
The undo l2tpv3 local connection command deletes an L2TPv3 local switching connection.
By default, no L2TPv3 local switching connection is not configured.
l2tpv3 local connection connection-name interface { interface-type interface-number | interface-name } out-interface { out-interface-type out-interface-number | out-interface-name }
undo l2tpv3 local connection connection-name [ interface { interface-type interface-number | interface-name } out-interface { out-interface-type out-interface-number | out-interface-name } ]
Parameter | Description | Value |
---|---|---|
connection-name |
Specifies the name of an L2TPv3 local switching connection. |
The value is a string of 1 to 31 case-sensitive characters beginning with a letter, spaces or question marks (?) not supported. |
interface interface-type |
Specifies the type of an inbound interface for local switching. |
The interface type can be GE, FE, or Eth-Trunk. |
interface-number |
Specifies the number of an inbound interface for local switching. |
- |
interface-name |
Specifies the name of an inbound interface for local switching. |
- |
out-interface out-interface-type |
Specifies the type of an outbound interface for local switching. |
The interface type can be GE, FE, or Eth-Trunk. |
out-interface-number |
Specifies the number of an outbound interface for local switching. |
- |
out-interface-name |
Specifies the name of an outbound interface for local switching. |
- |
Usage Scenario
An L2TPv3 local switching connection enables two CEs connecting to the same PE to exchange packets. The PE, which only transparently transmits service packets, allows service packets to use L2TPv3 encapsulation type.
Prerequisites
L2TPv3 has been enabled using the l2tpv3 enable command.
<HUAWEI> system-view [~HUAWEI] l2tpv3 enable [*HUAWEI] interface GigabitEthernet0/1/1.1 mode l2 [*HUAWEI-GigabitEthernet0/1/1.1] encapsulation default [*HUAWEI-GigabitEthernet0/1/1.1] quit [*HUAWEI] interface GigabitEthernet0/1/2.2 mode l2 [*HUAWEI-GigabitEthernet0/1/2.2] encapsulation default [*HUAWEI-GigabitEthernet0/1/2.2] quit [*HUAWEI] l2tpv3 local connection a123 interface GigabitEthernet0/1/1.1 out-interface GigabitEthernet0/1/2.2