FIP Snooping

Use these M4500 CLI commands to enable FIP snooping for Fibre Channel over Ethernet (FCoE), configure FCF ports and FC-MAP, and display FIP sessions.

show fip-snooping

This command displays information about the global FIP snooping configuration and status.

Default None
Format show fip-snooping
Mode Privileged EXEC

Display Message

Fields Definition
Global Mode FIP snooping configuration status on the switch. It displays Enable when FIP snooping is enabled on the switch and Disable when FIP snooping is disabled on the switch.
FCoE VLAN List List of VLAN IDs on which FIP snooping is enabled.
FCFs Number of FCFs discovered on the switch.
ENodes Number of ENodes discovered on the switch.
Sessions Total virtual sessions on the switch.
Max VLANs Maximum number of VLANs that can be enabled for FIP snooping on the switch.
Max FCFs in VLAN Maximum number of FCFs supported in a VLAN.
Max ENodes Maximum number of ENodes supported in the switch.
Max Sessions Maximum number of Sessions supported in the switch.

show fip-snooping enode

This command displays the information about the interfaces connected to ENodes.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

Default None
Format show fip-snooping enode <enode-mac>
Mode Privileged EXEC
Fields Definition
<enode-mac> MAC address of the ENode to dispaly.

Display Message

Fields Definition
Interface Interface to which the ENode is connected.
VLAN ID number of the VLAN to which the ENode belongs.
Name-ID Name of the ENode.
ENode-MAC MAC address of the ENode.
FCFs Number of FCFs connected.
Session Established Number of successful virtual connections established.

The command displays the following additional information when the optional argument is supplied.

Fields Definition
Sessions Waiting Number of virtual connections waiting for FCF acceptance.
Session Failed Number of virtual sessions failed.
Max-FCoE-PDU Maximum FCoE PDU size the ENode MAC intends to use for FCoE traffic. This is equivalent to the maximum Ethernet frame payload the ENode intends to send.
Time elapsed Time elapsed since first successful login session snooped from ENode.

show fip-snooping sessions

This command displays information about the active FIP snooping sessions.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

