Skip to content

Switchport Feature Template

Use the Switch Port template to configure bridging for Cisco Catalyst SD-WAN.

Diagram

Diagram

Classes

edge_feature_templates (sdwan)

NameTypeConstraintMandatoryDefault Value
switchport_templatesList[switchport_templates]No

switchport_templates (sdwan.edge_feature_templates)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[^<>!&" ]{1,128}$Yes
descriptionStringYes
device_typesListChoice[C1111-4PLTEEA, C1161-8P, C1117-4PLTEEAW, C1121X-8P, C8200-1N-4T, ISR-4331, C1127X-8PMLTEP, C1117-4PMLTEEAWE, ISR-4451-X, C8200L-1N-4T, C1113-8PLTEEA, IR-1821, ISR-4321, C1116-4PLTEEAWE, C1109-4PLTE2P, C1121-8P, C1111-8PLTEEAW, C1112-8PWE, C1101-4PLTEP, ISR1100-4GLTENA-XE, C1111-8PLTELA, IR-1835, C1121X-8PLTEP, IR-1833, C8300-1N1S-4T2X, C1121-4P, ISR-4351, C1117-4PLTELA, C1116-4PWE, C1113-8PM, IR-1831, C1127-8PLTEP, C1121-8PLTEPW, C1113-8PW, C1128-8PLTEP, IR-8340, C1113-8PLTEEAW, C1117-4PW, C1116-4P, C1113-8PMLTEEA, C1112-8P, ISR-4461, C1116-4PLTEEA, ISR-4221, C1117-4PM, C1113-8PLTELAWZ, C1117-4PMWE, C1131-8PLTEPW, C1109-2PLTEVZ, C1113-8P, C1117-4P, C8300-2N2S-6T, C1127-8PMLTEP, ISR-4221X, ISR1100-4GLTEGB-XE, C1109-2PLTEGB, C1113-8PLTEW, C1121X-8PLTEPW, ISR1100-6G-XE, C1121-4PLTEP, C1111-8PLTEEA, C1117-4PLTEEA, C1127X-8PLTEP, C1109-2PLTEUS, C1112-8PLTEEAWE, C1161X-8P, C1111-8PW, C1161X-8PLTEP, C1101-4PLTEPW, ISR1100X-4G-XE, IR-1101, C1111-4P, C1111-4PW, C1111-8P, C1117-4PMLTEEA, C1113-8PLTELA, C1131X-8PW, C1111-8PLTELAW, C1131-8PW, C1161-8PLTEP, ISR1100X-6G-XE, ISR-4431, C1101-4P, C1109-4PLTE2PW, C1113-8PMWE, C1118-8P, C1126-8PLTEP, C8300-1N1S-6T, C1121-8PLTEP, C8300-2N2S-4T2X, C1131X-8PLTEPW, C1112-8PLTEEA, C1111-4PLTELA, C1111X-8P, C1126X-8PLTEP, C8000V, ISR1100-4G-XE, C1117-4PLTELAWZ]No
age_out_timeIntegermin: 0, max: 1000000No
age_out_time_variableStringRegex: ^[^"~$&+,]255$`No
interfacesList[interfaces]No
slotIntegermin: 0, max: 31Yes
static_mac_addressesList[static_mac_addresses]No
sub_slotIntegermin: 0, max: 31Yes
module_typeChoice4, 8, 22, 50Yes

interfaces (sdwan.edge_feature_templates.switchport_templates)

NameTypeConstraintMandatoryDefault Value
access_vlanIntegermin: 1, max: 4094No
access_vlan_variableStringRegex: ^[^"~$&+,]255$`No
dot1xClass[dot1x]No
duplexChoicehalf, fullNo
duplex_variableStringRegex: ^[^"~$&+,]255$`No
modeChoiceaccess, trunkYes
nameStringNo
name_variableStringRegex: ^[^"~$&+,]255$`No
optionalBooleantrue, falseNo
shutdownBooleantrue, falseNo
shutdown_variableStringRegex: ^[^"~$&+,]255$`No
speedChoice10, 100, 1000, 2500, 10000No
speed_variableStringRegex: ^[^"~$&+,]255$`No
trunk_allowed_vlansListInteger[min: 1, max: 4094]No
trunk_allowed_vlans_variableStringRegex: ^[^"~$&+,]255$`No
trunk_allowed_vlans_rangesList[trunk_allowed_vlans_ranges]No
trunk_native_vlanIntegermin: 1, max: 4094No
trunk_native_vlan_variableStringRegex: ^[^"~$&+,]255$`No
voice_vlanIntegermin: 1, max: 4094No
voice_vlan_variableStringRegex: ^[^"~$&+,]255$`No

static_mac_addresses (sdwan.edge_feature_templates.switchport_templates)

NameTypeConstraintMandatoryDefault Value
interface_nameStringNo
interface_name_variableStringRegex: ^[^"~$&+,]255$`No
mac_addressStringRegex: ^(([a-fA-F\d]{2}:){5}[a-fA-F\d]{2})$No
mac_address_variableStringRegex: ^[^"~$&+,]255$`No
optionalBooleantrue, falseNo
vlanIntegermin: 1, max: 4094No
vlan_variableStringRegex: ^[^"~$&+,]255$`No

dot1x (sdwan.edge_feature_templates.switchport_templates.interfaces)

NameTypeConstraintMandatoryDefault Value
control_directionChoiceboth, inNo
control_direction_variableStringRegex: ^[^"~$&+,]255$`No
critical_vlanIntegermin: 1, max: 4094No
critical_vlan_variableStringRegex: ^[^"~$&+,]255$`No
enableBooleantrue, falseYes
enable_criticial_voice_vlanBooleantrue, falseNo
enable_criticial_voice_vlan_variableStringRegex: ^[^"~$&+,]255$`No
enable_paeBooleantrue, falseNo
enable_pae_variableStringRegex: ^[^"~$&+,]255$`No
enable_periodic_reauthBooleantrue, falseNo
enable_periodic_reauth_variableStringRegex: ^[^"~$&+,]255$`No
guest_vlanIntegermin: 1, max: 4094No
guest_vlan_variableStringRegex: ^[^"~$&+,]255$`No
host_modeChoicesingle-host, multi-auth, multi-host, multi-domainNo
host_mode_variableStringRegex: ^[^"~$&+,]255$`No
mac_authentication_bypassBooleantrue, falseNo
mac_authentication_bypass_variableStringRegex: ^[^"~$&+,]255$`No
periodic_reauth_inactivity_timeoutIntegermin: 1, max: 1440No
periodic_reauth_inactivity_timeout_variableStringRegex: ^[^"~$&+,]255$`No
periodic_reauth_intervalIntegermin: 0, max: 1440No
periodic_reauth_interval_variableStringRegex: ^[^"~$&+,]255$`No
port_control_modeChoiceauto, force-unauthorized, force-authorizedNo
port_control_mode_variableStringRegex: ^[^"~$&+,]255$`No
restricted_vlanIntegermin: 1, max: 4094No
restricted_vlan_variableStringRegex: ^[^"~$&+,]255$`No

trunk_allowed_vlans_ranges (sdwan.edge_feature_templates.switchport_templates.interfaces)

NameTypeConstraintMandatoryDefault Value
fromIntegermin: 1, max: 4094Yes
toIntegermin: 1, max: 4094Yes

Examples

Example-1: The example below shows the configuration of the switchport on the switch module of the router. The switchport configuration is on per port basis so each physical port can either be in Access or Trunk mode. The example shows the configuration of one access port. This example also shows voice VLAN configuration.

sdwan:
edge_feature_templates:
switchport_templates:
- name: FT-CEDGE-SWITCHPORT-V01
description: "Switchport Template"
slot: 0
sub_slot: 1
module_type: 8
interfaces:
- name: GigabitEthernet0/1/1
mode: access
access_vlan: 10
voice_vlan: 20
optional: true
shutdown: false

Example-2: The example below shows the configuration of the switchport on the switch module of the router. The switchport configuration is on per port basis so each physical port can either be in Access or Trunk mode. The example shows the configuration of one Trunk port with specific set of allowed VLANs. The example also shows the configuration of the native VLAN.

sdwan:
edge_feature_templates:
switchport_templates:
- name: FT-CEDGE-SWITCHPORT-V01
description: "Switchport Template"
slot: 0
sub_slot: 1
module_type: 8
interfaces:
- name: GigabitEthernet0/1/2
mode: trunk
trunk_native_vlan: 100
trunk_allowed_vlans:
- 100
- 105
- 110
optional: true
shutdown: false