13-FCoE Configuration Examples

HomeSupportSwitchesS10500X SeriesConfigure & DeployConfiguration ExamplesH3C S10500X Switch Series Configuration Examples-Release7557P01-6W10013-FCoE Configuration Examples
01-H3C_FCoE_Configuration_Examples
Title Size Download
01-H3C_FCoE_Configuration_Examples 318.75 KB

H3C FCoE Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H3C_彩色.emf

 



Introduction

This document provides examples for configuring FC static routes, FSPF, and FC zones.

Prerequisites

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of FCoE.

General configuration restrictions and guidelines

When you configure FCoE, follow these restrictions and guidelines:

·     FCoE requires a license. To use FCoE, install a correct license.

·     The switch supports FCoE only when it operates in advanced mode.

·     Only the following cards support FCoE:

?     EC cards

?     SE cards

?     SF cards

?     SG cards

Example: Configuring FC static routes

Network configuration

As shown in Figure 1, configure FCoE to meet the following requirements:

·     Any two FCF switches can communicate with each other.

·     SAN traffic can be transmitted on lossless Ethernet.

·     The server can access the disk device through the fabric.

Figure 1 Network diagram

 

Analysis

To meet the network requirements, you must perform the following tasks:

·     To transmit SAN traffic over lossless Ethernet links, you must perform the following tasks:

?     Configure DCBX, PFC in auto mode, and ETS on the Ethernet interface connecting a switch to a server.

?     Configure DCBX and PFC in auto mode on the Ethernet interface connecting a switch to a disk device.

?     Forcibly enable PFC on the Ethernet interfaces interconnecting switches.

·     For the server to access the resources in the disk device, configure the members in the default zone to access each other.

·     To adapt to the simple and stable network topology, use the static method to build the fabric and configure FC static routes.

Software versions used

This configuration example was created and verified on S10500X-CMW710-R7557.

Restrictions and guidelines

Before configuring FC static routes, determine a domain ID for each FCF switch in the fabric.

Procedures

Configuring Switch A

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchA> system-view

[SwitchA] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchA] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchA] quit

# Reboot the switch.

<SwitchA> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure DCBX:

# Enable LLDP globally.

<SwitchA> system-view

[SwitchA] lldp global enable

# Enable LLDP on Ten-GigabitEthernet 1/0/1, and enable the interface to advertise DCBX TLVs.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] lldp enable

[SwitchA-Ten-GigabitEthernet1/0/1] lldp tlv-enable dot1-tlv dcbx

[SwitchA-Ten-GigabitEthernet1/0/1] quit

# Create a Layer 2 ACL numbered 4000.

[SwitchA] acl mac 4000

# Configure two rules in the ACL to match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).

[SwitchA-acl-mac-4000] rule permit type 8906 ffff

[SwitchA-acl-mac-4000] rule permit type 8914 ffff

[SwitchA-acl-mac-4000] quit

# Create a class named app_c with the operator as OR, and specify ACL 4000 as the match criterion.

[SwitchA] traffic classifier app_c operator or

[SwitchA-classifier-app_c] if-match acl mac 4000

[SwitchA-classifier-app_c] quit

# Create a behavior named app_b, and configure the action of marking packets with 802.1p priority 3.

[SwitchA] traffic behavior app_b

[SwitchA-behavior-app_b] remark dot1p 3

[SwitchA-behavior-app_b] quit

# Create a QoS policy named plcy.

[SwitchA] qos policy plcy

# Associate the class app_c with the behavior app_b in the QoS policy, and specify that the class-behavior association applies only to DCBX.

[SwitchA-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchA-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of Ten-GigabitEthernet 1/0/1.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] qos apply policy plcy outbound

3.     Configure PFC:

# Enable PFC in auto mode on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in packets.

[SwitchA-Ten-GigabitEthernet1/0/1] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/1] quit

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/2.

[SwitchA] interface ten-gigabitethernet 1/0/2

[SwitchA-Ten-GigabitEthernet1/0/2] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/2.

[SwitchA-Ten-GigabitEthernet1/0/2] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/2 to trust the 802.1p priority carried in packets.

[SwitchA-Ten-GigabitEthernet1/0/2] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/2] quit

4.     Configure ETS:

# Configure the 802.1p-lp priority map as follows:

a.     Map 802.1p priority 3 to local precedence 1 (corresponding to queue 1).

b.     Map all other 802.1p priorities to local precedence 0 (corresponding to queue 0).

[SwitchA] qos map-table dot1p-lp

[SwitchA-maptbl-dot1p-lp] import 3 export 1

[SwitchA-maptbl-dot1p-lp] import 0 1 2 4 5 6 7 export 0

[SwitchA-maptbl-dot1p-lp] quit

# Enable byte-count WRR on Ten-GigabitEthernet 1/0/1.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr byte-count

# Assign 50% of the interface bandwidth to queue 1 (af1) for FCoE traffic on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af1 group 1 byte-count 1

# Assign 50% of the interface bandwidth to queue 0 (be) for standard LAN traffic on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr be group 1 byte-count 1

# Assign all other queues on Ten-GigabitEthernet 1/0/1 to the SP group.

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af2 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af3 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af4 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr ef group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr cs6 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr cs7 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] quit

5.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchA] fcoe-mode fcf

# Disable the fabric configuration function in VSAN 1.

[SwitchA] vsan 1

[SwitchA-vsan1] undo domain configure enable

# Configure a fabric name in VSAN 1.

[SwitchA-vsan1] fabric-name 11:11:11:11:11:11:11:11

# Configure the domain ID as 1 in VSAN 1.

[SwitchA-vsan1] domain-id 1 static

Non-disruptive reconfiguration or isolating the switch may be performed. Continue? [Y/N]:y

[SwitchA-vsan1] quit

# Create interface VFC 1, bind VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchA] interface vfc 1

[SwitchA-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchA-Vfc1] port trunk vsan 1

[SwitchA-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchA] interface vfc 2

[SwitchA-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchA-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchA-Vfc2] port trunk vsan 1

[SwitchA-Vfc2] quit

# Assign Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to VLAN 10 as trunk ports.

[SwitchA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchA-if-range] port link-type trunk

[SwitchA-if-range] port trunk permit vlan 10

[SwitchA-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchA] vlan 10

[SwitchA-vlan10] fcoe enable vsan 1

[SwitchA-vlan10] quit

# Permit the members in the default zone of VSAN 1 to access each other.

[SwitchA] vsan 1

[SwitchA-vsan1] zone default-zone permit

# Configure static routes to Switch B and Switch C.

[SwitchA-vsan1] fc route-static 020000 8 vfc 2

[SwitchA-vsan1] fc route-static 030000 8 vfc 2

[SwitchA-vsan1] quit

Configuring Switch B

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchB> system-view

[SwitchB] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchB] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchB] quit

# Reboot the switch.

<SwitchB> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure PFC:

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

<SwitchB> system-view

[SwitchB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchB-if-range] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchB-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to trust the 802.1p priority carried in packets.

[SwitchB-if-range] qos trust dot1p

[SwitchB-if-range] quit

3.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchB] fcoe-mode fcf

# Disable the fabric configuration function in VSAN 1.

[SwitchB] vsan 1

[SwitchB-vsan1] undo domain configure enable

# Configure a fabric name in VSAN 1.

[SwitchB-vsan1] fabric-name 11:11:11:11:11:11:11:11

# Configure the domain ID as 2 in VSAN 1.

[SwitchB-vsan1] domain-id 2 static

Non-disruptive reconfiguration or isolating the switch may be performed. Continue? [Y/N]:y

[SwitchB-vsan1] quit

# Create interface VFC 1, and configure it to operate in E mode.

[SwitchB] interface vfc 1

[SwitchB-Vfc1] fc mode e

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchB-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchB-Vfc1] port trunk vsan 1

[SwitchB-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchB] interface vfc 2

[SwitchB-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchB-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchB-Vfc2] port trunk vsan 1

[SwitchB-Vfc2] quit

# Assign Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to VLAN 10 as trunk ports.

[SwitchB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchB-if-range] port link-type trunk

[SwitchB-if-range] port trunk permit vlan 10

[SwitchB-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchB] vlan 10

[SwitchB-vlan10] fcoe enable vsan 1

[SwitchB-vlan10] quit

# Permit the members in the default zone of VSAN 1 to access each other.

[SwitchB] vsan 1

[SwitchB-vsan1] zone default-zone permit

# Configure static routes to Switch A and Switch C.

[SwitchB-vsan1] fc route-static 010000 8 vfc 1

[SwitchB-vsan1] fc route-static 030000 8 vfc 2

[SwitchB-vsan1] quit

Configuring Switch C

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchC> system-view

[SwitchC] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchC] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchC] quit

# Reboot the switch.

<SwitchC> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure DCBX:

# Enable LLDP globally.

<SwitchC> system-view

[SwitchC] lldp global enable

# Enable LLDP on Ten-GigabitEthernet 1/0/2, and enable the interface to advertise DCBX TLVs.

[SwitchC] interface ten-gigabitethernet 1/0/2

