L2VPN
IOS-XRConfigure Layer 2 Virtual Private Network (L2VPN) global settings, including router ID and load balancing options.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No | |
| device_groups | List | device_groups | No | |
| global | Class | global | No |
devices (iosxr)
Section titled “devices (iosxr)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
device_groups (iosxr)
Section titled “device_groups (iosxr)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
global (iosxr)
Section titled “global (iosxr)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
configuration (iosxr.devices)
Section titled “configuration (iosxr.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| l2vpn | Class | l2vpn | No |
l2vpn (iosxr.devices.configuration)
Section titled “l2vpn (iosxr.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| description | String | No | ||
| load_balancing_flow_src_dst_ip | Boolean | true, false | No | |
| load_balancing_flow_src_dst_mac | Boolean | true, false | No | |
| router_id | IP | No |
Example YAML Code:
Section titled “Example YAML Code:”Example-1: Configure basic L2VPN settings with router ID and load balancing.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: l2vpn: description: "My L2VPN Description" router_id: "1.2.3.4" load_balancing_flow_src_dst_ip: true load_balancing_flow_src_dst_mac: falseExample-2: Configure L2VPN with all available options.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: l2vpn: description: "Production L2VPN Configuration" router_id: "10.1.1.1" load_balancing_flow_src_dst_ip: true load_balancing_flow_src_dst_mac: true