Default None
Format show fip-snooping sessions [[[vlan <1-4093> | [interface <slot/port>] | [fcf <fcf-mac> [enode <enode-mac>]]] [detail]]
Mode Privileged EXEC

Display Message

Fields Definition
interface-id ID of an interface on which FIP snooping has been enabled.
FCF-MAC MAC address of the FCF that is part of the session.
ENode-MAC MAC address of the ENode that is part of the session.
VLAN ID number of the VLAN that contains the session.
FCoE MAC Source MAC address of the FCoE packets that are originated by the ENode as part of the session.
FCID Fiber channel ID number of the virtual port that was created by FCF when the ENode VN_Port did a FLOGI/NPIV/FDISC request.

The command output format is different when the detail option is used. The information below is displayed.

Fields Definition
VLAN VLAN to which the session belongs.
FC-MAP FCMAP value used by the FCF.
FCFs Number of FCFs discovered.
ENodes Number of ENodes discovered.
Sessions Total virtual sessions in FCoE VLAN.

FCF Information:

Fields Definition
Interface The interface on which the FCF is discovered.
MAC MAC address of the FCF.
ENodes Total number of ENodes that are connected to the FCF.
Sessions Total number of virtual sessions accepted by FCF in the associated VLAN.

ENode Information:

Fields Definition
Interface The interface to which the ENode is connected.
MAC MAC address of the ENode
Sessions Total number of virtual sessions originated from ENodes to FCF in the associated VLAN.
Waiting Total number of virtual connections waiting for FCF acceptance in the associated VLAN.

Session Information:

Fields Definition
FCoE-MAC Source MAC address of the FCoE packets that are originated by the ENode as part of the session.
Request (FP, SP) FIP session request type sent by ENode. This can be FLOGI or FDESC (NPIV FDISC). Whereas FP and SP values are the FP bit and the SP bit values in the FLOGI or NPIV FDISC request respectively.
Expiry Time This is virtual connection/session expiry interval. This is used to monitor the status of the session. Session entry is removed when the value reaches 0. This value is reset to 450 secs (5*90 secs) every time an associated VN_Port FKA is received from the ENode. This is ignored (marked as NA) if the D-bit is set to one in the FCF Discovery Advertisements.
Mode This is the addressing mode in use by the VN_Port at ENode. In other words, this is the type of MAC address granted (selected and returned) by FCF. This can be one of the addressing modes, i.e. FPMA or SPMA.
State This is the state of the virtual session. The state is displayed as Tentative during the process of ENode login to FCF (using FLOGI or FDESC). It displays Active after ENode and FCF establish a successful virtual connection.
Session Time Time elapsed after this successful virtual session is established by ENode with FCF. The value is displayed in xd, yh, zm format where x represents number of days, y represents number of hours, and z represents minutes elapsed following this successful virtual session. This field has no useful information for waiting sessions.

show fip-snooping fcf

This command displays information about the interfaces connected to FCFs.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

Default None
Format show fip-snooping fcf [fcf-mac]
Mode Privileged EXEC

Display Message

Fields Definition
Interface Interface to which the FCF is connected.
VLAN ID number of the VLAN to which the FCF belongs.
No. of ENodes Total number of ENodes that are connected to the FCF.
FPMA/SPMA Type of the MAC address for ENode as negotiated by the FCF.
FCMAP FCMAP value used by the FCF.
FCF-MAC MAC address of the FCF.
Fabric Name Name of the FCF.

Below is additional information regarding the FCF that is displayed when the optional FCF MAC address argument is provided.

Fields Definition
Sessions Total number of virtual sessions accepted by FCF in the assocated VLAN.
D-bit This reflects the value of the D-bit provided by the most recently received Discovery Adtvertisements from the FCF. When D-bit value is zero then FIP snooping bridge verifies the periodic VN_Port FIP Keep Alive frames associated with FCF and Discovery Advertisement sent by FCF. When D-bit is set to 1, switch discards snopped VN_Port FIP Keep Alive frames associated with FCF and does not timeout the FCoE sessions established with the FCF based on FKA_VN_PERIOD*5 interval.
Available for Login This reflects the value of the A bit provided by the most recently received Discovery Adtvertisements from the FCF. This provides the information that the transmitting FCF is available for FIP FLOGI/FDISC from ENodes. This is informational and shall have no effect on existing login.
Priority The priority returned from the FCF in Solicited Discovery Advertisement. This indicates the priority that has been manually assigned to the FCF.
FKA-ADV FIP keepalive interval (FKA_ADV_PERIOD) in seconds configured on the FCF multiplied by five. For example, if the FKA_ADV period configured on the FCF is 80 seconds, the value of this field is 400.
FCF Expiry Time This is timer value to monitor the status of the FCF. FCF entry and all its associated sessions will be removed when the value reaches 0. This value is reset to Configured FKA-ADV every time a Discovery Advertisement is received from the FCF-MAC.
Time Elapsed Time since FCF is discovered.

show fip-snooping vlan

This command displays the FCoE VLANs information, and additionally, the FIP snooping port status when optional argument is specified.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

Default None
Format show fip-snooping vlan [<1-4093>]
Mode Privileged EXEC
Fields Definition
<1 - 4093> VLAN ID.

Display Message

Fields Definition
vlan-id A VLAN enabled for FIP snooping.
Vlan VLAN in which FIP snooping is enabled/operational.
FC-MAP FCoE mapped address prefix of the FCoE forwarder for the FCoE VLAN.
FCFs Number of FCFs discovered.
ENodes Number of ENodes discovered.
Sessions Total virtual sessions in FCoE VLAN.

show fip-snooping statistics

This command displays the statistics of the FIP packets snooped in the VLAN or on an interface. If the optional (VLAN or interface) argument is not given, this command displays the statistics for all of the FIP snooping enabled VLANs. When an interface is provided as an argument, interface applicable statistics are only displayed.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

Default None
Format show fip-snooping statistics [interface <slot/port> | vlan <1-4093>]
Mode Privileged EXEC
Fields Definition
<slot/port> Specify the interface.
<1-4093> Specifies the VLAN interface. The range of the VLAN ID is 1 to 4093.

Display Message

The following table describes the packet counters per FIP operation.

Fields Definition
VR Number of VLAN Request messages received on the VLAN.
VN Number of VLAN Notification messages received on the VLAN.
MDS Number of Multicast Discovery Solicitation messages snooped on the VLAN.
UDS Number of Unicast Discovery Solicitation messages snooped on the VLAN.
FLOGI Number of Fabric Logins snooped on the VLAN.
FDISC Number of Fabric Discovery Logins snooped on the VLAN.
LOGO Number of Fabric Logouts on the VLAN.
VNPort-keep-alive Number of VN_Port keepalive messages snooped on the VLAN.
MDA Number of Multicast Discovery Advertisement messages snooped on the VLAN.
UDA Number of Unicast Discovery Advertisement messages snooped on the VLAN.
FLOGI_ACC Number of Fabric Logins accepted on the VLAN.
FLOGI_RJT Number of Fabric Logins rejected on the VLAN.
FDISC_ACC Number of Fabric Discovery Logins accepted on the VLAN.
FDISC_RJT Number of Fabric Discovery Logins rejected on the VLAN.
LOGO_ACC Number of Fabric Logouts accepted on the VLAN.
LOGO_RJT Number of Fabric Logouts rejected on the VLAN.
CVL Number of Clear Virtual Links actions on the VLAN.

The following table describes the other interface or session-related counters.

Fields Definition
Number of Virtual Session Timeouts Number of Virtual sessions removed due to session timer expiry.
Number of FCF Session Timeouts Number of Active sessions time out due to Discovery Advertisements expiry from FCFs in the VLAN.
Number of Session configuration failures Number of sessions in the VLAN that failed to be configured in the hardware.
Number of Session denied with FCF limit Number of sessions that are denied to be created for the new FCF as the number of FCFs reached the maximum allowed in the VLAN.
Number of Session denied with ENode limit Number of session create requests that are denied for the new ENode as the number of ENodes reached the maximum allowed in the system.
Number of Session denied with System limit Number of sessions that are denied to be created as the number of sessions reached the maximum allowed in the system.

feature fip-snooping

This command globally enables Fiber Channel over Ethernet Initialization Protocol (FIP) snooping on the switch. When FIP snooping is globally enabled, FC-BB-5 Annex D ACLs are installed on the switch and FIP frames are snooped. FIP snooping will not allow FIP or Fiber Channel over Ethernet (FCoE) frames to be forwarded over a

port until the port is operationally enabled for PFC. VLAN tagging must be enabled on the interface in order to carry the dot1p values through the network.

To return the settings to the default values and globally disable FIP snooping, use the no form of this command. When FIP snooping is globally disabled, received FIP frames are forwarded or flooded using the normal multicast rules. In addition, other FIP snooping commands are not available until the FIP snooping feature is enabled.

Default Disable
Format

feature fip-snooping

no feature fip-snooping

Mode Global Config

fip-snooping enable

This command enables FIP snooping on the configured VLAN. Priority Flow Control (PFC) must be operationally enabled before FIP snooping can operate on an interface. VLAN tagging must be enabled on the interface in order to carry the dot1p value through the network.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

To return the mode to the default (disabled), use the no form of this command.

Default Disable
Format

fip-snooping enable

no fip-snooping enable

Mode VLAN Config

fip-snooping fc-map

This command configures the FP-MAP value on a VLAN. The FC map value is used to help in securing the swith against misconfiguration. When configured using fabric-provided MAC addresses, FCoE devices transmit frames containing the FC map value in the upper 24 bits. Only frames that match the configured FC map values are passed across the VLAN. Frames with MAC addresses that do not match the FC map value are discarded.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

To set the FC-MAP value for the VLAN to the default value, use the no form of this command.

Default 0x0efc00
Format

fip-snooping fc-map <0x0-0xffffff>

no fip-snooping fc-map

Mode VLAN Config
Fields Definition
<0x0-0xffffff> Valid FC map values are in the range of 0x0 to 0xffffff.

fip-snooping port-mode fcf

This command configures the interface that is connected towards FCF. To relay the FIP packets received from the hosts toward the FCF, the switch needs to know the interfaces to which the FCFs are connected. By default, an interface is configured to be a host-facing interface if it is not configured to be an FCF-facing interface.

It is recommended that FCF-facing ports be placed into auto-upstream mode in order to receive DCBX information and propogate it to the CNAs on the downstream (host-facing) ports. Intefaces enabled for PFC should be configured in trunk or general mode and must be PFC-operationally enabled before FCoE traffic can pass over the port.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

To set the interface to be connected towards the host, use the no form of this command.

Default Configuration as a host-facing interface
Format

fip-snooping port-mode fcf

no fip-snooping port-mode fcf

Mode Interface Config

clear fip-snooping statistics

This command clears the FIP snooping statistics in the supplied VLAN or on a supplied interface. If the optional (VLAN or interface) argument is not given, this command clears the statistics on all FIP snooping-enabled VLANs.

This command can only be entered after FIP snooping is enabled using the feature fip-snooping command. Otherwise, it does not appear in the CLI.

Default Disable
Format clear fip-snooping statistics [interface <slot/port> | vlan <1-4093>]
Mode Privileged Exec
Fields Definition
<slot/port> Specifies the interface.
<1-4093> Specifies the VLAN interface. The range of the VLAN ID is 1 to 4093.