[SwitchC-Ten-GigabitEthernet1/0/2] lldp enable

[SwitchC-Ten-GigabitEthernet1/0/2] lldp tlv-enable dot1-tlv dcbx

[SwitchC-Ten-GigabitEthernet1/0/2] quit

# Create a Layer 2 ACL numbered 4000.

[SwitchC] acl mac 4000

# Configure two rules in the ACL to match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).

[SwitchC-acl-mac-4000] rule permit type 8906 ffff

[SwitchC-acl-mac-4000] rule permit type 8914 ffff

[SwitchC-acl-mac-4000] quit

# Create a class named app_c with the operator as OR, and specify ACL 4000 as the match criterion.

[SwitchC] traffic classifier app_c operator or

[SwitchC-classifier-app_c] if-match acl mac 4000

[SwitchC-classifier-app_c] quit

# Create a behavior named app_b, and configure the action of marking packets with 802.1p priority 3.

[SwitchC] traffic behavior app_b

[SwitchC-behavior-app_b] remark dot1p 3

[SwitchC-behavior-app_b] quit

# Create a QoS policy named plcy.

[SwitchC] qos policy plcy

# Associate the class app_c with the behavior app_b in the QoS policy, and specify that the class-behavior association applies only to DCBX.

[SwitchC-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchC-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of Ten-GigabitEthernet 1/0/2.

[SwitchC] interface ten-gigabitethernet 1/0/2

[SwitchC-Ten-GigabitEthernet1/0/2] qos apply policy plcy outbound

3.     Configure PFC:

# Enable PFC in auto mode on Ten-GigabitEthernet 1/0/2.

[SwitchC-Ten-GigabitEthernet1/0/2] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/2.

[SwitchC-Ten-GigabitEthernet1/0/2] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/2 to trust the 802.1p priority carried in packets.

[SwitchC-Ten-GigabitEthernet1/0/2] qos trust dot1p

[SwitchC-Ten-GigabitEthernet1/0/2] quit

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1.

[SwitchC] interface ten-gigabitethernet 1/0/1

[SwitchC-Ten-GigabitEthernet1/0/1] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1.

[SwitchC-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in packets.

[SwitchC-Ten-GigabitEthernet1/0/1] qos trust dot1p

[SwitchC-Ten-GigabitEthernet1/0/1] quit

4.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchC] fcoe-mode fcf

# Disable the fabric configuration function in VSAN 1.

[SwitchC] vsan 1

[SwitchC-vsan1] undo domain configure enable

# Configure a fabric name in VSAN 1.

[SwitchC-vsan1] fabric-name 11:11:11:11:11:11:11:11

# Configure the domain ID as 3 in VSAN 1.

[SwitchC-vsan1] domain-id 3 static

Non-disruptive reconfiguration or isolating the switch may be performed. Continue? [Y/N]:y

[SwitchC-vsan1] quit

# Create interface VFC 1, and configure it to operate in E mode.

[SwitchC] interface vfc 1

[SwitchC-Vfc1] fc mode e

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchC-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchC-Vfc1] port trunk vsan 1

[SwitchC-Vfc1] quit

# Create interface VFC 2, bind VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchC] interface vfc 2

[SwitchC-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchC-Vfc2] port trunk vsan 1

[SwitchC-Vfc2] quit

# Assign Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to VLAN 10 as trunk ports.

[SwitchC] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchC-if-range] port link-type trunk

[SwitchC-if-range] port trunk permit vlan 10

[SwitchC-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchC] vlan 10

[SwitchC-vlan10] fcoe enable vsan 1

[SwitchC-vlan10] quit

# Permit the members in the default zone of VSAN 1 to access each other.

[SwitchC] vsan 1

[SwitchC-vsan1] zone default-zone permit

# Configure static routes to Switch A and Switch B.

[SwitchC-vsan1] fc route-static 010000 8 vfc 1

[SwitchC-vsan1] fc route-static 020000 8 vfc 1

[SwitchC-vsan1] quit

Verifying the configuration

# Verify that Switch A has static routes to Switch B and Switch C.

[SwitchA] display fc routing-table vsan 1

Routing Table: VSAN 1

  Destinations : 6          Routes : 6

  Destination/mask   Protocol   Preference   Cost     Interface

  0x020000/8         STATIC     10           0        Vfc2

  0x030000/8         STATIC     10           0        Vfc2

  0xfffc01/24        DIRECT     0            0        InLoop0

  0xfffffa/24        DIRECT     0            0        InLoop0

  0xfffffc/24        DIRECT     0            0        InLoop0

  0xfffffd/24        DIRECT     0            0        InLoop0

# Verify that Switch B has static routes to Switch A and Switch C.

[SwitchB] display fc routing-table vsan 1

Routing Table: VSAN 1

  Destinations : 6          Routes : 6

  Destination/mask   Protocol   Preference   Cost     Interface

  0x010000/8         STATIC     10           0        Vfc1

  0x030000/8         STATIC     10           0        Vfc2

  0xfffc02/24        DIRECT     0            0        InLoop0

  0xfffffa/24        DIRECT     0            0        InLoop0

  0xfffffc/24        DIRECT     0            0        InLoop0

  0xfffffd/24        DIRECT     0            0        InLoop0

# Verify that Switch C has static routes to Switch A and Switch B.

[SwitchC] display fc routing-table vsan 1

Routing Table: VSAN 1

  Destinations : 6          Routes : 6

  Destination/mask   Protocol   Preference   Cost     Interface

  0x010000/8         STATIC     10           0        Vfc1

  0x020000/8         STATIC     10           0        Vfc1

  0xfffc03/24        DIRECT     0            0        InLoop0

  0xfffffa/24        DIRECT     0            0        InLoop0

  0xfffffc/24        DIRECT     0            0        InLoop0

  0xfffffd/24        DIRECT     0            0        InLoop0

# Verify that you can successfully ping Switch C from Switch A.

[SwitchA] fcping fcid fffc03 vsan 1

FCPING fcid 0xfffc03: 128 data bytes, press CTRL_C to break

Reply from 0xfffc03: bytes = 128 time = 23 ms

Reply from 0xfffc03: bytes = 128 time = 9 ms

Reply from 0xfffc03: bytes = 128 time = 19 ms

Reply from 0xfffc03: bytes = 128 time = 14 ms

Reply from 0xfffc03: bytes = 128 time = 25 ms

 

--- 0xfffc03 fcping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 9/18/25 ms

Configuration files

·     Switch A:

#

 lldp global enable

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 fabric-name 11:11:11:11:11:11:11:11

 domain-id 1 static

 undo domain configure enable

 fc route-static 020000 8 Vfc2

 fc route-static 030000 8 Vfc2

 zone default-zone permit

#

vlan 10

 fcoe enable vsan 1

#

qos map-table dot1p-lp

 import 0 export 0

 import 2 export 0

 import 3 export 1

 import 4 export 0

 import 5 export 0

 import 6 export 0

 import 7 export 0

#

traffic classifier app_c operator or

 if-match acl mac 4000

#

traffic behavior app_b

 remark dot1p 3

#

qos policy plcy

 classifier app_c behavior app_b mode dcbx

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos wrr byte-count

 qos wrr af1 group 1 byte-count 1

 qos wrr af2 group sp

 qos wrr af3 group sp

 qos wrr af4 group sp

 qos wrr ef group sp

 qos wrr cs6 group sp

 qos wrr cs7 group sp

 qos apply policy plcy outbound

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Vfc1

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

acl mac 4000

 rule 0 permit type 8906 ffff

 rule 5 permit type 8914 ffff

#

·     Switch B:

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 fabric-name 11:11:11:11:11:11:11:11

 domain-id 2 static

 undo domain configure enable

 fc route-static 010000 8 Vfc1

 fc route-static 030000 8 Vfc2

 zone default-zone permit

#

vlan 10

 fcoe enable vsan 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Vfc1

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

·     Switch C:

#

 lldp global enable

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 fabric-name 11:11:11:11:11:11:11:11

 domain-id 3 static

 undo domain configure enable

 fc route-static 010000 8 Vfc1

 fc route-static 020000 8 Vfc1

 zone default-zone permit

#

vlan 10

 fcoe enable vsan 1

#

traffic classifier app_c operator or

 if-match acl mac 4000

#

traffic behavior app_b

 remark dot1p 3

#

qos policy plcy

 classifier app_c behavior app_b mode dcbx

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos apply policy plcy outbound

#

interface Vfc1

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

acl mac 4000

 rule 0 permit type 8906 ffff

 rule 5 permit type 8914 ffff

#

Example: Configuring FSPF

Network configuration

As shown in Figure 2, configure FCoE to meet the following requirements:

·     Any FCF switch can forward FC packets to the destination along the shortest path and automatically adapt to network topology changes.

·     SAN traffic can be transmitted on lossless Ethernet.

·     The server can access the disk device through the fabric.

Figure 2 Network diagram

 

Analysis

To meet the network requirements, you must perform the following tasks:

·     To allow SAN traffic to be transmitted on lossless Ethernet:

