H3C Technologies H3C S10500 Series Switches User Manual

Page 103

Advertising
background image

92

# Configure the switch to operate in FCF mode.

<SwitchA> system-view

[SwitchA] fcoe-mode fcf

# Create zone alias Alias1.

[SwitchA] vsan 1

[SwitchA-vsan1] zone-alias name Alias1

# Add pWWN 22:33:44:55:66:77:88:99 (Disk B) and FC ID 020004 (Disk C) as its target members.

[SwitchA-vsan1-zone-alias-Alias1] member pwwn 22:33:44:55:66:77:88:99 target

[SwitchA-vsan1-zone-alias-Alias1] member fcid 020004 target

[SwitchA-vsan1-zone-alias-Alias1] quit

# Create the zone Zone1, and specify FC ID 010001 as its member.

[SwitchA-vsan1] zone name Zone1

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

[SwitchA-vsan1-zone-Zone1] quit

# Create the zone Zone2, and enable the Pairwise feature for Zone2.

[SwitchA-vsan1] zone name Zone2

[SwitchA-vsan1-zone-Zone2] pairwise-zoning enable

# Specify FC ID 010002 and pWWN 11:22:33:44:55:66:77:88 as its initiator member and target
member, respectively.

[SwitchA-vsan1-zone-Zone2] member fcid 010002 initiator

[SwitchA-vsan1-zone-Zone2] member pwwn 11:22:33:44:55:66:77:88 target

# Add the zone alias Alias1 to Zone2 as a member.

[SwitchA-vsan1-zone-Zone2] member zone-alias Alias1

[SwitchA-vsan1-zone-Zone2] quit

# Create the zone Zone3, and enable the Pairwise feature for Zone3.

[SwitchA-vsan1] zone name Zone3

[SwitchA-vsan1-zone-Zone3] pairwise-zoning enable

# Specify FC ID 010003 as an initiator member of Zone3.

[SwitchA-vsan1-zone-Zone3] member fcid 010003 initiator

# Add the zone alias Alias1 to Zone3 as a member.

[SwitchA-vsan1-zone-Zone3] member zone-alias Alias1

[SwitchA-vsan1-zone-Zone3] quit

# Create zone set Zoneset 1 and add Zones 1, 2, and 3 as its members.

[SwitchA-vsan1] zoneset name Zoneset1

[SwitchA-vsan1-zoneset-Zoneset1] member Zone1

[SwitchA-vsan1-zoneset-Zoneset1] member Zone2

[SwitchA-vsan1-zoneset-Zoneset1] member Zone3

[SwitchA-vsan1-zoneset-Zoneset1] quit

# Configure the zone distribution and merge type as complete.

[SwitchA-vsan1] zoneset distribute full

# Activate a zone set as the active zone set and distribute it to the entire fabric.

[SwitchA-vsan1] zoneset activate name Zoneset1

Advertising