Chapter 6. Manage / Configure the Switch
55
20 port command
This command can be used to setup monitor function and security function on the interface port(s).
(config-if)# port ?
monitor Monitors another interface
security Specifies port security
port monitor ethernet 1/x rx command is used to add Port x to the monitored port list. All the receive traffic from
monited ports will be copied to the interface port(s). “x” is the monitored port number. And no port monitor
ethernet 1/x rx command will remove Port x from monitored port list.
For example, “port monitor ethernet 1/2 rx” command will add Port 2 to the monitored port list, and receive traffic to
Port 2 will be copied to the interface port(s). If current setup interface port is Port 5, Port 5 will be the monitoring
port.
port security action command will set the interface port(s) to “accept” mode. In “accept” mode, only devices/PC
with static Mac addresses assigned on the interface port(s) can access network through the interface port(s). Other
devices/PC will be rejected.
port security max-mac-count x command is used to set the maximum Mac address number allowed on the interface
port(s). “x” is the maximum number and its valid value is 0-8192. For example, x=5 will allow up to five network
devices / PC access network through the interface port(s). And the port security will be set to this operation mode
with this command.
no port security command can be used to disable the security function on the interface port(s).
21 port-vlan command
This command is used to assign the interface port(s) to a Port-based VLAN, and set the name(description) for the
Port-based VLAN.
port-vlan x yyy command will assign the interface port(s) to a Port-based VLAN, and set the name(description) to
the Port-based VLAN. “x” is the index of the Port-based VLAN. “yyy” is the name(description) for it.