?     Configure DCBX, PFC in auto mode, and ETS on the Ethernet interface connecting a switch to a server.

?     Configure DCBX and PFC in auto mode on the Ethernet interface connecting a switch to a disk.

?     Forcibly enable PFC on the Ethernet interfaces interconnecting switches.

·     To allow FC packets to be forwarded along the shortest path automatically computed, configure FSPF.

Software versions used

This configuration example was created and verified on S10500X-CMW710-R7557.

Restrictions and guidelines

When you configure FCoE, follow these configuration restrictions and guidelines:

·     Because the network topology is complex, use the dynamic method to build the fabric.

·     Configure the highest switch priority for the FCF switch with better performance, so that FCF switch can be selected as the principal switch.

Procedures

Configuring Switch A

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchA> system-view

[SwitchA] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchA] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchA] quit

# Reboot the switch.

<SwitchA> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure DCBX:

# Enable LLDP globally.

<SwitchA> system-view

[SwitchA] lldp global enable

# Enable LLDP on Ten-GigabitEthernet 1/0/1, and enable the interface to advertise DCBX TLVs.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] lldp enable

[SwitchA-Ten-GigabitEthernet1/0/1] lldp tlv-enable dot1-tlv dcbx

[SwitchA-Ten-GigabitEthernet1/0/1] quit

# Create a Layer 2 ACL numbered 4000.

[SwitchA] acl mac 4000

# Configure two rules in the ACL to match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).

[SwitchA-acl-mac-4000] rule permit type 8906 ffff

[SwitchA-acl-mac-4000] rule permit type 8914 ffff

[SwitchA-acl-mac-4000] quit

# Create a class named app_c with the operator as OR, and specify ACL 4000 as the match criterion.

[SwitchA] traffic classifier app_c operator or

[SwitchA-classifier-app_c] if-match acl mac 4000

[SwitchA-classifier-app_c] quit

# Create a behavior named app_b, and configure the action of marking packets with 802.1p priority 3.

[SwitchA] traffic behavior app_b

[SwitchA-behavior-app_b] remark dot1p 3

[SwitchA-behavior-app_b] quit

# Create a QoS policy named plcy.

[SwitchA] qos policy plcy

# Associate the class app_c with the behavior app_b in the QoS policy, and specify that the class-behavior association applies only to DCBX.

[SwitchA-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchA-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of Ten-GigabitEthernet 1/0/1.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] qos apply policy plcy outbound

3.     Configure PFC:

# Enable PFC in auto mode on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in packets.

[SwitchA-Ten-GigabitEthernet1/0/1] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/1] quit

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchA] interface range ten-gigabitethernet 1/0/2 to ten-gigabitethernet 1/0/3

[SwitchA-if-range] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchA-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3 to trust the 802.1p priority carried in packets.

[SwitchA-if-range] qos trust dot1p

[SwitchA-if-range] quit

4.     Configure ETS:

# Configure the 802.1p-lp priority map as follows:

?     Map 802.1p priority 3 to local precedence 1 (corresponding to queue 1).

?     Map all other 802.1p priorities to local precedence 0 (corresponding to queue 0).

[SwitchA] qos map-table dot1p-lp

[SwitchA-maptbl-dot1p-lp] import 3 export 1

[SwitchA-maptbl-dot1p-lp] import 0 1 2 4 5 6 7 export 0

[SwitchA-maptbl-dot1p-lp] quit

# Enable byte-count WRR on Ten-GigabitEthernet 1/0/1.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr byte-count

# Assign 50% of the interface bandwidth to queue 1 (af1) for FCoE traffic on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af1 group 1 byte-count 1

# Assign 50% of the interface bandwidth to queue 0 (be) for standard LAN traffic on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr be group 1 byte-count 1

# Assign all other queues on Ten-GigabitEthernet 1/0/1 to the SP group.

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af2 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af3 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr af4 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr ef group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr cs6 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr cs7 group sp

[SwitchA-Ten-GigabitEthernet1/0/1] quit

5.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchA] fcoe-mode fcf

# Enable the fabric configuration function in VSAN 1. By default, the fabric configuration function is enabled.

[SwitchA] vsan 1

[SwitchA-vsan1] domain configure enable

# Configure the switch priority as 1, so that Switch A can be selected as the principal switch.

[SwitchA-vsan1] priority 1

[SwitchA-vsan1] quit

# Create interface VFC 1, bind VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchA] interface vfc 1

[SwitchA-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchA-Vfc1] port trunk vsan 1

[SwitchA-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchA] interface vfc 2

[SwitchA-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchA-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchA-Vfc2] port trunk vsan 1

[SwitchA-Vfc2] quit

# Create interface VFC 3, and configure it to operate in E mode.

[SwitchA] interface vfc 3

[SwitchA-Vfc3] fc mode e

# Bind interface VFC 3 to interface Ten-GigabitEthernet 1/0/3, and assign VFC 3 to VSAN 1 as a trunk port.

[SwitchA-Vfc3] bind interface ten-gigabitethernet 1/0/3

[SwitchA-Vfc3] port trunk vsan 1

[SwitchA-Vfc3] quit

# Assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/3 to VLAN 10 as trunk ports.

[SwitchA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/3

[SwitchA-if-range] port link-type trunk

[SwitchA-if-range] port trunk permit vlan 10

[SwitchA-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchA] vlan 10

[SwitchA-vlan10] fcoe enable vsan 1

[SwitchA-vlan10] quit

# Permit the members in the default zone of VSAN 1 to access each other.

[SwitchA] vsan 1

[SwitchA-vsan1] zone default-zone permit

# Enable FSPF in VSAN 1. By default, FSPF is enabled.

[SwitchA-vsan1] fspf enable

[SwitchA-vsan1] quit

Configuring Switch B

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchB> system-view

[SwitchB] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchB] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchB] quit

# Reboot the switch.

<SwitchB> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure PFC:

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

<SwitchB> system-view

[SwitchB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchB-if-range] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchB-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to trust the 802.1p priority carried in packets.

[SwitchB-if-range] qos trust dot1p

[SwitchB-if-range] quit

3.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchB] fcoe-mode fcf

# Enable the fabric configuration function in VSAN 1. By default, the fabric configuration function is enabled.

[SwitchB] vsan 1

[SwitchB-vsan1] domain configure enable

# Configure the domain ID as 2 in VSAN 1.

[SwitchB-vsan1] domain-id 2 preferred

Non-disruptive reconfiguration or isolating the switch may be performed. Continue? [Y/N]:y

[SwitchB-vsan1] quit

# Create interface VFC 1, and configure it to operate in E mode.

[SwitchB] interface vfc 1

[SwitchB-Vfc1] fc mode e

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchB-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchB-Vfc1] port trunk vsan 1

[SwitchB-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchB] interface vfc 2

[SwitchB-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchB-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchB-Vfc2] port trunk vsan 1

[SwitchB-Vfc2] quit

# Assign Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to VLAN 10 as trunk ports.

[SwitchB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchB-if-range] port link-type trunk

[SwitchB-if-range] port trunk permit vlan 10

[SwitchB-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchB] vlan 10

[SwitchB-vlan10] fcoe enable vsan 1

[SwitchB-vlan10] quit

# Permit the members in the default zone of VSAN 1 to access each other.

[SwitchB] vsan 1

[SwitchB-vsan1] zone default-zone permit

# Enable FSPF in VSAN 1. By default, FSPF is enabled.

[SwitchA-vsan1] fspf enable

[SwitchB-vsan1] quit

Configuring Switch C

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchC> system-view

[SwitchC] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchC] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchC] quit

# Reboot the switch.

<SwitchC> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure DCBX:

# Enable LLDP globally.

<SwitchC> system-view

[SwitchC] lldp global enable

# Enable LLDP on Ten-GigabitEthernet 1/0/1, and enable the interface to advertise DCBX TLVs.

[SwitchC] interface ten-gigabitethernet 1/0/1

[SwitchC-Ten-GigabitEthernet1/0/1] lldp enable

[SwitchC-Ten-GigabitEthernet1/0/1] lldp tlv-enable dot1-tlv dcbx

[SwitchC-Ten-GigabitEthernet1/0/1] quit

# Create a Layer 2 ACL numbered 4000.

[SwitchC] acl mac 4000

# Configure two rules in the ACL to match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).

[SwitchC-acl-mac-4000] rule permit type 8906 ffff

[SwitchC-acl-mac-4000] rule permit type 8914 ffff

[SwitchC-acl-mac-4000] quit

# Create a class named app_c with the operator as OR, and specify ACL 4000 as the match criterion.

[SwitchC] traffic classifier app_c operator or

[SwitchC-classifier-app_c] if-match acl mac 4000

[SwitchC-classifier-app_c] quit

# Create a behavior named app_b, and configure the action of marking packets with 802.1p priority 3.

[SwitchC] traffic behavior app_b

[SwitchC-behavior-app_b] remark dot1p 3

[SwitchC-behavior-app_b] quit

# Create a QoS policy named plcy.

[SwitchC] qos policy plcy

