
Chapter 5 | CLI – Layer 2 |
|
|
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> {enabledisable}
Example:
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>
value | Number between 1 and 3071, identifying the VLAN. |
mod_num/ | The module number/the port number. |
port_num |
|
Example:
To set VLAN 850 to include ports 4 through 7 on module 3.
VLAN 850 modified.
VLAN Mod/Ports
----
850
96 |