Skip to content

Linux Networking

Linux Networking manages the communication between IOS-XR and Linux applications running on the router. Linux Networking controls how Linux applications access the network through IOS-XR, including update source configuration for routing Linux traffic through specific interfaces, east-west interface forwarding between VRFs, and statistics collection for monitoring TPA activity.

Diagram
NameTypeConstraintMandatoryDefault Value
linux_networkingClass[linux_networking]No

linux_networking (iosxr.devices.configuration)

Section titled “linux_networking (iosxr.devices.configuration)”
NameTypeConstraintMandatoryDefault Value
exposed_interfacesList[exposed_interfaces]No
linux_owned_vrfStringNo
statistics_synchronizationChoice30s, 60s, 2m, 3m, 4m, 5m, 6m, 7m, 8m, 9m, 10mNo
vrfsList[vrfs]No

exposed_interfaces (iosxr.devices.configuration.linux_networking)

Section titled “exposed_interfaces (iosxr.devices.configuration.linux_networking)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
linux_managedChoiceenable, disableNo
statistics_synchronizationChoice5s, 10s, 30s, 60sNo

vrfs (iosxr.devices.configuration.linux_networking)

Section titled “vrfs (iosxr.devices.configuration.linux_networking)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
address_family_ipv4Class[address_family_ipv4]No
address_family_ipv6Class[address_family_ipv6]No
disableBooleantrue, falseNo
east_west_interfacesList[east_west_interfaces]No

address_family_ipv4 (iosxr.devices.configuration.linux_networking.vrfs)

Section titled “address_family_ipv4 (iosxr.devices.configuration.linux_networking.vrfs)”
NameTypeConstraintMandatoryDefault Value
default_routeClass[default_route]No
management_routeClass[management_route]No
software_forwardingBooleantrue, falseNo

east_west_interfaces (iosxr.devices.configuration.linux_networking.vrfs)

Section titled “east_west_interfaces (iosxr.devices.configuration.linux_networking.vrfs)”
NameTypeConstraintMandatoryDefault Value
nameStringYes

default_route (iosxr.devices.configuration.linux_networking.vrfs.address_family_ipv4)

Section titled “default_route (iosxr.devices.configuration.linux_networking.vrfs.address_family_ipv4)”
NameTypeConstraintMandatoryDefault Value
active_managementBooleantrue, falseNo
interfaceStringNo

management_route (iosxr.devices.configuration.linux_networking.vrfs.address_family_ipv4)

Section titled “management_route (iosxr.devices.configuration.linux_networking.vrfs.address_family_ipv4)”
NameTypeConstraintMandatoryDefault Value
interfaceStringNo

Example-1: Linux networking with exposed interfaces and statistics sync

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
hostname: router-1
linux_networking:
statistics_synchronization: 60s
exposed_interfaces:
- name: GigabitEthernet0/0/0/0
statistics_synchronization: 60s

Example-2: Linux networking for management access

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
hostname: router-1
linux_networking:
statistics_synchronization: 5m
exposed_interfaces:
- name: GigabitEthernet0/0/0/0
statistics_synchronization: 5s
- name: MGMT
address_family_ipv4:
default_route:
software_forwarding: true
interface: MgmtEth0/RP0/CPU0/0
address_family_ipv6:
default_route:
software_forwarding: true
interface: MgmtEth0/RP0/CPU0/0