# Associate the class app_c with the behavior app_b in the QoS policy, and specify that the class-behavior association applies only to DCBX.

[SwitchC-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchC-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of Ten-GigabitEthernet 1/0/1.

[SwitchC] interface ten-gigabitethernet 1/0/1

[SwitchC-Ten-GigabitEthernet1/0/1] qos apply policy plcy outbound

3.     Configure PFC:

# Enable PFC in auto mode on Ten-GigabitEthernet 1/0/1.

[SwitchC-Ten-GigabitEthernet1/0/1] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1.

[SwitchC-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in packets.

[SwitchC-Ten-GigabitEthernet1/0/1] qos trust dot1p

[SwitchC-Ten-GigabitEthernet1/0/1] quit

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchC] interface range ten-gigabitethernet 1/0/2 to ten-gigabitethernet 1/0/3

[SwitchC-if-range] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchC-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3 to trust the 802.1p priority carried in packets.

[SwitchC-if-range] qos trust dot1p

[SwitchC-if-range] quit

4.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchC] fcoe-mode fcf

# Enable the fabric configuration function in VSAN 1. By default, the fabric configuration function is enabled.

[SwitchC] vsan 1

[SwitchC-vsan1] domain configure enable

# Configure the domain ID as 3 in VSAN 1.

[SwitchC-vsan1] domain-id 3 preferred

Non-disruptive reconfiguration or isolating the switch may be performed. Continue? [Y/N]:y

[SwitchC-vsan1] quit

# Create interface VFC 1, bind VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchC] interface vfc 1

[SwitchC-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchC-Vfc1] port trunk vsan 1

[SwitchC-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchC] interface vfc 2

[SwitchC-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchC-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchC-Vfc2] port trunk vsan 1

[SwitchC-Vfc2] quit

# Create interface VFC 3, and configure it to operate in E mode.

[SwitchC] interface vfc 3

[SwitchC-Vfc3] fc mode e

# Bind interface VFC 3 to interface Ten-GigabitEthernet 1/0/3, and assign VFC 3 to VSAN 1 as a trunk port.

[SwitchC-Vfc3] bind interface ten-gigabitethernet 1/0/3

[SwitchC-Vfc3] port trunk vsan 1

[SwitchC-Vfc3] quit

# Assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/3 to VLAN 10 as trunk ports.

[SwitchC] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/3

[SwitchC-if-range] port link-type trunk

[SwitchC-if-range] port trunk permit vlan 10

[SwitchC-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchC] vlan 10

[SwitchC-vlan10] fcoe enable vsan 1

[SwitchC-vlan10] quit

# Permit the members in the default zone of VSAN 1 to access each other.

[SwitchC] vsan 1

[SwitchC-vsan1] zone default-zone permit

# Enable FSPF in VSAN 1. By default, FSPF is enabled.

[SwitchC-vsan1] fspf enable

[SwitchC-vsan1] quit

Verifying the configuration

Verify the configuration on Switch A or Switch C, for example, Switch A.

1.     Verify the configuration when all links are available:

# Display the FSPF neighbor information for VSAN 1.

[SwitchA] display fspf neighbor

FSPF neighbor information of VSAN 1(01):

  Interface   NbrDomain   IfIndex   NbrIfIndex   Dead Time   State

  Vfc2        2           0x68      0x68         00:01:06    Full

  Vfc3        3           0x69      0x69         00:01:06    Full

The output shows that Switch A has two neighbors in VSAN 1 (Switch B with domain ID 2 and Switch C with domain ID 3).

# Display the FC routing table of VSAN 1.

[SwitchA] display fc routing-table vsan 1

Routing Table: VSAN 1

  Destinations : 6          Routes : 6

  Destination/mask   Protocol   Preference   Cost     Interface

  0x020000/8         FSPF       20           100      Vfc2

  0x030000/8         FSPF       20           100      Vfc3

  0xfffc01/24        DIRECT     0            0        InLoop0

  0xfffffa/24        DIRECT     0            0        InLoop0

  0xfffffc/24        DIRECT     0            0        InLoop0

  0xfffffd/24        DIRECT     0            0        InLoop0

The output shows that Switch A learned FSPF routes to Switch B and Switch C.

# Verify that you can successfully ping Switch C from Switch A.

[SwitchA] fcping fcid fffc03 vsan 1

FCPING fcid 0xfffc03: 128 data bytes, press CTRL_C to break.

Reply from 0xfffc03: bytes = 128 time = 1.102 ms

Reply from 0xfffc03: bytes = 128 time = 0.276 ms

Reply from 0xfffc03: bytes = 128 time = 0.253 ms

Reply from 0xfffc03: bytes = 128 time = 0.270 ms

Reply from 0xfffc03: bytes = 128 time = 0.247 ms

 

--- 0xfffc03 fcping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 0.247/0.430/1.102 ms

# Verify that the path from Switch A to Switch C is Switch A > Switch C, but not Switch A > Switch B > Switch C.

[SwitchA] fctracert fcid fffc03 vsan 1

Route present for: 0xfffc03, press CTRL_C to break.

20:00:00:0b:46:00:02:82(0xfffc01)

20:00:00:05:30:00:18:db(0xfffc03)

20:00:00:05:30:00:18:db(0xfffc03)

20:00:00:0b:46:00:02:82(0xfffc01)

Fctracert completed.

2.     Verify the configuration when the link between Switch A and Switch C is disconnected:

# Display the FC routing table of VSAN 1.

[SwitchA] display fc routing-table vsan 1

Routing Table: VSAN 1

  Destinations : 6          Routes : 6

  Destination/mask   Protocol   Preference   Cost     Interface

  0x020000/8         FSPF       20           100      Vfc2

  0x030000/8         FSPF       20           200      Vfc2

  0xfffc01/24        DIRECT     0            0        InLoop0

  0xfffffa/24        DIRECT     0            0        InLoop0

  0xfffffc/24        DIRECT     0            0        InLoop0

  0xfffffd/24        DIRECT     0            0        InLoop0

The output shows that Switch A still has an FSPF route to Switch C.

# Verify that you can successfully ping Switch C from Switch A.

[SwitchA]fcping fcid fffc03 vsan 1

FCPING fcid 0xfffc03: 128 data bytes, press CTRL_C to break.

Reply from 0xfffc03: bytes = 128 time = 2.846 ms

Reply from 0xfffc03: bytes = 128 time = 2.810 ms

Reply from 0xfffc03: bytes = 128 time = 2.799 ms

Reply from 0xfffc03: bytes = 128 time = 2.908 ms

Reply from 0xfffc03: bytes = 128 time = 3.840 ms

 

--- 0xfffc03 fcping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 2.799/3.041/3.840 ms

# Verify that Switch B is on the path from Switch A to Switch C.

[SwitchA] fctracert fcid fffc03 vsan 1

Route present for: 0xfffc03, press CTRL_C to break.

20:00:00:0b:46:00:02:82(0xfffc01)

20:00:00:e0:fc:00:c5:18(0xfffc02)

20:00:00:05:30:00:18:db(0xfffc03)

20:00:00:05:30:00:18:db(0xfffc03)

20:00:00:e0:fc:00:c5:18(0xfffc02)

20:00:00:0b:46:00:02:82(0xfffc01)

Fctracert completed.

The output shows that FSPF selected an alternative path (Switch A > Switch B > Switch C) after the link between Switch A and Switch C is disconnected.

Configuration files

·     Switch A:

#

 lldp global enable

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 priority 1

 zone default-zone permit

#

vlan 10

 fcoe enable vsan 1

#

qos map-table dot1p-lp

 import 0 export 0

 import 2 export 0

 import 3 export 1

 import 4 export 0

 import 5 export 0

 import 6 export 0

 import 7 export 0

#

traffic classifier app_c operator or

 if-match acl mac 4000

#

traffic behavior app_b

 remark dot1p 3

#

qos policy plcy

 classifier app_c behavior app_b mode dcbx

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos wrr byte-count

 qos wrr af1 group 1 byte-count 1

 qos wrr af2 group sp

 qos wrr af3 group sp

 qos wrr af4 group sp

 qos wrr ef group sp

 qos wrr cs6 group sp

 qos wrr cs7 group sp

 qos apply policy plcy outbound

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Vfc1

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

interface Vfc3

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/3

#

acl mac 4000

 rule 0 permit type 8906 ffff

 rule 5 permit type 8914 ffff

#

·     Switch B:

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 domain-id 2 preferred

 zone default-zone permit

#

vlan 10

 fcoe enable vsan 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Vfc1

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

·     Switch C:

#

lldp global enable

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 domain-id 3 preferred

 zone default-zone permit

#

vlan 10

 fcoe enable vsan 1

#

traffic classifier app_c operator or

 if-match acl mac 4000

#

traffic behavior app_b

 remark dot1p 3

#

qos policy plcy

 classifier app_c behavior app_b mode dcbx

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos apply policy plcy outbound

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Vfc1

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

interface Vfc3

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/3

#

acl mac 4000

 rule 0 permit type 8906 ffff

 rule 5 permit type 8914 ffff

