Configuring a Brocade switch in access gateway mode

What is access gateway mode?

Brocade switches in access gateway mode act as an extension of the existing fabric, they have no zoning configuration on themselves and all traffic is transferred over uplink ports to a upstream switch containing the zoning information. This is a way to add more ports to your fabric without the complexity of additional switches containing zone configurations. When you enable access gate way mode a number of ports will automatically be designated as N ports and the rest F ports. You will cable the hosts into the F ports and the N ports will be connected to the upstream switch.

Checking upstream switch

Before you start you need to make sure the upstream switch to the access gateway (AG) switch will connect to has NPIV enabled.

1 Check NPIV is enabled.

portcfgshow

2 If necessary enable for NPIV using

portcfgnpivport

Configuring access gateway mode

To put the switch in access gateway mode follow these steps. It is important to note that all zoning information on the switch will be lost.

1 Backup the current config of the Brocade switch

2 Check the switch is in native mode = 0. You can check this by running switchshow and checking the mode

To change it

interopmode 0

3 Disable the switch

switchdisable

4 Enable access gateway mode

ag --modeenable
WARNING: Access Gateway mode changes the standard behavior of the switch. Please check Access Gateway Administrator's Guide before proceeding.

Enabling agmode will remove all the configuration data on the switch

including zoning configuration, FAWWN configuration and security database. Please backup your

configuration using configupload.

This operation will reboot the switch.

Do you want to continue? (yes, y, no, n): [no] y

5 Check access gateway mode is enabled as expected

ag --modeshow
Access Gateway mode is enabled

6 To see how the automatic port mapping has been configured run

ag --mapshow
N_Port Configured_F_Ports     Static_F_Ports Current_F_Ports Failover Failback PG_ID PG_Name

------------------------------------------------------------------------------------------------

0   15;16                   None           None             1       1         0   pg0

17   1;2                     None           None             1      1         0   pg0

18   9;10                   None           None             1       1         0   pg0

19   3;4                     None           None             1       1         0   pg0

20   11;12                   None           None             1       1         0   pg0

21   5;6                     None           None             1       1         0   pg0

22   13;14                   None           None             1       1         0   pg0

23   7;8                    None           None             1       1         0   pg0

------------------------------------------------------------------------------------------------

Amending Access Gateway POrt Mappings

If you are happy with the default port mapping you are good to go. If not you can amend them as follows

1 Before adding into a new port mapping you must remove a port from its existing mapping

ag --mapdel N_Port “f_port1;f_port”

For example

ag --mapdel 0 "15;16"
F_Port to N_Port mapping has been updated successfully

2 Create the new port mappings

--mapadd n_portnumber f_port1;f_port2

For example

ag --mapadd 17 "1;2;9;10"
WARNING: Mapping F_Port(s) to this N_Port may cause the F_Port(s) to be disabled

Do you want to continue? (yes, y, no, n): [no] y

F_Port to N_Port mapping has been updated successfully

More Brocade content

Moving a Brocade Port Licence

Brocade FC Switch Supportsave

Backing up a Brocade switch

 

 

 

 

Published by

Leave a Reply

Your email address will not be published. Required fields are marked *