Brocade switch as transparent gateway

Use the access gateway mode if you have other vendor switch and don't want to use compatibility mode on all SAN switch. This will virtualized the brocade SAN switch, and all ISL to other SAN switches have to be configured as Nport (NPIV).

First disable the switch, no more activity on ports:

switch:admin> switchdisable
switch:admin> ag --modeenable

The switch automatically reboots and comes back online in AG mode using a factory default port mapping. For more information on AG default port mapping, see Table 5on page 12.

Enter the ag –modeshowcommand to verify that AG mode is enabled.

switch:admin> ag --modeshow
Access Gateway mode is enabled.

Enter the ag –mapshowcommand to display all the mapped ports. The ag –mapshowcommand shows all enabled N_Ports,even if those N_Ports are not connected.

switch:admin> ag --mapshow
N_Port Configured_F_Ports Current_F_Ports Failover Failback PG_ID PG_Name
----------------------------------------------------------------------------- 
0   4;5;6 4;5;6   1 0 2 SecondFabric
1   7;8;9 7;8;9   0 1 0 pg0
2   10;11 10;11 1 0 2 SecondFabric
3   12;13 12;13   0 1 0 pg0
-----------------------------------------------------------------------------

Enter the switchShowcommand to display the status of all ports. Note that the following output is an example only and may not exactly reflect output from the current Fabric OS.

switch:admin> switchshow
switchName: switch
switchType: 43.2
switchState: Online
switchMode: Access Gateway Mode

Change gateway mapping: Link F-ports “6;7” to an N-port “13”

switch:admin> ag --mapadd 13 "6;7"
F-Port to N-Port mapping has been updated successfully
FLEX-A1-BLUE:admin> switchdisable
FLEX-A1-BLUE:admin> 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
The following configurations need to be disabled before enabling the AG mode in the switch:
ERROR: Authentication policies are enabled in the switch.
Please disable the Authentication policies using the authutil --policy -sw(switch)/-dev(device)

FLEX-A1-BLUE:admin> authutil --help
Usage authutil:
--set    -a <fcap|dhchap|all>  set authentication type.
--set    -g <0..4|'*'>         set DH group value.
--set    -h <sha256|sha1|md5|sha1,md5|all>     set HASH type.
--show                         show authentication configuration value.
--policy -sw   <off|passive|active|on>  set switch authentication policy.
--policy -dev  <off|passive|on>            set device authentication policy.
--authinit <[<SlotNumber>/]<PortNumber>,...|allE>initiates the authentication on specified ports or all E-ports

FLEX-A1-BLUE:admin> authutil --show
AUTH TYPE     HASH TYPE     GROUP TYPE
--------------------------------------
fcap,dhchap     sha256,sha1,md5 0,1,2,3,4

Switch Authentication Policy: PASSIVE
Device Authentication Policy: OFF
FLEX-A1-BLUE:admin> authutil --policy -sw off
Warning: Activating the authentication policy requires either DH-CHAP secrets or PKI certificates depending on the protocol selected. Otherwise, ISLs will be segmented during next E-port bring-up.
ARE YOU SURE  (yes, y, no, n): [no] y
Auth Policy is set to OFF

FLEX-A1-BLUE:admin> 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] yes


After reboot:



FLEX-A1-BLUE:admin> switchshow
switchName:     FLEX-A1-BLUE
switchState:    Online
switchMode:     Access Gateway Mode


Index Port Address  Media Speed   State       Proto
==================================================
   0   0   790000   id    N16     Online      FC  N-Port  10:00:d8:1f:cc:xx:xx:xx 0x6f0c00 (AoQ)
   1   1   790100   cu    N16     Online      FC  F-Port  10:00:00:90:fa:xx:xx:xx 0x6f0c01
  13  13   790d00   cu    N16     Online      FC  F-Port  10:00:00:90:fa:xx:xx:xx 0x6f0d04
  14  14   790e00   cu    N16     Online      FC  F-Port  10:00:00:90:fa:xx:xx:xx 0x6f0c09
  29  29   791d00   id    N16     Online      FC  N-Port  10:00:d8:1f:cc:xx:xx:xx 0x6f0d00 (AoQ)
FLEX-A1-BLUE:admin> ag --modeshow
Access Gateway mode is enabled.
FLEX-A1-BLUE:admin> fabricshow
Error: This command is not supported in AG mode
FLEX-A1-BLUE:admin>

FLEX-A1-BLUE:admin> ag --mapshow
N_Port  Configured_F_Ports      Static_F_Ports  Current_F_Ports Failover Failback PG_ID PG_Name
------------------------------------------------------------------------------------------------
   0    1;21                    None            1;3;4;5;6;       1       1         0    pg0
                                                7;8;10;12;14
  29    2;22                    None            2;9;11;13        1       1         0    pg0
  30    3;23                    None            None             1       1         0    pg0
  31    4;24                    None            None             1       1         0    pg0
  32    5;25                    None            None             1       1         0    pg0
  33    6;26                    None            None             1       1         0    pg0
  34    7;27                    None            None             1       1         0    pg0
  35    8;28                    None            None             1       1         0    pg0
  36    9                       None            None             1       1         0    pg0
  37    10                      None            None             1       1         0    pg0
  38    11                      None            None             1       1         0    pg0
  39    12                      None            None             1       1         0    pg0
  40    13                      None            None             1       1         0    pg0
  41    14                      None            None             1       1         0    pg0
  42    15                      None            None             1       1         0    pg0
  43    16                      None            None             1       1         0    pg0
  44    17                      None            None             1       1         0    pg0
  45    18                      None            None             1       1         0    pg0
  46    19                      None            None             1       1         0    pg0
  47    20                      None            None             1       1         0    pg0
------------------------------------------------------------------------------------------------


FLEX-A1-BLUE:admin> ag --mapdel 40 13
F_Port to N_Port mapping has been updated successfully
FLEX-A1-BLUE:admin> ag --mapdel 39 12
FLEX-A1-BLUE:admin> ag --mapadd 0 "3;4;5;6;7"
F_Port to N_Port mapping has been updated successfully


FLEX-A1-BLUE:admin> ag --mapshow
N_Port  Configured_F_Ports      Static_F_Ports  Current_F_Ports Failover Failback PG_ID PG_Name
------------------------------------------------------------------------------------------------
   0    1;2;3;4;5;              None            1;2;3;4;5;       1       1         0    pg0
        6;7                                     6;7
  29    8;9;10;11;12;           None            8;9;10;11;12;    1       1         0    pg0
        13;14                                   13;14

		
		
sanb01:FID128:admin> switchshow
switchName:     sanb01
....
  12  12   6f0c00   id    N16     Online      FC  F-Port  1 N Port + 7 NPIV public (AoQ)
  13  13   6f0d00   id    N16     Online      FC  F-Port  1 N Port + 7 NPIV public (AoQ)