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>
| trunk | Sets trunking mode characteristics of this Ethernet port | 
| fabric-attach | Enables Fabric Attach (FA) client operation on this
                        Ethernet port. Use this option to enable non-SPB WiNG devices (access points
                        and controllers) as FA Clients. FA enabled switches, in the FC network, send out LLDP messages with TLV extensions of Organization-specific TLV with OUI, to discover FA clients and advertise capabilities. The FA-enabled client associates with the FA Server (FAS), and obtains provisioning information (management VLAN interface details, and whether the interface is tagged or not) that allows the client to be configured with parameters that allow traffic to flow through the Fabric to the WLAN controller. This initial FA Client to WLC communication uses the Fabric‘s default VLAN to I-SID mapping. Use this command to configure the I-SID (Individual Service Identifier) to VLAN mapping that the FA Client uses to negotiate with the FAS. Note: You can configure FA
                           Client capability on a device‘s profile as well as device
                           contexts. 
Note: This
                           option is enabled only when the switching mode is set to
                        trunk. 
 | 
                  
| vlan [<1-4094>|<VLAN-ALIAS-NAME>] | Configures the VLAN through which traffic from this device is routed to
                        the FA switch
 The FA Client requests acceptance of the I-SID to VLAN mapping from the FAS within the Fabric Connect (FC) network. Once acceptance is achieved, the FC edge switch applies the I-SID to the VLAN traffic from the device (AP or controller), and uses this I-SID inside the Fabric. Note: Both
                           the FA Client and FA switch (at the edge of the FC network) use LLDP
                           Element and Assignment Type-Length-Values (TLVs) to advertise their
                           identity and FA capabilities. 
 | 
                  
| isid <1-16777214> | Configures the I-SID to be associated with the
                        VLAN interface specified above.
 Note: A maximum of 94 pairs of I-SID to VLAN
                           mappings can be configured per Ethernet port. 
 | 
                  
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 |