switchport (Fibre Channel)

To configure a switch port parameter on a Fibre Channel, use the switchport command. To discard the configuration, use the no form of this command.

switchport
{ fcrxbbcredit { credit [ mode E | F ] | default } |
mode { F | NP | SD } |
speed { 1000 | 2000 | 4000 | 8000 | auto [ max 2000 ]} |
trunk { allowed vsan {[ add ] vsan-id | all } | mode { auto | off | on }}}

no switchport { fcrxbbcredit | mode | speed | trunk { allowed vsan [[ add ] vsan-id | all ] | mode }}

Syntax Description

fcrxbbcredit
Configures receive BB_credit for the port.
credit
Receive BB_credit. The range is from 1 to 255.
mode
Configures receive BB_credit for the specific port mode.
E
Configures receive BB_credit for E or TE port mode.
F
Configures receive BB_credit for F port mode.
default
Configures default receive BB_credits depending on the port mode and capabilities.
mode
Configures the port mode.
F
Configures F port mode.
NP
Configures N port proxy mode. NP mode is valid only when the switch is operating in N-Port Virtualizer (NPV) mode.
SD
Configures SD port mode.
speed
Configures the port speed.
1000
Configures the 1000-Mbps speed.
2000
Configures the 2000-Mbps speed.
4000
Configures the 4000-Mbps speed.
8000
Configures the 8000-Mbps speed.
auto
Configures autosense speed.
max 2000
(Optional) Configures 2 Gbps as the maximum bandwidth reserved in auto mode for 24-port and 48-port 4-Gbps switching module interfaces.
trunk
Configures trunking parameters on the interface.
allowed
Specifies the allowed list for interface(s).
vsan
Configures the VSAN range.
add
(Optional) Adds the VSAN ID to the allowed VSAN list.
vsan-id
VSAN ID. The range is from 1 to 4093.
all
Adds all the VSANs to the allowed VSAN list.
mode
Configures the trunking mode.
auto
Configures automatic trunking mode.
off
Disables the trunking mode.
on
Enables the trunking mode.

Command Default

The EISL encapsulation is disabled.
The default receive data buffer size is 2112 bytes.
The port mode is auto.
The speed is auto.
The maximum auto speed is 2000.
The trunk mode is on.

Command Modes

Interface configuration mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Usage Guidelines

You can specify a range of interfaces by entering a command with the following example format:

interface fc 1/1 - 5, fc 2/5 - 7
 

The port speed on an interface determines the amount of shared resources available to the ports in the port group. Port group resources are reserved even though the bandwidth is not used. For example, if an interface is configured for autosensing (auto), then 4 Gbps of bandwidth is reserved even though the maximum operating speed is 2 Gbps. For the same interface, if autosensing with a maximum speed of 2 Gbps (auto max 2000) is configured, then only 2 Gbps of bandwidth is reserved and the unused 2 Gbps is shared with the other interface in the port group.

When configuring port modes, observe the following guidelines:

Examples

This example shows how to configure the switch port parameters for a Fibre Channel interface:

switch(config)# interface fc 2/3
switch(config-if)# switchport description techdocsSample
switch(config-if)# switchport mode E
switch(config-if)# switchport trunk mode auto
switch(config-if)# switchport trunk allowed vsan all
switch(config-if)# switchport trunk allowed vsan 3
switch(config-if)# switchport trunk allowed vsan add 2
switch(config-if)# switchport fcrxbbcredit 20
 

This example shows how to configure the mode of a virtual Fibre Channel interface:

switch(config)# interface vfc 2
switch(config-if)# switchport mode F
 

Related Commands

Command
Description
fcrxbbcredit extended enable
Enables extended BB_credits on the switch.
show interface
Displays an interface configuration for a specified interface.