46
[SwitchA-Fc1/0/4] port trunk vsan 10 20
[SwitchA-Fc1/0/4] quit
# Enable FCoE for VLAN 10, and map VLAN 10 to VSAN 10.
[SwitchA] vlan 10
[SwitchA-vlan10] fcoe enable vsan 10
[SwitchA-vlan10] quit
# Enable FCoE for VLAN 20, and map VLAN 20 to VSAN 20.
[SwitchA] vlan 20
[SwitchA-vlan20] fcoe enable vsan 20
[SwitchA-vlan20] quit
# Enable FCoE for VLAN 30, and map VLAN 30 to VSAN 1.
[SwitchA] vlan 30
[SwitchA-vlan30] fcoe enable vsan 1
[SwitchA-vlan30] quit
2. Configure Switch B in the same way Switch A is configured. (Details not shown.)
Verifying the configurations
1. Verify the configurations on Switch A by displaying member interfaces of all VSANs.
[SwitchA] display vsan port-member
VSAN 1:
Access Ports:
Trunk Ports:
VSAN 10:
Access Ports:
Fc1/0/1
Trunk Ports:
Fc1/0/4
VSAN 20:
Access Ports:
Fc1/0/2
Trunk Ports:
Fc1/0/4
2. Verify the configurations on Switch B.
The output on Switch B is the same as that on Switch A.
VSAN configuration examples by using VFC interfaces
Network requirements
As shown in Figure 23, configure the SAN to meet the following requirements:
• Server A can read and write only the data of Disk A and Disk B.
• Server B can read and write only the data of Disk C.