Skip to content

Dot1q Ethernet Port

Diagram

topology_switch_dot1q_host_interface (vxlan.topology.switches.interfaces)

Section titled “topology_switch_dot1q_host_interface (vxlan.topology.switches.interfaces)”
NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$Yes
modeChoicedot1qYes
descriptionStringmax: 256No
mtuAnyInteger[min: 1500, max: 9216] or Choice[default, jumbo]No
speedStringRegex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$No
enabledBooleantrue, falseNo
enable_cdpBooleantrue, falseNo
access_vlanIntegermin: 1, max: 4094No
spanning_tree_portfastBooleantrue, falseNo
enable_bpdu_guardBooleantrue, falseNo
duplexChoiceauto, full, halfNo
orphan_portBooleantrue, falseNo
freeform_configStringNo
fecChoiceauto, fc-fec, off, rs-cons16, rs-fec, rs-ieeeNo
enable_storm_controlBooleantrue, falseNo
storm_control_actionChoiceshutdown, trap, defaultNo
storm_control_broadcast_level_percentNumbermin: 0.0, max: 100.0No
storm_control_broadcast_level_ppsIntegermin: 0, max: 200000000No
storm_control_multicast_level_percentNumbermin: 0.0, max: 100.0No
storm_control_multicast_level_ppsIntegermin: 0, max: 200000000No
storm_control_unicast_level_percentNumbermin: 0.0, max: 100.0No
storm_control_unicast_level_ppsIntegermin: 0, max: 200000000No

If you previously configured FEC via freeform_config, you must migrate to the fec parameter using the same value and remove the FEC configuration from freeform_config to avoid conflicts.

Forward Error Correction (FEC) controls error correction on the physical interface. The following FEC modes are supported:

  • auto - Automatic FEC selection (default, not visible in show run)
  • fc-fec - FireCode FEC (also known as BASE-R or Clause 74)
  • off - FEC disabled
  • rs-cons16 - Reed-Solomon FEC Consortium 1.6
  • rs-fec - Reed-Solomon FEC (Clause 91 for 100G, Consortium 1.5 for 25G/50G)
  • rs-ieee - Reed-Solomon FEC IEEE standard

If you previously configured storm control via freeform_config, you must migrate to the storm control parameters using the same values and remove the storm control configuration from freeform_config to avoid conflicts.

You cannot configure both percentage-based (*_percent) and PPS-based (*_pps) thresholds on the same interface. Choose one method per interface.

Storm control prevents traffic storms on Layer 2 interfaces by limiting broadcast, multicast, and unicast traffic. The following parameters are supported:

Control Parameters:

  • enable_storm_control - Enable or disable storm control (boolean)
  • storm_control_action - Action when threshold is exceeded: shutdown, trap, or default

Percentage-based Thresholds (0.00-100.00%):

  • storm_control_broadcast_level_percent - Broadcast traffic threshold as percentage of bandwidth
  • storm_control_multicast_level_percent - Multicast traffic threshold as percentage of bandwidth
  • storm_control_unicast_level_percent - Unicast traffic threshold as percentage of bandwidth

PPS-based Thresholds (0-200000000 packets/sec):

  • storm_control_broadcast_level_pps - Broadcast traffic threshold in packets per second
  • storm_control_multicast_level_pps - Multicast traffic threshold in packets per second
  • storm_control_unicast_level_pps - Unicast traffic threshold in packets per second

The provided CLI configures interface Ethernet1/11 with the following settings:

  • switchport mode dot1q-tunnel: Sets the port to operate in 802.1Q tunnel mode (Q-in-Q), encapsulating VLAN tags for tunneling VLAN traffic transparently.
Terminal window
interface Ethernet1/11
no shutdown
description Dot1q tunnel interface
spanning-tree port type edge
spanning-tree bpduguard enable
mtu 9216
spanning-tree bpdufilter enable
switchport
switchport mode dot1q-tunnel
vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: e1/11
mode: dot1q
description: 'Dot1q Interface 1'
enabled: true
speed: auto
access_vlan: 1

Example 2 - Dot1q with FEC on 25G Interface

Section titled “Example 2 - Dot1q with FEC on 25G Interface”
vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: Ethernet1/7
mode: dot1q
description: '25G Dot1q with RS-FEC Consortium 1.6'
speed: 25gb
fec: rs-cons16
access_vlan: 1
vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: Ethernet1/12
mode: dot1q
description: 'Dot1q with storm control'
access_vlan: 1
enable_storm_control: true
storm_control_action: shutdown
storm_control_broadcast_level_percent: 10.00
Diagram

topology_switch_dot1q_host_interface (vxlan.topology.switches.interfaces)

Section titled “topology_switch_dot1q_host_interface (vxlan.topology.switches.interfaces)”
NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^(?:e|eth(?:ernet)?)\d(?:\/\d+){1,2}$Yes
modeChoicedot1qYes
descriptionStringmax: 256No
mtuAnyInteger[min: 1500, max: 9216] or Choice[default, jumbo]No
speedStringRegex: (?i)^(auto|100mb|1gb|10gb|25gb|40gb|100gb|200gb|400gb|800gb)$No
enabledBooleantrue, falseNo
access_vlanIntegermin: 1, max: 4094No
spanning_tree_portfastBooleantrue, falseNo
enable_bpdu_guardBooleantrue, falseNo
duplexChoiceauto, full, halfNo
orphan_portBooleantrue, falseNo
freeform_configStringNo

The provided CLI configures interface Ethernet1/11 with the following settings:

  • switchport mode dot1q-tunnel: Sets the port to operate in 802.1Q tunnel mode (Q-in-Q), encapsulating VLAN tags for tunneling VLAN traffic transparently.
Terminal window
interface Ethernet1/11
no shutdown
description Dot1q tunnel interface
spanning-tree port type edge
spanning-tree bpduguard enable
mtu 9216
spanning-tree bpdufilter enable
switchport
switchport mode dot1q-tunnel
vxlan:
topology:
switches:
- name: dc1-leaf1
interfaces:
- name: e1/11
mode: dot1q
description: 'Dot1q Interface 1'
enabled: true
speed: auto
access_vlan: 1