Skip to content

Access Ethernet Port

The Access Ethernet port configuration allows to define the multiple attributes that an access port can have.

Diagram

Diagram

Classes

topology_switch_access_interface (vxlan.topology.switches.interfaces)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$Yes
modeChoiceaccessYes
descriptionStringmax: 256NoNetAsCode Access Interface
mtuAnyInteger[min: 1500, max: 9216] or Choice[default, jumbo]Nojumbo
speedStringRegex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$Noauto
enabledBooleantrue, falseNotrue
access_vlanIntegermin: 1, max: 4094No1
spanning_tree_portfastBooleantrue, falseNotrue
enable_bpdu_guardBooleantrue, falseNotrue
duplexChoiceauto, full, halfNoauto
orphan_portBooleantrue, falseNofalse
freeform_configStringNo

Example

This configuration creates one interface on switch dc1-leaf1 and two interfaces on dc1-leaf2:

  • Interface Ethernet1/11 on dc1-leaf1 is configured with VLAN 11, MTU set as default (1500), speed auto and spanning-tree portfast and BPDU guard enabled.
  • Interface Ethernet1/12 on dc1-leaf2 is configured with the default settings.
  • Interface Ethernet1/13 on dc1-leaf2 is configured with VLAN 13.
topology_interfaces.nac.yaml
vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: e1/11
mode: access
description: 'Access Interface 1'
enabled: true
mtu: default
speed: auto
access_vlan: 11
spanning_tree_portfast: true
enable_bpdu_guard: true
- name: dc1-leaf2
interfaces:
- name: ethernet1/12
mode: access
- name: eth1/13
mode: access
access_vlan: 13