Skip to content

Global Interface Settings

Global interface settings define device-wide defaults and behavior that apply across interfaces on NX-OS devices. They include Ethernet defaults for switchport mode, shutdown behavior, unsupported transceiver support, multicast storm control, native VLAN tagging, link-status syslog levels and interface syslog info, as well as port-channel load-balancing hash parameters, port-channel fast convergence, SVI autostate behavior, interface breakout maps for high-density ports, and errdisable detection and automatic recovery, which control which error conditions, such as link flap, BPDU guard, storm control or UDLD, place an interface into the error-disabled state and how it recovers.

ethernet.default_switchport (system default switchport) also sets the layer of interfaces.ethernets and interfaces.port_channels entries that do not set switchport.enabled. With layer3, these interfaces are configured as routed interfaces (no switchport), receive their IPv4 and IPv6 configuration, and their spanning-tree and VTP settings are skipped. Set switchport.enabled to override the default per interface. When feature vtp is enabled, NX-OS 10.5(6) rejects no system default switchport while any Layer 3 interface exists.

Diagram
NameTypeConstraintMandatoryDefault Value
devicesListdevicesNo
device_groupsListdevice_groupsNo
globalClassglobalNo
templatesListtemplatesNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
systemClasssystemNo

NameTypeConstraintMandatoryDefault Value
ethernetClassethernetNo
port_channelClassport_channelNo
interface_vlan_autostateBooleantrue, falseNo
interface_breakout_modulesListinterface_breakout_modulesNo
errdisableClasserrdisableNo

ethernet (nxos.devices.configuration.system)

Section titled “ethernet (nxos.devices.configuration.system)”
NameTypeConstraintMandatoryDefault Value
default_switchport_shutdownBooleantrue, falseNo
service_unsupported_transceiverBooleantrue, falseNo
default_switchportChoicelayer2, layer3No
logging_event_portChoicelink-status-default, link-status-enable, none, trunk-status-default, trunk-status-enableNo
default_interface_shutdownChoicedown, down-exclude-fabric, upNo
link_failure_laser_onBooleantrue, falseNo
storm_control_multicastBooleantrue, falseNo
dot1q_tag_nativeBooleantrue, falseNo
admin_link_down_syslog_levelIntegermin: 0, max: 7No
admin_link_up_syslog_levelIntegermin: 0, max: 7No
interface_syslog_infoChoicedefault, info-1No

port_channel (nxos.devices.configuration.system)

Section titled “port_channel (nxos.devices.configuration.system)”
NameTypeConstraintMandatoryDefault Value
fast_convergenceBooleantrue, falseNo
load_balanceChoicedlb, rtag7, rtag7-murmur, rtag7-local-crc, dynamic-pinNo
load_balance2_resilientBooleantrue, falseNo
load_balance_mpls_label_ipBooleantrue, falseNo
load_balance_mpls_label_onlyBooleantrue, falseNo
load_balance_directionChoicesrc-dst, src, dstNo
load_balance_fieldsChoiceip, ip-gre, ip-l4port, ip-l4port-vlan, ip-vlan, l4port, mac, inner-header, gtpuNo
load_balance_encapsulationChoicegre, gtp, mpls-label-ip, mpls-label-onlyNo
load_balance_rotateIntegermin: 0, max: 63No
load_balance_concatenationBooleantrue, falseNo
load_balance_fex_allBooleantrue, falseNo
load_balance_symmetricBooleantrue, falseNo
scale_fanoutBooleantrue, falseNo

interface_breakout_modules (nxos.devices.configuration.system)

Section titled “interface_breakout_modules (nxos.devices.configuration.system)”
NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 32Yes
portsListportsNo

errdisable (nxos.devices.configuration.system)

Section titled “errdisable (nxos.devices.configuration.system)”
NameTypeConstraintMandatoryDefault Value
detect_causeClassdetect_causeNo
recovery_causeClassrecovery_causeNo
recovery_intervalIntegermin: 30, max: 65535No

