Subinterfaces divide a routed Ethernet or port-channel interface into multiple logical Layer 3 interfaces on NX-OS, each identified by a subinterface ID and mapped to a dot1q VLAN encapsulation. They are commonly used for VRF-lite hand-offs to external routers and firewalls, and support IPv4/IPv6 addressing, VRF membership, MTU, bandwidth and delay, access group filtering, uRPF, and DHCP relay. Subinterfaces are configured under interfaces.ethernets[].subinterfaces and interfaces.port_channels[].subinterfaces, and require the parent interface to be a routed interface (switchport.enabled: false).
Interface-level protocol settings are documented on the respective protocol pages: OSPF , OSPFv3 , IS-IS , EIGRP , PIM , BFD , HSRP , VRRP , VRRPv3 , ND , ePBR .
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value interfaces Class interfaces No
Name Type Constraint Mandatory Default Value subinterfaces List subinterfaces No
Name Type Constraint Mandatory Default Value subinterfaces List subinterfaces No
Name Type Constraint Mandatory Default Value subinterfaces List subinterfaces No
Name Type Constraint Mandatory Default Value id Integer min: 1, max: 4093 Yes interface_ groups List String No shutdown Boolean true, falseNo bandwidth Integer min: 0, max: 3200000000 No delay Integer min: 1, max: 16777215 No description String No encapsulation Integer min: 1, max: 4094 No logging_ event_ port_ link_ status Boolean true, falseNo medium Choice broadcast, p2pNo mtu Integer min: 576, max: 9216 No mac_address MAC No mac_ address_ ipv6_ extract Boolean true, falseNo snmp_ trap_ link_ status Boolean true, falseNo vrf String No ip Class ip No ipv6 Class ipv6 No igmp Class igmp No
Name Type Constraint Mandatory Default Value address IP No tag Integer min: 0, max: 4294967295 No secondary_ addresses List secondary_ addresses No forward Boolean true, falseNo drop_glean Boolean true, falseNo unnumbered String No directed_ broadcast Boolean true, falseNo directed_ broadcast_ acl String No redirects Boolean true, falseNo unreachables Boolean true, falseNo port_ unreachable Boolean true, falseNo verify_ unicast_ source_ reachable_ via Choice disabled, rx, any, any-allow-default, rx-allow-vni-hostsNo access_group_in String No access_ group_ out String No policy_ route_ map String No dhcp_ relay_ information_ trusted Boolean true, falseNo dhcp_ relay_ smart_ relay Boolean true, falseNo dhcp_ relay_ subnet_ broadcast Boolean true, falseNo dhcp_ relay_ information_ option Boolean true, falseNo dhcp_ relay_ source_ subnet IP No dhcp_ relay_ source_ interface_ type Choice ethernet, loopback, mgmt, port-channel, vlan, vniNo dhcp_ relay_ source_ interface_ id Any String or Integer[min: 0] No dhcp_ relay_ addresses List dhcp_ relay_ addresses No dhcp_ snooping_ trust Boolean true, falseNo arp_ inspection_ trust Boolean true, falseNo verify_ source_ dhcp_ snooping_ vlan Boolean true, falseNo
Name Type Constraint Mandatory Default Value address_ autoconfig Boolean true, falseNo nd_ default_ route Boolean true, falseNo forward Boolean true, falseNo link_ local_ use_ bia Boolean true, falseNo address_ use_ link_ local_ only Boolean true, falseNo verify_ unicast_ source_ reachable_ via Choice disabled, rx, any, any-allow-default, rx-allow-vni-hostsNo address_ link_ local IP No addresses List addresses No dhcp_ smart_ relay Boolean true, falseNo dhcp_ relay_ source_ interface_ type Choice ethernet, loopback, mgmt, port-channel, vlan, vniNo dhcp_ relay_ source_ interface_ id Any String or Integer[min: 0] No dhcp_ relay_ addresses List dhcp_ relay_ addresses No redirects Boolean true, falseNo unreachables Boolean true, falseNo policy_ route_ map String No
Name Type Constraint Mandatory Default Value version Choice 2, 3No startup_ query_ interval Integer min: 0, max: 18000 No startup_ query_ count Integer min: 0, max: 10 No robustness_ variable Integer min: 1, max: 7 No querier_timeout Integer min: 1, max: 65535 No query_ max_ response_ time Integer min: 1, max: 8387 No query_interval Integer min: 1, max: 18000 No last_ member_ query_ response_ time Integer min: 1, max: 25 No last_ member_ query_ count Integer min: 1, max: 5 No group_timeout Integer min: 3, max: 65535 No allow_v3_asm Boolean true, falseNo state_limit Integer min: 0, max: 4294967295 No state_ limit_ reserved_ route_ map String No state_ limit_ reserved Integer min: 0, max: 4294967295 No report_policy String No report_ policy_ prefix_ list String No access_group String No access_ group_ prefix_ list String No join_groups List join_groups No join_ group_ route_ map String No static_groups List static_groups No static_oifs List static_oifs No static_ oif_ route_ map String No report_ link_ local_ groups Boolean true, falseNo immediate_leave Boolean true, falseNo suppress_v3_gsq Boolean true, falseNo
Name Type Constraint Mandatory Default Value address IP Yes tag Integer min: 0, max: 4294967295 No
Name Type Constraint Mandatory Default Value address IP Yes vrf String No
Name Type Constraint Mandatory Default Value address IP Yes type Choice primary, secondaryNo tag Integer min: 0, max: 4294967295 No eui64 Boolean true, falseNo route_ preference Integer min: 0, max: 255 No
Name Type Constraint Mandatory Default Value address IP Yes vrf String No
Name Type Constraint Mandatory Default Value group IP Yes source IP No
Name Type Constraint Mandatory Default Value group IP Yes source IP No
Name Type Constraint Mandatory Default Value group IP Yes source IP No
Example 1: Routed Ethernet interface with subinterfaces using dot1q encapsulation and IP addressing
description : " EXTERNAL: Firewall Eth1 "
description : " VRF-A Transit "
- address : 2001:db8:100::1/126
description : " VRF-B Transit "