Private Group Commands
Use these commands to configure a private group and view the private group configuration.
This section describes commands that are used to configure a private group and view the configuration information of a private group.
You can use a private group to create a group of ports that either can or cannot share traffic with each other in the same VLAN group. The main purpose of a private group is to isolate a group of users from another group of users without using a VLAN.
switchport private-group
M4250
M4350
This command assigns one port or a range of ports to a private group. You specify the private group by either its name or its identifier.
The ingress traffic from a port in a private group can be forwarded to other ports either in the same private group or outside the private group but in the same VLAN.
By default, a port does not belong to any private group. A port cannot be in more than one private group. To change the membership of a port in a private group, first remove the port from the private group.
| Format | switchport private-group [privategroup-name | privategroup-id] |
| Mode | Interface Config |
no switchport private-group
This command removes a port from a private group.
| Format | no switchport private-group [privategroup-name | privategroup-id] |
| Mode | Interface Config |
private-group name
M4250
M4350
This command creates a private group with a name or an identifier. The name string can be up to 24 bytes of non-blank characters. A total number of 192 of private groups is supported. Therefore, the group identifier can be from 1 to 192.
The private-group-id parameter is optional. If you do not specify a group identifier, the identifier is assigned automatically.
The optional mode for the group can be either isolated or community. If the private group is in isolated mode, the member port in the group cannot forward its egress traffic to any other members in the same group. By default, the mode for the private group is community mode, allowing each member port to forward traffic to other members in the same group, but not to members in other groups.
| Format | private-group name privategroup-name [private-group-id] [mode {community | isolated}] |
| Mode | Global Config |
no private-group name
This command removes a private group.
| Format | no private-group name privategroup-name |
| Mode | Global Config |
show private-group
M4250
M4350
This command displays information about a private group. If you do not specify a group name, group identifier, or port, the command displays information about all private groups. To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | show private-group [private-group-name | private-group-id | port unit/slot/port] |
| Mode | Privileged EXEC |
| Term | Description |
|---|---|
| Interface | A valid port number. |
| Port VLANID | The VLAN ID that is associated with the port. |
| Private Group ID | The identifier of the private group (from 1 to 192). |
| Private Group Name | The name of the private group. The name string can be up to 24 bytes of non-blank characters. |
| Private Group Mode | The mode of the private group. The mode can be either isolated or community. |