#

Example: Configuring FC zones

Network configuration

As shown in Figure 3, Disk A is a dedicated disk of Dept A. Disk B is a dedicated disk of Dept B. Disk C is a common disk for Dept A and Dept B. Dept A and Dept B cannot access each other.

Configure FCoE to meet the following requirements:

·     SAN traffic can be transmitted on lossless Ethernet.

·     Only Server A can access Disk A.

·     Only Server B can access Disk B.

·     Server A and Server B can access Disk C.

·     Server A and Server B cannot access each other.

Figure 3 Network diagram

 

Analysis

To meet the network requirements, you must perform the following tasks:

·     To allow SAN traffic to be transmitted on lossless Ethernet, perform the following configurations:

?     Configure DCBX, PFC in auto mode, and ETS on the Ethernet interface connecting a switch to a server.

?     Configure DCBX and PFC in auto mode on the Ethernet interface connecting a switch to a disk.

?     Forcibly enable PFC on the Ethernet interfaces interconnecting switches.

·     To implement access control in VSAN 1, divide VSAN 1 into two zones:

?     Zone 1 (containing Server A, Disk A, and Disk C).

?     Zone 2 (containing Server B, Disk B, and Disk C).

·     To ensure data consistency across the fabric, configure FC zones on only one switch and configure both the zone distribution and merge types as complete distribution and complete merge.

Software versions used

This configuration example was created and verified on S10500X-CMW710-R7557.

Procedures

Configuring Switch A

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchA> system-view

[SwitchA] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchA] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchA] quit

# Reboot the switch.

<SwitchA> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure DCBX:

# Enable LLDP globally.

<SwitchA> system-view

[SwitchA] lldp global enable

# Enable LLDP on Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4, and enable the interfaces to advertise DCBX TLVs.

[SwitchA] interface range ten-gigabitethernet 1/0/3 to ten-gigabitethernet 1/0/4

[SwitchA-if-range] lldp enable

[SwitchA-if-range] lldp tlv-enable dot1-tlv dcbx

[SwitchA-if-range] quit

# Create a Layer 2 ACL numbered 4000.

[SwitchA] acl mac 4000

# Configure two rules in the ACL to match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).

[SwitchA-acl-mac-4000] rule permit type 8906 ffff

[SwitchA-acl-mac-4000] rule permit type 8914 ffff

[SwitchA-acl-mac-4000] quit

# Create a class named app_c with the operator as OR, and specify ACL 4000 as the match criterion.

[SwitchA] traffic classifier app_c operator or

[SwitchA-classifier-app_c] if-match acl mac 4000

[SwitchA-classifier-app_c] quit

# Create a behavior named app_b, and configure the action of marking packets with 802.1p priority 3.

[SwitchA] traffic behavior app_b

[SwitchA-behavior-app_b] remark dot1p 3

[SwitchA-behavior-app_b] quit

# Create a QoS policy named plcy.

[SwitchA] qos policy plcy

# Associate the class app_c with the behavior app_b in the QoS policy, and specify that the class-behavior association applies only to DCBX.

[SwitchA-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchA-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4.

[SwitchA] interface range ten-gigabitethernet 1/0/3 to ten-gigabitethernet 1/0/4

[SwitchA-if-range] qos apply policy plcy outbound

3.     Configure PFC:

# Enable PFC in auto mode on Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4.

[SwitchA-if-range] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4.

[SwitchA-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4 to trust the 802.1p priority carried in packets.

[SwitchA-if-range] qos trust dot1p

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchA-if-range] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchA-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to trust the 802.1p priority carried in packets.

[SwitchA-if-range] qos trust dot1p

[SwitchA-if-range] quit

4.     Configure ETS:

# Configure the 802.1p-lp priority map as follows:

a.     Map 802.1p priority 3 to local precedence 1 (corresponding to queue 1).

b.     Map all other 802.1p priorities to local precedence 0 (corresponding to queue 0).

[SwitchA] qos map-table dot1p-lp

[SwitchA-maptbl-dot1p-lp] import 3 export 1

[SwitchA-maptbl-dot1p-lp] import 0 1 2 4 5 6 7 export 0

[SwitchA-maptbl-dot1p-lp] quit

# Enable byte-count WRR on Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4.

[SwitchA] interface range ten-gigabitethernet 1/0/3 to ten-gigabitethernet 1/0/4

[SwitchA-if-range] qos wrr byte-count

# Assign 50% of the interface bandwidth to queue 1 (af1) for FCoE traffic on Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4.

[SwitchA-if-range] qos wrr af1 group 1 byte-count 1

# Assign 50% of the interface bandwidth to queue 0 (be) for standard LAN traffic on Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4.

[SwitchA-if-range] qos wrr be group 1 byte-count 1

# Assign all other queues on Ten-GigabitEthernet 1/0/3 and Ten-GigabitEthernet 1/0/4 to the SP group.

[SwitchA-if-range] qos wrr af2 group sp

[SwitchA-if-range] qos wrr af3 group sp

[SwitchA-if-range] qos wrr af4 group sp

[SwitchA-if-range] qos wrr ef group sp

[SwitchA-if-range] qos wrr cs6 group sp

[SwitchA-if-range] qos wrr cs7 group sp

[SwitchA-if-range] quit

5.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchA] fcoe-mode fcf

# Create VSAN 1.

[SwitchA] vsan 1

# Configure the switch priority as 1, so that Switch A can be selected as the principal switch.

[SwitchA-vsan1] priority 1

[SwitchA-vsan1] quit

# Create interface VFC 1, and configure it to operate in E mode.

[SwitchA] interface vfc 1

[SwitchA-Vfc1] fc mode e

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchA-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchA-Vfc1] port trunk vsan 1

[SwitchA-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchA] interface vfc 2

[SwitchA-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchA-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchA-Vfc2] port trunk vsan 1

[SwitchA-Vfc2] quit

# Create interface VFC 3, bind VFC 3 to interface Ten-GigabitEthernet 1/0/3, and assign VFC 3 to VSAN 1 as a trunk port.

[SwitchA] interface vfc 3

[SwitchA-Vfc3] bind interface ten-gigabitethernet 1/0/3

[SwitchA-Vfc3] port trunk vsan 1

[SwitchA-Vfc3] quit

# Create interface VFC 4, bind VFC 4 to interface Ten-GigabitEthernet 1/0/4, and assign VFC 4 to VSAN 1 as a trunk port.

[SwitchA] interface vfc 4

[SwitchA-Vfc4] bind interface ten-gigabitethernet 1/0/4

[SwitchA-Vfc4] port trunk vsan 1

[SwitchA-Vfc4] quit

# Assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/4 to VLAN 10 as trunk ports.

[SwitchA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4

[SwitchA-if-range] port link-type trunk

[SwitchA-if-range] port trunk permit vlan 10

[SwitchA-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchA] vlan 10

[SwitchA-vlan10] fcoe enable vsan 1

[SwitchA-vlan10] quit

Configuring Switch B

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchB> system-view

[SwitchB] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchB] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchB] quit

# Reboot the switch.

<SwitchB> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure PFC:

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

<SwitchB> system-view

[SwitchB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchB-if-range] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchB-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to trust the 802.1p priority carried in packets.

[SwitchB-if-range] qos trust dot1p

[SwitchB-if-range] quit

3.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchB] fcoe-mode fcf

# Enable the fabric configuration function in VSAN 1. By default, the fabric configuration function is enabled.

[SwitchB] vsan 1

[SwitchB-vsan1] domain configure enable

# Configure the domain ID as 2 in VSAN 1.

[SwitchB-vsan1] domain-id 2 preferred

Non-disruptive reconfiguration or isolating the switch may be performed. Continue? [Y/N]:y

[SwitchB-vsan1] quit

# Create interface VFC 1, and configure it to operate in E mode.

[SwitchB] interface vfc 1

[SwitchB-Vfc1] fc mode e

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchB-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchB-Vfc1] port trunk vsan 1

[SwitchB-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchB] interface vfc 2

[SwitchB-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchB-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchB-Vfc2] port trunk vsan 1

[SwitchB-Vfc2] quit

# Assign Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to VLAN 10 as trunk ports.

[SwitchB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchB-if-range] port link-type trunk

[SwitchB-if-range] port trunk permit vlan 10

[SwitchB-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchB] vlan 10

[SwitchB-vlan10] fcoe enable vsan 1

[SwitchB-vlan10] quit

Configuring Switch C

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchC> system-view

[SwitchC] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchC] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

Slot 1:

Save next configuration file successfully.

[SwitchC] quit

# Reboot the switch.

<SwitchC> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure DCBX:

# Enable LLDP globally.

<SwitchC> system-view

[SwitchC] lldp global enable

# Enable LLDP on Ten-GigabitEthernet 1/0/3 through Ten-GigabitEthernet 1/0/5, and enable the interfaces to advertise DCBX TLVs.

[SwitchC] interface range ten-gigabitethernet 1/0/3 to ten-gigabitethernet 1/0/5

[SwitchC-if-range] lldp enable

