Sets switching mode characteristics for the selected interface
switchport [access|mode|trunk]
switchport access vlan [<1-4094>|<VLAN-ALIAS-NAME>]
switchport mode [access|trunk]
switchport trunk [allowed|fabric-attach|native]
switchport trunk allowed vlan [<VLAN-ID>|add <VLAN-ID>|none|remove <VLAN-ID>]
swithcport trunk fabric-attach vlan [<1-4094>|<VLAN-ALIAS-NAME>] isid <1-16777214>
switchport trunk native [tagged|vlan [<1-4094>|<VLAN-ALIAS-NAME>]]
switchport access vlan [<1-4094>|<VLAN-ALIAS-NAME>]
access vlan [<1-4094>| <VLAN-ALIAS-NAME>] | Sets the VLAN
when interface is in the access mode. You can either directly specify the
native VLAN ID or use a VLAN alias to identify the native VLAN.
An Ethernet port in the access mode accepts packets only from the native VLAN. Frames are forwarded out the port untagged with no 802.1Q header. All frames received on the port are expected as untagged and are mapped to the native VLAN. |
switchport mode [access|trunk]
mode [access|trunk] | Sets the
interface‘s switching mode to access or trunk (can only be used on physical
- layer 2 - interfaces)
|
switchport trunk allowed vlan [<VLAN-ID>|add <VLAN-ID>|none|remove <VLAN-ID>]
trunk allowed | Sets trunking mode, allowed VLANs characteristics of the port. Use this option to add VLANs that exclusively send packets over the listed port. |
vlan [<VLAN-ID>| add <VLAN-ID>| none| remove <VLAN-ID> | Sets allowed
VLAN options. The options are:
Allowed VLANs are configured only when the switching mode is set to “trunk”. |
switchport trunk fabric-attach vlan [<1-4094>|<VLAN-ALIAS-NAME>] isid <1-16777214>
|
switchport trunk native [tagged|vlan [<1-4094>|<VLAN-ALIAS-NAME>]]
trunk | Sets trunking mode characteristics of the switchport |
native [tagged|vlan [<1-4094>| <VLAN-ALIAS-NAME>]] | Configures the
native VLAN ID for the trunk-mode port The native VLAN allows an Ethernet device to associate untagged frames to a VLAN when no 802.1Q frame is included in the frame. Additionally, the native VLAN is the VLAN untagged traffic is directed over when using a port in trunk mode.
|
Interfaces ge1 - ge4 can be configured as trunk or in access mode. An interface configured as “trunk” allows packets (from the given list of VLANs) to be added to the trunk. An interface configured as “access” allows packets only from native VLANs.
Use the [no] switchport (access|mode|trunk) to undo switchport configurations.
nx9500-6C8809(config-profile-default-rfs4000-if-ge1)#switchport trunk native tagged nx9500-6C8809(config-profile-default-rfs4000-if-ge1)#switchport access vlan 1 nx9500-6C8809(config-profile-default-rfs4000-if-ge1)#show context interface ge1 description "This is GigabitEthernet interface for Royal King" speed 10 duplex full switchport mode access switchport access vlan 1 spanning-tree bpduguard enable spanning-tree bpdufilter disable --More-- nx9500-6C8809(config-profile-default-rfs4000-if-ge1)#
The following is the basic configuration required to enable a device as a FA Client, with tagged native VLAN traffic:
ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#switchport mode trunk
ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#switchport trunk fabric-attach vlan 1 isid 1
ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#switchport trunk fabric-attach vlan 2 isid 200
ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#switchport trunk fabric-attach vlan 100 isid 1000
ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#switchport trunk allowed vlan 1-2,100
ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#switchport trunk native tagged
ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#show context interface ge1 switchport mode trunk switchport trunk fabric-attach vlan 1 isid 1 switchport trunk fabric-attach vlan 2 isid 200 switchport trunk fabric-attach vlan 100 isid 1000 switchport trunk native vlan 1 no switchport trunk native tagged switchport trunk allowed vlan 1-2,100 ap8432-070235(config-device-74-67-F7-07-02-35-if-ge1)#
no | Disables or reverts interface settings to their default |