83 
[SwitchC] interface ten-gigabitethernet 1/0/2 
[SwitchC-Ten-GigabitEthernet1/0/2] port-type fc 
# Configure the mode of interface FC 1/0/2 as E.  
[SwitchC-Fc1/0/2] fc mode e 
# Configure interface FC 1/0/2 to autonegotiate the speed.  
[SwitchC-Fc1/0/2] speed auto 
# Configure the trunk mode of interface FC 1/0/2 as On, and assign interface FC 1/0/2 to 
VSAN 1 as a trunk port. 
[SwitchC-Fc1/0/2] port trunk mode on 
[SwitchC-Fc1/0/2] port trunk vsan 1 
[SwitchC-Fc1/0/2] 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 
# Configure two static routes in VSAN 1. 
[SwitchC] vsan 1 
[SwitchC-vsan1] fc route-static 010000 8 fc 1/0/2 
[SwitchC-vsan1] fc route-static 020000 8 fc 1/0/2 
Verifying the configuration 
# Display the FC routing table in VSAN 1 on Switch A. 
[SwitchA-vsan1] 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        Fc1/0/1 
  0x030000/8         STATIC     10           0        Fc1/0/1 
  0xfffc01/24        DIRECT     0            0        InLoop0 
  0xfffffa/24        DIRECT     0            0        InLoop0 
  0xfffffc/24        DIRECT     0            0        InLoop0 
  0xfffffd/24        DIRECT     0            0        InLoop0 
# Display the FC routing table in VSAN 1 on Switch B. 
[SwitchB-vsan1] 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        Fc1/0/1 
  0x030000/8         STATIC     10           0        Fc1/0/2 
  0xfffc02/24        DIRECT     0            0        InLoop0 
  0xfffffa/24        DIRECT     0            0        InLoop0 
  0xfffffc/24        DIRECT     0            0        InLoop0 
  0xfffffd/24        DIRECT     0            0        InLoop0 
# Display the FC routing table in VSAN 1 on Switch C. 
[SwitchC-vsan1] display fc routing-table vsan 1 
Routing Table: VSAN 1 
  Destinations : 6          Routes : 6