[SwitchC-if-range] lldp tlv-enable dot1-tlv dcbx

[SwitchC-if-range] quit

# Create a Layer 2 ACL numbered 4000.

[SwitchC] acl mac 4000

# Configure two rules in the ACL to match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).

[SwitchC-acl-mac-4000] rule permit type 8906 ffff

[SwitchC-acl-mac-4000] rule permit type 8914 ffff

[SwitchC-acl-mac-4000] quit

# Create a class named app_c with the operator as OR, and specify ACL 4000 as the match criterion.

[SwitchC] traffic classifier app_c operator or

[SwitchC-classifier-app_c] if-match acl mac 4000

[SwitchC-classifier-app_c] quit

# Create a behavior named app_b, and configure the action of marking packets with 802.1p priority 3.

[SwitchC] traffic behavior app_b

[SwitchC-behavior-app_b] remark dot1p 3

[SwitchC-behavior-app_b] quit

# Create a QoS policy named plcy.

[SwitchC] qos policy plcy

# Associate the class app_c with the behavior app_b in the QoS policy, and specify that the class-behavior association applies only to DCBX.

[SwitchC-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchC-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of Ten-GigabitEthernet 1/0/3 through Ten-GigabitEthernet 1/0/5.

[SwitchC] interface range ten-gigabitethernet 1/0/3 to ten-gigabitethernet 1/0/5

[SwitchC-if-range] qos apply policy plcy outbound

3.     Configure PFC:

# Enable PFC in auto mode on Ten-GigabitEthernet 1/0/3 through Ten-GigabitEthernet 1/0/5.

[SwitchC-if-range] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/3 through Ten-GigabitEthernet 1/0/5.

[SwitchC-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/3 through Ten-GigabitEthernet 1/0/5 to trust the 802.1p priority carried in packets.

[SwitchC-if-range] qos trust dot1p

[SwitchC-if-range] quit

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchC] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2

[SwitchC-if-range] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchC-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 to trust the 802.1p priority carried in packets.

[SwitchC-if-range] qos trust dot1p

[SwitchC-if-range] quit

4.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchC] fcoe-mode fcf

# Create VSAN 1.

[SwitchC] vsan 1

# Configure the domain ID as 3 in VSAN 1.

[SwitchC-vsan1] domain-id 3 preferred

Non-disruptive reconfiguration or isolating the switch may be performed. Continue? [Y/N]:y

[SwitchC-vsan1] quit

# Create interface VFC 1, and configure it to operate in E mode.

[SwitchC] interface vfc 1

[SwitchC-Vfc1] fc mode e

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchC-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchC-Vfc1] port trunk vsan 1

[SwitchC-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchC] interface vfc 2

[SwitchC-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchC-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchC-Vfc2] port trunk vsan 1

[SwitchC-Vfc2] quit

# Create interface VFC 3, bind it to interface Ten-GigabitEthernet 1/0/3, and assign VFC 3 to VSAN 1 as a trunk port.

[SwitchC] interface vfc 3

[SwitchC-Vfc3] bind interface ten-gigabitethernet 1/0/3

[SwitchC-Vfc3] port trunk vsan 1

[SwitchC-Vfc3] quit

# Create interface VFC 4, bind it to interface Ten-GigabitEthernet 1/0/4, and assign VFC 4 to VSAN 1 as a trunk port.

[SwitchC] interface vfc 4

[SwitchC-Vfc4] bind interface ten-gigabitethernet 1/0/4

[SwitchC-Vfc4] port trunk vsan 1

[SwitchC-Vfc4] quit

# Create interface VFC 5, bind it to interface Ten-GigabitEthernet 1/0/5, and assign VFC 5 to VSAN 1 as a trunk port.

[SwitchC] interface vfc 5

[SwitchC-Vfc5] bind interface ten-gigabitethernet 1/0/5

[SwitchC-Vfc5] port trunk vsan 1

[SwitchC-Vfc5] quit

# Assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/5 to VLAN 10 as trunk ports.

[SwitchC] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/5

[SwitchC-if-range] port link-type trunk

[SwitchC-if-range] port trunk permit vlan 10

[SwitchC-if-range] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchC] vlan 10

[SwitchC-vlan10] fcoe enable vsan 1

[SwitchC-vlan10] quit

Displaying FC SAN establishment

On Switch A

# Display domain information in VSAN 1.

[SwitchA] display fc domain vsan 1

Domain Information of VSAN 1:

 

  Running time information:

    State: Stable

    Switch WWN:  10:00:00:e0:fc:00:c5:18

    Fabric name: 10:00:00:e0:fc:00:c5:18

    Priority: 1

    Domain ID: 1

  Configuration information:

    Domain configure: Enabled

    Domain auto-reconfigure: Disabled

    Fabric name: 10:00:00:e0:fc:00:c5:18

    Priority: 1

    Domain ID: 1 (preferred)

  Principal switch running time information:

    Priority: 1

 

    Path               Interface

    Downstream         Vfc1

    Downstream         Vfc2

The output shows that Switch A was selected as the principal switch and assigned itself domain ID 1.

# Display node login information in VSAN 1.

[SwitchA] display fc login vsan 1

Interface VSAN FCID     Node WWN                Port WWN

Vfc3      1    0x010000 21:01:00:1a:32:a0:fa:12 21:01:00:1a:32:a0:fa:11

Vfc4      1    0x010001 21:01:00:1b:32:b0:fb:12 21:01:00:1b:32:b0:fb:11

The output shows that Switch A assigned FC addresses 0x010000 and 0x010001 to Server A and Server B, respectively.

# Display brief information about the name service database in VSAN 1.

[SwitchA] display fc name-service database vsan 1

VSAN 1:

  FCID     Type               PWWN(vendor)                      FC4-type:feature

  0x010000 0x01(N)            21:01:00:1a:32:a0:fa:11           SCSI-FCP:Initiator

  0x010001 0x01(N)            21:01:00:1b:32:b0:fb:11           SCSI-FCP:Initiator

  0x030000 0x01(N)            10:00:00:05:30:00:25:a1           SCSI-FCP:Target

  0x030001 0x01(N)            10:00:00:05:30:00:25:c1           SCSI-FCP:Target

  0x030002 0x01(N)            10:00:00:05:30:00:25:b1           SCSI-FCP:Target

The output shows that all nodes completed name service registrations.

On Switch C

# Display domain information in VSAN 1.

[SwitchC] display fc domain vsan 1

Domain Information of VSAN 1:

 

  Running time information:

    State: Stable

    Switch WWN:  10:00:74:25:8a:02:4c:00

    Fabric name: 10:00:00:e0:fc:00:c5:18

    Priority: 128

    Domain ID: 3

  Configuration information:

    Domain configure: Enabled

    Domain auto-reconfigure: Disabled

    Fabric name: 10:00:00:e0:fc:00:c5:18

    Priority: 128

    Domain ID: 3 (preferred)

  Principal switch running time information:

    Priority: 1

 

    Path          Interface

    Upstream      Vfc2

The output shows that the principal switch assigned domain ID 3 to Switch C.

# Display node login information in VSAN 1.

[SwitchC] display fc login vsan 1

Interface VSAN FCID     Node WWN                Port WWN

Vfc3      1    0x030000 10:00:00:05:30:00:25:a1 10:00:00:05:30:00:25:a2

Vfc4      1    0x030001 10:00:00:05:30:00:25:c1 10:00:00:05:30:00:25:c2

Vfc5      1    0x030002 10:00:00:05:30:00:25:b1 10:00:00:05:30:00:25:b2

The output shows that Switch C assigned FC addresses 0x030000, 0x030001, and 0x030002 to Disk A, Disk C, and Disk B, respectively.

# Display brief information about the name service database in VSAN 1.

[SwitchC] display fc name-service database vsan 1

VSAN 1:

  FCID     Type               PWWN(vendor)                      FC4-type:feature

  0x010000 0x01(N)            21:01:00:1a:32:a0:fa:11           SCSI-FCP:Initiator

  0x010001 0x01(N)            21:01:00:1b:32:b0:fb:11           SCSI-FCP:Initiator

  0x030000 0x01(N)            10:00:00:05:30:00:25:a1           SCSI-FCP:Target

  0x030001 0x01(N)            10:00:00:05:30:00:25:c1           SCSI-FCP:Target

  0x030002 0x01(N)            10:00:00:05:30:00:25:b1           SCSI-FCP:Target

The output shows that all nodes completed name service registrations.

Configuring FC zones

# Create Zone 1, and specify FC IDs 010000, 030000, and 030001 as its members.

[SwitchA-vsan1] zone name Zone1

[SwitchA-vsan1-zone-Zone1] member fcid 010000

[SwitchA-vsan1-zone-Zone1] member fcid 030000

[SwitchA-vsan1-zone-Zone1] member fcid 030001

[SwitchA-vsan1-zone-Zone1] quit

# Create Zone 2, and specify FC IDs 010001, 030001, and 030002 as its members.

[SwitchA-vsan1] zone name Zone2

[SwitchA-vsan1-zone-Zone2] member fcid 010001

