The Routed Sub-interface configuration allows to define the multiple attributes that a routed sub-interface can have.
Name Type Constraint Mandatory Default Value name String Regex: (?i)^(?:e|eth(?:ernet)?)\d(?:\/\d{1,3})\.\d{1,4}$|^(?:po|port-channel:?)((?:[1-9]|[1-9]\d{1,2}|[1-3]\d{3}|40[0-8]\d|409[0-6]:?)\.(?:[1-9]|[1-9]\d{1,2}|[1-3]\d{3}|40[0-8]\d|409[0-3]:?))$ Yes mode Choice routed_subYes description String max: 256 No NetAsCode Routed Sub Interfacedot1q_id Integer min: 1, max: 4096 Yes vrf String No mtu Integer min: 1500, max: 9216 No 9216speed String Regex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$ No autoenabled Boolean true, falseNo trueipv4_address IP Yes ipv4_route_tag Integer min: 0, max: 4294967295 No secondary_ipv4_addresses List [secondary_ipv4_addresses]No ipv6_address IP No ipv6_route_tag Integer min: 0, max: 4294967295 No secondary_ipv6_addresses List [secondary_ipv6_addresses]No freeform_config String No
Name Type Constraint Mandatory Default Value ip_address IP Yes route_tag Integer min: 0, max: 4294967295 No
Name Type Constraint Mandatory Default Value ip_address IP Yes route_tag Integer min: 0, max: 4294967295 No
This configuration creates Ethernet 1/47.2 on dc1-leaf1. This interface is member of the VRF red, with the IPv4 address 10.1.1.1/30 and the IPV6 address 2021:10:1:1::1/64, MTU set as 1500 and a Dot1q VLAN encapsulation 2.
description : ' Routed Sub-Interface 1 '
ipv4_address : 10.1.1.1/30
ipv6_address : 2021:10:1:1::1/64