Chapter 5 CLI – Layer 2
96 P332G-ML User’s Guide
Note: If you wish to define a name which includes spaces, you must enclose the
entire name in quotation marks, e.g. "new york".
Set port trap Command
Use the set port trap command to enable/disable generic SNMP uplink/
downlink traps from a port.
The syntax for this command is:
set port trap <mod_num>/<port_num> {enable|disable}
Example:
P330-N# set port trap 1/2 enable
Port 1/2 up/down trap enabled.
Set port vlan Command
Use the set port vlan command to set the Port’s VLAN ID (PVID). The VLAN
number must be within the range 1 to 3071.
The syntax for this command is:
set port vlan <value> <mod_num>/<port_num>
Example:
To set VLAN 850 to include ports 4 through 7 on module 3.
P330-N# set port vlan 850 3/4-7
VLAN 850 modified.
VLAN Mod/Ports
---- -----------------------
850 3/4-7
value Number between 1 and 3071, identifying the VLAN.
mod_num/
port_num
The module number/the port number.