[SwitchA-vsan1-zone-Zone2] member fcid 030001

[SwitchA-vsan1-zone-Zone2] member fcid 030002

[SwitchA-vsan1-zone-Zone2] quit

# Create Zone set 1, and add Zone 1 and Zone 2 as its members.

[SwitchA-vsan1] zoneset name Zoneset1

[SwitchA-vsan1-zoneset-Zoneset1] member Zone1

[SwitchA-vsan1-zoneset-Zoneset1] member Zone2

[SwitchA-vsan1-zoneset-Zoneset1] quit

# Configure zone distribution and merge types as complete distribution and complete merge.

[SwitchA-vsan1] zoneset distribute full

# Activate Zone set 1 as the active zone set, and distribute it to the entire fabric.

[SwitchA-vsan1] zoneset activate name Zoneset1

[SwitchA-vsan1] quit

Verifying the configuration

Verify the configuration on any switch, for example, Switch C.

# Display zone set information for VSAN 1.

<SwitchC> display zoneset vsan 1

VSAN 1:

  zoneset name Zoneset1

    zone name Zone1

      fcid 0x010000

      fcid 0x030000

      fcid 0x030001

    zone name Zone2

      fcid 0x010001

      fcid 0x030001

      fcid 0x030002

The output shows that VSAN 1 was divided into two zones: Zone 1 and Zone 2.

# Display the zones to which FC ID 030001 belongs.

<SwitchC> display zone member fcid 030001

fcid 0x030001

VSAN 1:

    zone Zone1

    zone Zone2

The output shows that Disk C belongs to both Zone 1 and Zone 2 (both Server 1 and Server 2 can access Disk C).

# Display information about the active zone set in VSAN 1.

<SwitchC> display zoneset active vsan 1

VSAN 1:

  zoneset name Zoneset1

    zone name Zone1

      *fcid 0x010000

      *fcid 0x030000

      *fcid 0x030001

    zone name Zone2

      *fcid 0x010001

      *fcid 0x030001

      *fcid 0x030002

The output shows that Zone set 1 is the active zone set of VSAN 1.

Configuration files

·     Switch A:

#

 lldp global enable

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 priority 1

 zone name Zone1

  member fcid 010000

  member fcid 030000

  member fcid 030001

 zone name Zone2

  member fcid 010001

  member fcid 030001

  member fcid 030002

 zoneset name Zoneset1

  member Zone1

  member Zone2

 zoneset distribute full

 zoneset activate name Zoneset1

#

vlan 10

 fcoe enable vsan 1

#

qos map-table dot1p-lp

 import 0 export 0

 import 2 export 0

 import 3 export 1

 import 4 export 0

 import 5 export 0

 import 6 export 0

 import 7 export 0

#

traffic classifier app_c operator or

 if-match acl mac 4000

#

traffic behavior app_b

 remark dot1p 3

#

qos policy plcy

 classifier app_c behavior app_b mode dcbx

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos wrr byte-count

 qos wrr af1 group 1 byte-count 1

 qos wrr af2 group sp

 qos wrr af3 group sp

 qos wrr af4 group sp

 qos wrr ef group sp

 qos wrr cs6 group sp

 qos wrr cs7 group sp

 qos apply policy plcy outbound

#

interface Ten-GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos wrr byte-count

 qos wrr af1 group 1 byte-count 1

 qos wrr af2 group sp

 qos wrr af3 group sp

 qos wrr af4 group sp

 qos wrr ef group sp

 qos wrr cs6 group sp

 qos wrr cs7 group sp

 qos apply policy plcy outbound

#

interface Vfc1

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

interface Vfc3

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/3

#

interface Vfc4

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/4

#

acl mac 4000

 rule 0 permit type 8906 ffff

 rule 5 permit type 8914 ffff

#

·     Switch B:

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 domain-id 2 preferred

#

vlan 10

 fcoe enable vsan 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Vfc1

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

·     Switch C:

#

 lldp global enable

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vsan 1

 domain-id 3 preferred

#

vlan 10

 fcoe enable vsan 1

#

traffic classifier app_c operator or

 if-match acl mac 4000

#

traffic behavior app_b

 remark dot1p 3

#

qos policy plcy

 classifier app_c behavior app_b mode dcbx

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos apply policy plcy outbound

#

interface Ten-GigabitEthernet1/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos apply policy plcy outbound

#

interface Ten-GigabitEthernet1/0/5

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos apply policy plcy outbound

#

interface Vfc1

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

interface Vfc2

 fc mode e

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/2

#

interface Vfc3

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/3

#

interface Vfc4

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/4

#

interface Vfc5

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/5

#

acl mac 4000

 rule 0 permit type 8906 ffff

 rule 5 permit type 8914 ffff

#

Example: Configuring FIP snooping

Network configuration

As shown in Figure 4, configure FCoE to meet the following requirements:

·     SAN traffic can be transmitted on lossless Ethernet.

·     Only successfully registered servers can access the fabric.

·     Server A and Server B cannot access each other.

Figure 4 Network diagram

 

Analysis

To meet the network requirements, you must perform the following tasks:

·     To allow SAN traffic to be transmitted on lossless Ethernet, perform the following tasks:

?     Configure DCBX, PFC in auto mode, and ETS on the Ethernet interface connecting a switch to a server.

?     Configure DCBX and PFC in auto mode on the Ethernet interface connecting a switch to a disk.

?     Forcibly enable PFC on the Ethernet interfaces interconnecting switches.

·     To allow servers to access the fabric, configure the members in the default zone to access each other.

·     To allow only successfully registered servers to access the fabric and to deny access between Server A and Server B, configure FIP snooping on Switch B.

Software versions used

This configuration example was created and verified on S10500X-CMW710-R7557.

Procedures

Configuring Switch A

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchA> system-view

[SwitchA] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchA] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[SwitchA] quit

# Reboot the switch.

<SwitchA> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure PFC:

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1.

<SwitchA> system-view

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in packets.

[SwitchA-Ten-GigabitEthernet1/0/1] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/1] quit

3.     Configure FCoE:

# Configure the switch to operate in FCF mode.

[SwitchA] fcoe-mode fcf

# Set the FC-MAP value to 0x0efc01.

[SwitchA] fcoe fcmap 0efc01

Changing the FC-MAP will flap all VFC interfaces. Continue? [Y/N]:y

# Enable the fabric configuration feature in VSAN 1. By default, the fabric configuration feature is enabled.

[SwitchA] vsan 1

[SwitchA-vsan1] domain configure enable

# Set the switch priority to 10.

[SwitchA-vsan1] priority 10

[SwitchA-vsan1] quit

# Create interface VFC 1, and configure it to operate in F mode.

[SwitchA] interface vfc 1

[SwitchA-Vfc1] fc mode f

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign VFC 1 to VSAN 1 as a trunk port.

[SwitchA-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchA-Vfc1] port trunk vsan 1

[SwitchA-Vfc1] quit

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchA] interface vfc 2

[SwitchA-Vfc2] fc mode e

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 1 as a trunk port.

[SwitchA-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchA-Vfc2] port trunk vsan 1

[SwitchA-Vfc2] quit

# Assign Ten-GigabitEthernet 1/0/1 o VLAN 10 as a trunk port.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] port link-type trunk

