Skip to content

Ethernet

Ethernet interfaces provide the fundamental physical connectivity for NX-OS devices, supporting various speeds from 100m to 800g with comprehensive Layer 2 switching and Layer 3 routing capabilities including access/trunk modes, VLAN assignment, and FEX fabric connectivity. They offer extensive configuration options including auto-negotiation, FEC mode, duplex, MTU, link debounce, carrier delay, beacon, storm control, dot1q tagging, voice VLAN, load intervals, and advanced features such as port channels with LACP, VPC membership, subinterfaces, and uRPF for security. Ethernet interfaces support protocol sub-sections for OSPF, OSPFv3, PIM, IS-IS, HSRP, DHCP relay, IPv6 ND, spanning tree, and QoS service policies, along with IPv4/IPv6 addressing, access group filtering, and interface group inheritance for standardized configuration.

Diagram
NameTypeConstraintMandatoryDefault Value
ethernetsList[ethernets]No

ethernets (nxos.devices.configuration.interfaces)

Section titled “ethernets (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
idStringYes
interface_groupsListStringNo
switchport_access_vlanIntegermin: 1, max: 4094No
shutdownBooleantrue, falseNofalse
negotiate_autoChoiceon, off, 25gNo
bandwidthIntegermin: 0, max: 3200000000No
beaconBooleantrue, falseNo
delayIntegermin: 1, max: 16777215No
descriptionStringNo
dfe_adaptive_tuningBooleantrue, falseNo
dfe_tuning_delayIntegermin: 100, max: 10000No
dot1q_ethertypeIntegermin: 1536, max: 65535No
duplexChoiceauto, full, halfNo
fecChoicefc-fec, rs-fec, fec-off, auto, rs-ieee, rs-cons16, kp-fecNo
itu_channelIntegermin: 1, max: 96No
switchportBooleantrue, falseNo
link_active_jitter_managementBooleantrue, falseNo
link_debounce_timeIntegermin: 0, max: 20000No
link_debounce_link_upIntegermin: 0, max: 20000No
link_flap_err_disableBooleantrue, falseNo
link_flap_err_disable_maxIntegermin: 2, max: 30No
link_flap_err_disable_intervalIntegermin: 5, max: 420No
logging_event_port_link_statusBooleantrue, falseNo
loopbackBooleantrue, falseNo
link_mac_up_timerIntegermin: 0, max: 120No
link_max_bring_up_timerIntegermin: 0, max: 120No
link_transmit_resetBooleantrue, falseNo
mac_addressStringNo
mdixChoiceauto, mdi, mdi-xNo
media_typeChoicenone, 10g-txNo
mediumChoicebroadcast, p2pNo
switchport_modeChoiceaccess, trunk, fex-fabric, dot1q-tunnel, promiscuous, host, trunk-secondary, trunk-promiscuous, vntagNo
mtuIntegermin: 576, max: 9216No
switchport_trunk_native_vlanIntegermin: 1, max: 4094No
packet_timestamp_egress_source_idIntegermin: 0, max: 8388606No
packet_timestamp_ingress_source_idIntegermin: 0, max: 8388606No
packet_timestampChoicedisable, enable-ingress, enable-egress, enable-bothNo
snmp_trap_link_statusBooleantrue, falseNo
speedChoiceunknown, 100m, 1g, 10g, 40g, auto, auto-100m, auto-100m-1g, 100g, 25g, 10m, 50g, 200g, 400g, 2.5g, 5g, auto-2.5g-5g-10g, auto-100m-1g-2.5g-5g, 800gNo
speed_groupChoiceunknown, 1000, 10000, 40000, auto, 25000No
squelchBooleantrue, falseNo
switchport_transparent_modeBooleantrue, falseNo
logging_event_port_trunk_statusBooleantrue, falseNo
switchport_trunk_allowed_vlansStringNo
uni_directional_ethernetChoicedisable, send-only, receive-onlyNo
switchport_voice_cosIntegermin: -1, max: 7No
switchport_voice_trustBooleantrue, falseNo
switchport_voice_vlanIntegermin: 1, max: 4092No
switchport_voice_vlan_typeChoicenone, tagged, dot1p, untaggedNo
vrfStringNo
ip_unnumberedStringNo
ip_verify_unicast_source_reachable_viaChoicedisabled, strict, loose, loose-allow-default, strict-allow-vni-hostsNo
ip_addressIPNo
ip_secondary_addressesListIPNo
ip_directed_broadcastBooleantrue, falseNo
ip_directed_broadcast_aclStringNo
ip_redirectsBooleantrue, falseNo
ip_unreachablesBooleantrue, falseNo
ip_port_unreachableBooleantrue, falseNo
channel_groupIntegermin: 1, max: 4096No
channel_group_modeChoiceon, static, active, passive, mac-pinNo
channel_group_forceBooleantrue, falseNo
ospfClass[ospf]No
ospfv3Class[ospfv3]No
pimClass[pim]No
isisClass[isis]No
hsrpClass[hsrp]No
ipv6_address_autoconfigBooleantrue, falseNo
ipv6_nd_default_routeBooleantrue, falseNo
ipv6_forwardBooleantrue, falseNo
ipv6_link_local_use_biaBooleantrue, falseNo
ipv6_address_use_link_local_onlyBooleantrue, falseNo
ipv6_verify_unicast_source_reachable_viaChoicedisabled, strict, loose, loose-allow-default, strict-allow-vni-hostsNo
ipv6_address_link_localStringNo
ipv6_addressesList[ipv6_addresses]No
ip_dhcp_relayClass[ip_dhcp_relay]No
ipv6_dhcp_smart_relayBooleantrue, falseNo
ipv6_dhcp_relay_addressesList[ipv6_dhcp_relay_addresses]No
service_policy_type_qos_inputStringNo
service_policy_type_qos_input_statisticsBooleantrue, falseNo
ndClass[nd]No
subinterfacesList[subinterfaces]No
spanning_treeClass[spanning_tree]No
ip_access_group_inStringNo
ip_access_group_outStringNo

ospf (nxos.devices.configuration.interfaces.ethernets)

Section titled “ospf (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
processStringYes
advertise_secondariesBooleantrue, falseNotrue
advertise_subnetBooleantrue, falseNo
areaStringNo
bfdBooleantrue, falseNo
costIntegermin: 0, max: 65535No
dead_intervalIntegermin: 0, max: 65535No
hello_intervalIntegermin: 0, max: 65535No
mtu_ignoreBooleantrue, falseNo
networkChoiceunspecified, p2p, bcastNo
prefix_attribute_n_flagChoiceunspecified, clearNo
passive_interfaceBooleantrue, falseNo
priorityIntegermin: 0, max: 255No
retransmit_intervalIntegermin: 1, max: 65535No
transmit_delayIntegermin: 1, max: 450No
authentication_keyStringNo
message_digest_key_idIntegermin: 0, max: 255No
authentication_key_secure_modeBooleantrue, falseNo
authentication_key_chainStringNo
message_digest_keyStringNo
message_digest_key_secure_modeBooleantrue, falseNo
authenticationChoiceunspecified, simple, md5, noneNo

ospfv3 (nxos.devices.configuration.interfaces.ethernets)

Section titled “ospfv3 (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
processStringYes
advertise_secondariesBooleantrue, falseNo
areaStringNo
bfdBooleantrue, falseNo
costIntegermin: 0, max: 65535No
dead_intervalIntegermin: 0, max: 65535No
hello_intervalIntegermin: 1, max: 65535No
networkChoicenone, p2p, bcastNo
passive_interfaceBooleantrue, falseNo
priorityIntegermin: 0, max: 255No
instance_idIntegermin: 0, max: 255No
mtu_ignoreBooleantrue, falseNo
retransmit_intervalIntegermin: 1, max: 65535No
transmit_delayIntegermin: 1, max: 450No

pim (nxos.devices.configuration.interfaces.ethernets)

Section titled “pim (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
bfd_instanceBooleantrue, falseNo
dr_priorityIntegermin: 1, max: 4294967295No
passiveBooleantrue, falseNo
sparse_modeBooleantrue, falseNo
borderBooleantrue, falseNo
dr_delayIntegermin: 1, max: 65535No
jp_policyStringNo
neighbor_policy_route_mapStringNo
neighbor_policy_prefix_listStringNo
strict_rfc_compliantBooleantrue, falseNo

isis (nxos.devices.configuration.interfaces.ethernets)

Section titled “isis (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
instance_nameStringYes
circuit_typeChoicel1, l2, l12No
ipv4Booleantrue, falseNo
ipv6Booleantrue, falseNo
network_point_to_pointChoiceoff, on, use-all-is-macNo
passive_interfaceChoicel1, l2, l12, no-l1, no-l2, no-l12, inherit-defNo
metric_level_1Integermin: 0, max: 16777216No
metric_level_2Integermin: 0, max: 16777216No
ipv6_metric_level_1Integermin: 0, max: 16777216No
ipv6_metric_level_2Integermin: 0, max: 16777216No
priority_level_1Integermin: 0, max: 127No
priority_level_2Integermin: 0, max: 127No
hello_intervalIntegermin: 1, max: 65535No
hello_interval_level_1Integermin: 1, max: 65535No
hello_interval_level_2Integermin: 1, max: 65535No
hello_multiplierIntegermin: 3, max: 1000No
hello_multiplier_level_1Integermin: 3, max: 1000No
hello_multiplier_level_2Integermin: 3, max: 1000No
hello_paddingChoicealways, transient, neverNo
authentication_checkBooleantrue, falseNo
authentication_check_level_1Booleantrue, falseNo
authentication_check_level_2Booleantrue, falseNo
authentication_key_chainStringNo
authentication_key_chain_level_1StringNo
authentication_key_chain_level_2StringNo
authentication_typeChoiceclear, md5, unknownNo
authentication_type_level_1Choiceclear, md5, unknownNo
authentication_type_level_2Choiceclear, md5, unknownNo
mtu_checkBooleantrue, falseNo
mtu_check_level_1Booleantrue, falseNo
mtu_check_level_2Booleantrue, falseNo
bfdBooleantrue, falseNo
ipv6_bfdBooleantrue, falseNo
csnp_interval_level_1Integermin: 1, max: 65535No
csnp_interval_level_2Integermin: 1, max: 65535No
lsp_intervalIntegermin: 10, max: 65535No
retransmit_intervalIntegermin: 1, max: 65535No
retransmit_throttle_intervalIntegermin: 20, max: 65535No
mesh_groupIntegermin: 0, max: 4294967295No
mesh_group_blockedBooleantrue, falseNo
n_flag_clearBooleantrue, falseNo
suppress_prefixBooleantrue, falseNo

hsrp (nxos.devices.configuration.interfaces.ethernets)

Section titled “hsrp (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
versionIntegermin: 1, max: 2No
bfdBooleantrue, falseNo
use_biaBooleantrue, falseNo
use_bia_scopeChoiceglobal, localNo
delay_minimumIntegermin: 0, max: 10000No
delay_reloadIntegermin: 0, max: 10000No
mac_refreshIntegermin: 0, max: 10000No
groupsList[groups]No

ipv6_addresses (nxos.devices.configuration.interfaces.ethernets)

Section titled “ipv6_addresses (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
addressStringYes
typeChoiceprimary, secondaryNo
tagIntegermin: 0, max: 4294967295No
eui64Booleantrue, falseNo
route_preferenceIntegermin: 0, max: 255No

ip_dhcp_relay (nxos.devices.configuration.interfaces.ethernets)

Section titled “ip_dhcp_relay (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
information_trustedBooleantrue, falseNo
smart_relayBooleantrue, falseNo
subnet_broadcastBooleantrue, falseNo
information_optionBooleantrue, falseNo
source_subnetStringNo
addressesList[addresses]No

ipv6_dhcp_relay_addresses (nxos.devices.configuration.interfaces.ethernets)

Section titled “ipv6_dhcp_relay_addresses (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
addressStringYes
vrfStringNo

nd (nxos.devices.configuration.interfaces.ethernets)

Section titled “nd (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
ra_boot_file_urlStringNo
suppress_raBooleantrue, falseNo
suppress_ra_mtuBooleantrue, falseNo
managed_config_flagBooleantrue, falseNo
other_config_flagBooleantrue, falseNo
redirectsBooleantrue, falseNo
dad_attemptsIntegermin: 0, max: 15No
dad_ns_intervalIntegermin: 1000, max: 6000No
delete_adjacency_on_mac_deleteBooleantrue, falseNo
dns_search_list_suppressBooleantrue, falseNo
dns_suppressBooleantrue, falseNo
hop_limitIntegermin: 0, max: 255No
mac_extractChoicenone, nud-phase, exclude-nud-phaseNo
mtuIntegermin: 1280, max: 65535No
ns_intervalIntegermin: 1000, max: 3600000No
ra_intervalIntegermin: 4, max: 1800No
ra_interval_minimumIntegermin: 3, max: 1350No
ra_lifetimeIntegermin: 0, max: 9000No
reachable_timeIntegermin: 0, max: 3600000No
retrans_timerIntegermin: 0, max: 4294967295No
suppress_ra_routeBooleantrue, falseNo
router_preferenceChoiceunspecified, low, medium, highNo

subinterfaces (nxos.devices.configuration.interfaces.ethernets)

Section titled “subinterfaces (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
idIntegerYes
interface_groupsListStringNo
shutdownBooleantrue, falseNo
bandwidthIntegermin: 0, max: 3200000000No
delayIntegermin: 1, max: 16777215No
descriptionStringNo
encapsulationStringNo
logging_event_port_link_statusBooleantrue, falseNo
mediumChoicebroadcast, p2pNo
mtuIntegermin: 576, max: 9216No
mtu_inheritBooleantrue, falseNo
mac_addressStringNo
mac_ipv6_extractBooleantrue, falseNo
snmp_trap_link_statusBooleantrue, falseNo
vrfStringNo
hsrpClass[hsrp]No

spanning_tree (nxos.devices.configuration.interfaces.ethernets)

Section titled “spanning_tree (nxos.devices.configuration.interfaces.ethernets)”
NameTypeConstraintMandatoryDefault Value
bpdufilterBooleantrue, falseNo
bpduguardBooleantrue, falseNo
costIntegermin: 0, max: 200000000No
guardChoiceroot, loop, noneNo
link_typeChoiceauto, p2p, sharedNo
port_typeChoiceedge, network, normalNo
port_priorityIntegermin: 0, max: 224No

groups (nxos.devices.configuration.interfaces.ethernets.hsrp)

Section titled “groups (nxos.devices.configuration.interfaces.ethernets.hsrp)”
NameTypeConstraintMandatoryDefault Value
idIntegermin: 0, max: 4095Yes
address_familyChoiceipv4, ipv6Yes
authentication_md5_compatibilityBooleantrue, falseNo
authentication_md5_key_chainStringNo
authentication_md5_key_stringStringNo
authentication_md5_key_string_typeChoiceunencrypted, hiddenNo
authentication_md5_timeoutIntegermin: 0, max: 32767No
authentication_md5_typeChoicekey-chain, key-stringNo
authentication_textStringNo
authentication_typeChoicesimple, md5No
followStringNo
forwarding_threshold_lowerIntegermin: 0, max: 255No
timers_hello_intervalIntegermin: 250, max: 254000No
timers_hold_intervalIntegermin: 750, max: 255000No
ipStringNo
mac_addressStringNo
nameStringNo
preemptBooleantrue, falseNo
preempt_delay_minimumIntegermin: 0, max: 3600No
preempt_delay_reloadIntegermin: 0, max: 3600No
preempt_delay_syncIntegermin: 0, max: 3600No
priorityIntegermin: 0, max: 255No

addresses (nxos.devices.configuration.interfaces.ethernets.ip_dhcp_relay)

Section titled “addresses (nxos.devices.configuration.interfaces.ethernets.ip_dhcp_relay)”
NameTypeConstraintMandatoryDefault Value
addressStringYes
vrfStringNo

Example 1: Fabric uplink as routed L3 interface with OSPF and PIM (unnumbered from Loopback0)

nxos:
devices:
- name: LEAF1
configuration:
interfaces:
ethernets:
- id: 1/1
description: "FABRIC: SPINE1 Eth1/1"
switchport: false
medium: p2p
mtu: 9216
ip_unnumbered: loopback0
ospf:
process: "1"
area: 0.0.0.0
network: p2p
pim:
sparse_mode: true

Example 2: Host-facing access port and trunk port for server connectivity

nxos:
devices:
- name: LEAF1
configuration:
interfaces:
ethernets:
- id: 1/10
description: "HOST: Web-Server-01 (access)"
switchport_mode: access
switchport_access_vlan: 101
spanning_tree:
port_type: edge
bpduguard: true
- id: 1/11
description: "HOST: ESXi-Host-01 (trunk)"
switchport_mode: trunk
switchport_trunk_allowed_vlans: "101-102,1010,1020"
mtu: 9216
speed: 25g
spanning_tree:
port_type: edge
bpduguard: true

Example 3: vPC member interface with LACP and host port-channel to server

nxos:
devices:
- name: LEAF1
configuration:
interfaces:
ethernets:
- id: 1/12
description: "vPC: Host-PO10 member to Server-Rack-A"
switchport_mode: trunk
switchport_trunk_allowed_vlans: "101-102"
mtu: 9216
channel_group: 10
channel_group_mode: active
shutdown: false

Example 4: Routed interface with dual-stack addressing, OSPF authentication, and QoS policy

nxos:
devices:
- name: BORDER-LEAF1
configuration:
interfaces:
ethernets:
- id: 1/48
description: "DCI: External-Router Eth0/0"
switchport: false
medium: p2p
mtu: 9216
ip_address: 10.1.10.0/31
ipv6_addresses:
- address: 2001:db8:10::1/127
type: primary
speed: 100g
ospf:
process: "1"
area: 0.0.0.0
network: p2p
authentication_key_chain: OSPF-UNDERLAY-AUTH
authentication: none
pim:
sparse_mode: true
service_policy_type_qos_input: PM-FABRIC-INGRESS