Service Switchport Feature
Catalyst SD-WANThis feature configures switchport functionality on SD-WAN devices, enabling Layer 2 switching capabilities with support for VLANs, 802.1X authentication, and MAC address management.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| feature_ | Class | feature_ | No |
feature_profiles (sdwan)
Section titled “feature_profiles (sdwan)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| service_ | List | service_ | No |
service_profiles (sdwan.feature_profiles)
Section titled “service_profiles (sdwan.feature_profiles)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| switchport_ | List | switchport_ | No |
switchport_features (sdwan.feature_profiles.service_profiles)
Section titled “switchport_features (sdwan.feature_profiles.service_profiles)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: ^[^<>!&" ]{1,128}$ | Yes | |
| description | String | No | ||
| age_out_time | Integer | min: 0, max: 1000000 | No | |
| age_ | String | Regex: ^[. | No | |
| interfaces | List | interfaces | No | |
| static_ | List | static_ | No |
interfaces (sdwan.feature_profiles.service_profiles.switchport_features)
Section titled “interfaces (sdwan.feature_profiles.service_profiles.switchport_features)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: (ATM| | No | |
| name_variable | String | Regex: ^[. | No | |
| access_vlan | Integer | min: 1, max: 4094 | No | |
| access_ | String | Regex: ^[. | No | |
| control_ | Choice | both, in | No | |
| control_ | String | Regex: ^[. | No | |
| critical_vlan | Integer | min: 1, max: 4094 | No | |
| critical_ | String | Regex: ^[. | No | |
| duplex | Choice | full, half | No | |
| duplex_variable | String | Regex: ^[. | No | |
| enable_dot1x | Boolean | true, false | No | |
| enable_ | Boolean | true, false | No | |
| enable_ | String | Regex: ^[. | No | |
| enable_voice | Boolean | true, false | No | |
| enable_ | String | Regex: ^[. | No | |
| guest_vlan | Integer | min: 1, max: 4094 | No | |
| guest_ | String | Regex: ^[. | No | |
| host_mode | Choice | single-host, multi-auth, multi-host, multi-domain | No | |
| host_ | String | Regex: ^[. | No | |
| inactivity | Integer | min: 1, max: 65535 | No | |
| inactivity_ | String | Regex: ^[. | No | |
| mac_ | Boolean | true, false | No | |
| mac_ | String | Regex: ^[. | No | |
| mode | Choice | access, trunk | Yes | |
| pae_enable | Boolean | true, false | No | |
| pae_ | String | Regex: ^[. | No | |
| port_control | Choice | auto, force-authorized, force-unauthorized | No | |
| port_ | String | Regex: ^[. | No | |
| reauthentication | Integer | min: 1, max: 1073741823 | No | |
| reauthentication_ | String | Regex: ^[. | No | |
| restricted_vlan | Integer | min: 1, max: 4094 | No | |
| restricted_ | String | Regex: ^[. | No | |
| shutdown | Boolean | true, false | No | |
| shutdown_ | String | Regex: ^[. | No | |
| speed | Choice | 10, 100, 1000, 2500, 5000, 10000, 25000 | No | |
| speed_variable | String | Regex: ^[. | No | |
| trunk_ | List | Integer[min: 1, max: 4094] | No | |
| trunk_ | String | Regex: ^[. | No | |
| trunk_ | Integer | min: 1, max: 4094 | No | |
| trunk_ | String | Regex: ^[. | No | |
| voice_vlan | Integer | min: 1, max: 4094 | No | |
| voice_ | String | Regex: ^[. | No |
interfaces (sdwan.feature_profiles.service_profiles.switchport_features)
Section titled “interfaces (sdwan.feature_profiles.service_profiles.switchport_features)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Regex: (ATM| | No | |
| name_variable | String | Regex: ^[. | No | |
| access_vlan | Integer | min: 1, max: 4094 | No | |
| access_ | String | Regex: ^[. | No | |
| control_ | Choice | both, in | No | |
| control_ | String | Regex: ^[. | No | |
| critical_vlan | Integer | min: 1, max: 4094 | No | |
| critical_ | String | Regex: ^[. | No | |
| duplex | Choice | full, half | No | |
| duplex_variable | String | Regex: ^[. | No | |
| enable_dot1x | Boolean | true, false | No | |
| enable_ | Boolean | true, false | No | |
| enable_ | String | Regex: ^[. | No | |
| enable_voice | Boolean | true, false | No | |
| enable_ | String | Regex: ^[. | No | |
| guest_vlan | Integer | min: 1, max: 4094 | No | |
| guest_ | String | Regex: ^[. | No | |
| host_mode | Choice | single-host, multi-auth, multi-host, multi-domain | No | |
| host_ | String | Regex: ^[. | No | |
| inactivity | Integer | min: 1, max: 65535 | No | |
| inactivity_ | String | Regex: ^[. | No | |
| mac_ | Boolean | true, false | No | |
| mac_ | String | Regex: ^[. | No | |
| mode | Choice | access, trunk | Yes | |
| pae_enable | Boolean | true, false | No | |
| pae_ | String | Regex: ^[. | No | |
| port_control | Choice | auto, force-authorized, force-unauthorized | No | |
| port_ | String | Regex: ^[. | No | |
| reauthentication | Integer | min: 1, max: 1073741823 | No | |
| reauthentication_ | String | Regex: ^[. | No | |
| restricted_vlan | Integer | min: 1, max: 4094 | No | |
| restricted_ | String | Regex: ^[. | No | |
| shutdown | Boolean | true, false | No | |
| shutdown_ | String | Regex: ^[. | No | |
| speed | Choice | 10, 100, 1000, 2500, 10000, 25000 | No | |
| speed_variable | String | Regex: ^[. | No | |
| trunk_ | List | Integer[min: 1, max: 4094] | No | |
| trunk_ | String | Regex: ^[. | No | |
| trunk_ | Integer | min: 1, max: 4094 | No | |
| trunk_ | String | Regex: ^[. | No | |
| voice_vlan | Integer | min: 1, max: 4094 | No | |
| voice_ | String | Regex: ^[. | No |
static_mac_addresses (sdwan.feature_profiles.service_profiles.switchport_features)
Section titled “static_mac_addresses (sdwan.feature_profiles.service_profiles.switchport_features)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interface_name | String | Regex: (ATM| | No | |
| interface_ | String | Regex: ^[. | No | |
| mac_address | String | Regex: ^([0-9A-Fa-f] | No | |
| mac_ | String | Regex: ^[. | No | |
| vlan_id | Integer | min: 1, max: 4094 | No | |
| vlan_ | String | Regex: ^[. | No |
Examples
Section titled “Examples”Example-1: The example below demonstrates how to configure a service switchport feature with access mode interface and basic settings.
sdwan: feature_profiles: service_profiles: - name: service1 switchport_features: - name: service_switchport_1 description: Basic access port configuration age_out_time: 300 interfaces: - name: GigabitEthernet0/0/1 mode: access access_vlan: 100 speed: 1000 duplex: fullExample-2: The example below demonstrates how to configure a trunk port with VLAN ranges and 802.1X authentication.
sdwan: feature_profiles: service_profiles: - name: service1 switchport_features: - name: service_switchport_2 description: Trunk port with authentication interfaces: - name: GigabitEthernet0/0/2 mode: trunk trunk_native_vlan: 1 trunk_allowed_vlans: - 10 - 20 - 30 - 500-600 host_mode: multi-auth control_direction: both mac_authentication_bypass: true guest_vlan: 999 critical_vlan: 998 enable_voice: true voice_vlan: 300Example-3: The example below demonstrates how to configure static MAC address bindings.
sdwan: feature_profiles: service_profiles: - name: service1 switchport_features: - name: service_switchport_3 description: Switchport with static MAC addresses interfaces: - name: GigabitEthernet0/0/3 mode: access access_vlan: 150 static_mac_addresses: - interface_name: GigabitEthernet0/0/3 mac_address: 0102.0303.0402 vlan_id: 150