ports (nxos.devices.configuration.system.interface_breakout_modules)

Section titled “ports (nxos.devices.configuration.system.interface_breakout_modules)”
NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 108Yes
mapChoiceno-breakout, 10g-4x, 50g-2x, 25g-4x, 10g-2x, 100g-4x, 50g-4x, 200g-1x, 100g-2x, 200g-2x, 40g-1x, 400g-2x, 100g-8x, 800g-1x, 100g-2x-pam4No

detect_cause (nxos.devices.configuration.system.errdisable)

Section titled “detect_cause (nxos.devices.configuration.system.errdisable)”
NameTypeConstraintMandatoryDefault Value
link_flapBooleantrue, falseNo
loopbackBooleantrue, falseNo

recovery_cause (nxos.devices.configuration.system.errdisable)

Section titled “recovery_cause (nxos.devices.configuration.system.errdisable)”
NameTypeConstraintMandatoryDefault Value
bpduguardBooleantrue, falseNo
dcbx_no_ackBooleantrue, falseNo
failed_port_stateBooleantrue, falseNo
link_flapBooleantrue, falseNo
loopbackBooleantrue, falseNo
pause_rate_limitBooleantrue, falseNo
psecure_violationBooleantrue, falseNo
security_violationBooleantrue, falseNo
storm_controlBooleantrue, falseNo
udldBooleantrue, falseNo
vpc_peerlinkBooleantrue, falseNo

Example 1: VXLAN leaf switch with Ethernet defaults

nxos:
devices:
- name: LEAF1
configuration:
system:
ethernet:
default_switchport: layer2
default_switchport_shutdown: false
service_unsupported_transceiver: true

Example 2: Ethernet defaults with link-status syslog tuning and native VLAN tagging

nxos:
devices:
- name: LEAF1
configuration:
system:
ethernet:
default_switchport: layer2
default_switchport_shutdown: false
dot1q_tag_native: true
logging_event_port: link-status-enable
admin_link_down_syslog_level: 4
admin_link_up_syslog_level: 4
interface_syslog_info: info-1

Example 3: SVI autostate and interface breakout configuration for high-density ports

nxos:
devices:
- name: LEAF1
configuration:
system:
interface_vlan_autostate: false
interface_breakout_modules:
- id: 1
ports:
- id: 49
map: 10g-4x
- id: 50
map: 25g-4x

Example 4: Port-channel resilient load balancing

nxos:
devices:
- name: LEAF1
configuration:
system:
port_channel:
load_balance: rtag7
load_balance2_resilient: true

Example 5: Port-channel load-balancing hash on source/destination IP and L4 port with rotation, concatenation and symmetric hashing (port-channel load-balance <src-dst|src|dst> <fields> [<encapsulation>] [rotate <rotate>] [concatenation] [fex all] [symmetric])

nxos:
devices:
- name: LEAF1
configuration:
system:
port_channel:
load_balance_direction: src-dst
load_balance_fields: ip-l4port
load_balance_rotate: 3
load_balance_concatenation: true
load_balance_symmetric: true

Example 6: Port-channel load-balancing on MPLS label and IP (port-channel load-balance src-dst ip-l4port mpls label-ip)

nxos:
devices:
- name: LEAF1
configuration:
system:
port_channel:
load_balance_direction: src-dst
load_balance_fields: ip-l4port
load_balance_encapsulation: mpls-label-ip

Example 7: Errdisable detection and automatic recovery (errdisable detect cause <cause>, errdisable recovery cause <cause>, errdisable recovery interval <seconds>)

nxos:
devices:
- name: LEAF1
configuration:
system:
errdisable:
recovery_interval: 600
detect_cause:
link_flap: true
loopback: false
recovery_cause:
bpduguard: true
link_flap: true
psecure_violation: true
storm_control: true
udld: true