[SwitchA-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10

[SwitchA-Ten-GigabitEthernet1/0/1] quit

# Enable FCoE for VLAN 10 and map VLAN 10 to VSAN 1.

[SwitchA] vlan 10

[SwitchA-vlan10] fcoe enable vsan 1

[SwitchA-vlan10] quit

# Configure the members in the default zone in VSAN 1 to access each other.

[SwitchA] vsan 1

[SwitchA-vsan1] zone default-zone permit

[SwitchA-vsan1] quit

Configuring Switch B

1.     Configure the advanced mode:

# Configure the switch to operate in advanced mode. (Skip this step if the switch is already operating in advanced mode.)

<SwitchB> system-view

[SwitchB] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y

The system working mode is changed, please save the configuration and reboot the

 system to make it effective.

# Save the configuration.

[SwitchB] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[SwitchB] quit

# Reboot the switch.

<SwitchB> reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

2.     Configure DCBX:

# Enable LLDP globally.

[SwitchB] lldp global enable

# Enable LLDP and DCBX TLV advertising on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2.

[SwitchB] interface range ten-gigabitethernet 1/0/2 to ten-gigabitethernet 1/0/3

[SwitchB-if-range] lldp enable

[SwitchB-if-range] lldp tlv-enable dot1-tlv dcbx

[SwitchB-if-range] quit

# Create Layer 2 ACL 4000.

[SwitchB] acl mac 4000

# Configure ACL 4000 to permit FCoE packets (protocol number is 0x8906) and FIP protocol packets (protocol number is 0x8914) to pass through.

[SwitchB] acl mac 4000

[SwitchB-acl-mac-4000] rule permit type 8906 ffff

[SwitchB-acl-mac-4000] rule permit type 8914 ffff

[SwitchB-acl-mac-4000] quit

# Create a class named app_c, specify the operator of the class as OR, and use ACL 4000 as the match criterion of the class.

[SwitchB] traffic classifier app_c operator or

[SwitchB-classifier-app_c] if-match acl mac 4000

[SwitchB-classifier-app_c] quit

# Create a behavior named app_b, and configure the behavior to mark packets with 802.1p priority value 3.

[SwitchB] traffic behavior app_b

[SwitchB-behavior-app_b] remark dot1p 3

[SwitchB-behavior-app_b] quit

# Create a QoS policy named plcy, associate class app_c with traffic behavior app_b in the QoS policy, and specify that the association apply to DCBX.

[SwitchB] qos policy plcy

[SwitchB-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchB-qospolicy-plcy] quit

# Apply QoS policy plcy to the outgoing traffic of Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchB] interface range ten-gigabitethernet 1/0/2 to ten-gigabitethernet 1/0/3

[SwitchB-if-range] qos apply policy plcy outbound

3.     Configure PFC:

# Enable PFC in auto mode on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchB-if-range] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchB-if-range] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3 to trust the 802.1p priority carried in incoming packets.

[SwitchB-if-range] qos trust dot1p

[SwitchB-if-range] quit

# Forcibly enable PFC on Ten-GigabitEthernet 1/0/1.

[SwitchB] interface ten-gigabitethernet 1/0/1

[SwitchB-Ten-GigabitEthernet1/0/1] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1.

[SwitchB-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in incoming packets.

[SwitchB-Ten-GigabitEthernet1/0/1] qos trust dot1p

[SwitchB-Ten-GigabitEthernet1/0/1] quit

4.     Configure ETS:

# Configure the 802.1p-local priority mapping table as follows:

?     Map 802.1p priority value 3 to local precedence 1.

?     Map the other 802.1p priorities to local precedence 0.

[SwitchB] qos map-table dot1p-lp

[SwitchB-maptbl-dot1p-lp] import 3 export 1

[SwitchB-maptbl-dot1p-lp] import 0 1 2 4 5 6 7 export 0

[SwitchB-maptbl-dot1p-lp] quit

# Configure byte-count WRR on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchB] interface range ten-gigabitethernet 1/0/2 to ten-gigabitethernet 1/0/3

[SwitchB-if-range] qos wrr byte-count

# Assign 50% of the interface bandwidth to the FCoE traffic (traffic assigned to queue 1) on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchB-if-range] qos wrr af1 group 1 byte-count 1

# Assign 50% of the interface bandwidth to the LAN traffic (traffic assigned to queue 0) on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchB-if-range] qos wrr be group 1 byte-count 1

# Assign the other queues to the SP group on Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3.

[SwitchB-if-range] qos wrr af2 group sp

[SwitchB-if-range] qos wrr af3 group sp

[SwitchB-if-range] qos wrr af4 group sp

[SwitchB-if-range] qos wrr ef group sp

[SwitchB-if-range] qos wrr cs6 group sp

[SwitchB-if-range] qos wrr cs7 group sp

[SwitchB-if-range] quit

5.     Configure FCoE:

# Configure the switch to operate in Transit mode.

[SwitchB] fcoe-mode transit

# Enable FIP snooping in VLAN 10.

[SwitchB] vlan 10

[SwitchB-vlan10] fip-snooping enable

# Set the FC-MAP value to 0x0EFC01 in VLAN 10.

[SwitchB-vlan10] fip-snooping fc-map 0efc01

Changing the FC-MAP will flap all interfaces. Continue? [Y/N]:y

[SwitchB-vlan10] quit

# Configure Ten-GigabitEthernet 1/0/1 to allow VLAN 10.

[SwitchB] interface ten-gigabitethernet 1/0/1

[SwitchB-Ten-GigabitEthernet1/0/1] port link-type trunk

[SwitchB-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10

# Configure Ten-GigabitEthernet 1/0/1 to operate in FCF mode.

[SwitchB-Ten-GigabitEthernet1/0/1] fip-snooping port-mode fcf

[SwitchB-Ten-GigabitEthernet1/0/1] quit

# Configure Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3 to allow VLAN 10.

[SwitchB] interface range ten-gigabitethernet 1/0/2 to ten-gigabitethernet 1/0/3

[SwitchB-if-range] port link-type trunk

[SwitchB-if-range] port trunk permit vlan 10

# Configure Ten-GigabitEthernet 1/0/2 and Ten-GigabitEthernet 1/0/3 to operate in ENode mode.

[SwitchB-if-range] fip-snooping port-mode enode

[SwitchB-if-range] quit

Verifying the configuration

# Display the domain information of VSAN 1 on Switch A.

[SwitchA] display fc domain vsan 1

Domain Information of VSAN 1:

 

    Running time information:

        State: Stable

        Switch WWN: 20:01:ac:2d:57:97:07:00

        Fabric name: 48:33:43:2d:46:43:1B:1B

        Priority: 25

        Domain ID: 11

    Configuration information:

        Domain configure: Enabled

        Domain auto-reconfigure: Disabled

        Fabric name: 48:33:43:2d:46:43:1B:1B

        Priority: 10

        Domain ID: 0 (preferred)

    Principal switch running time information:

        Priority: 25

 

    Path          Interface

    Upstream      Vfc2

The output shows that the domain configuration is complete on Switch A, and the principal switch assigns domain ID 11 to Switch A.

# Display ENode information obtained by Switch B.

[SwitchB] display fip-snooping enode

VLAN 10:

Interface   ENode WWN                  ENode MAC

XGE1/0/2    10:00:00:11:22:00:0d:01    0000-1234-0e01

XGE1/0/3    11:00:00:11:22:00:0d:02    0000-1234-0f01

# Display FCF switch information obtained by Switch B.

[SwitchB] display fip-snooping fcf

VLAN 10:

Interface   FCF MAC          FCF WWN                 Fabric Name                ENode

XGE1/0/1    0000-1234-0d01   20:01:ac:2d:57:97:07:00 48:33:43:2d:46:43:1B:1B    2

# Display information about FIP snooping sessions.

[SwitchB] display fip-snooping sessions

VLAN 10:

FCF MAC          ENode MAC         VN_Port MAC     VN_Port WWN

0000-1234-0d01   0000-1234-0e01    0efc-0001-0000  af:10:01:11:22:00:0e:01

0000-1234-0d01   0000-1234-0f01    0efc-0002-0001  af:11:01:11:22:00:0f:01

# Display the FIP snooping rules that have been flushed.

[SwitchB] display fip-snooping rules

Slot 1:

  VLAN 10:

    FCF rules information:

      Interface   Source MAC/Mask     Destination MAC/Mask   Context

      XGE1/0/1    0000-1234-0d01/48   0efc-0000-0000/24      ffffffff

    ENode rules information:

      Interface   Source MAC/Mask     Destination MAC/Mask   Context

      XGE1/0/2    0efc-0001-0000/48   0000-1234-0d01/48      ffffffff

      XGE1/0/3    0efc-0002-0000/48   0000-1234-0d01/48      ffffffff

Configuration files

·     Switch A:

#

 system-working-mode advance

#

 fcoe-mode fcf

#

 fcoe fcmap 0efc01

#

vsan 1

 priority 10

 zone default-zone permit

#

vlan 10

 fcoe enable vsan 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

 qos trust dot1p

#

interface Vfc1

 port trunk vsan 1

 bind interface Ten-GigabitEthernet1/0/1

#

·     Switch B:

#

 lldp global enable

#

 system-working-mode advance

#

 fcoe-mode fcf

#

vlan 10

 fip-snooping enable

 fip-snooping fc-map 0efc01

#

qos map-table dot1p-lp

 import 0 export 0

 import 2 export 0

 import 3 export 1

 import 4 export 0

 import 5 export 0

 import 6 export 0

 import 7 export 0

#

traffic classifier app_c operator or

 if-match acl mac 4000

#

traffic behavior app_b

 remark dot1p 3

#

qos policy plcy

 classifier app_c behavior app_b mode dcbx

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control enable

 priority-flow-control no-drop dot1p 3

 qos trust dot1p

 fip-snooping port-mode fcf

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos trust dot1p

 qos wrr af1 group 1 byte-count 1

 qos wrr af2 group sp

 qos wrr af3 group sp

 qos wrr af4 group sp

 qos wrr ef group sp

 qos wrr cs6 group sp

 qos wrr cs7 group sp

 qos apply policy plcy outbound

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 priority-flow-control auto

 priority-flow-control no-drop dot1p 3

 lldp tlv-enable dot1-tlv dcbx

 qos trust dot1p

 qos wrr af1 group 1 byte-count 1

 qos wrr af2 group sp

 qos wrr af3 group sp

 qos wrr af4 group sp

 qos wrr ef group sp

 qos wrr cs6 group sp

 qos wrr cs7 group sp

 qos apply policy plcy outbound

#

acl mac 4000

 rule 0 permit type 8906 ffff

 rule 5 permit type 8914 ffff

#

Related documentation

·     H3C S10500X Switch Series FCoE Configuration Guide-R7557

·     H3C S10500X Switch Series FCoE Command Reference-R7557

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网