Creating and removing port groups
You must create a port group with a unique ID before adding N_Ports to the group or enabling Port Grouping (PG) policy modes. Removing a port group removes all N_Ports, mapped VF_Ports, and associated PG modes.
Access Gateway must be enabled for the pg command to succeed.
When you enable Access Gateway mode, all ports belong to port group 0 (pg0). You can move ports to a separate port group by first creating a port group with a unique ID, and then adding N_Ports to that group. All VF_Ports mapped to added N_Ports also become members of the new group. Removing a port group removes all N_Ports, mapped VF_Ports, and associated PG modes.
Use the pg pgid command to configure a port group with a unique ID (pgid). The pgid is a number that cannot exceed the number of N_Ports allocated for the switch model, minus 1 for default pg 0. Therefore, for a VDX with 16 N_Ports, a valid pgid would be from 1 through 15. Once configured, you can access the port group for configuration tasks, such as adding and removing N_Ports, enabling port group modes, and renaming the group. Use the no pg pgid command to remove a port group. You enter these commands while in Access Gateway (ag) configuration mode.
configure command to enter global configuration mode.
id command to enter RBridge ID mode for the specific switch.
switch(config)# rbridge-id 3
ag command to enter Access Gateway configuration mode.
Perform one of the following steps:
- To create a port group, enter the
switch(config-rbridge-id-3-ag)# pg 1
- To remove a port group, enter the
switch(config-rbridge-id-3-ag)# no pg 1
- To create a port group, enter the pg pgid command.
- Verify that the port group was created using the show ag pg pgid rbridge-id rbridge-id command from privileged EXEC configuration mode. Refer to Displaying port grouping information for details.