Nokia ESB26 User Manual page 58

Gigabit ethernet switch
Table of Contents

Advertisement

6.
device-name(config-if 1/1/4)#interface 1/1/4
device-name(config-if 1/1/8)#port security action shutdown
device-name(config-if 1/1/8)#port security max-mac-count 10
The configured settings are displayed by the show command in Privileged mode as follows:
device-name#show port security
|port num
|action
|------------+------------+----------------+-----------------|
|1/1/2
|trap
|1/1/3
|shutdown
|1/1/4
|trap
|1/1/8
|shutdown
2. The following example sets the maximum number of addresses to 3. The system is
allowed to learn up to 3 MAC addresses and to send SNMP traps on in the event of over-
learning.
First, configure the SNMP trap host to receive traps (See the SNMP
Server Configuration chapter).
device-name(config)#snmp-server group Gr v1 read none write none notify
viewAll_XXX
device-name(config)#snmp-server user public group Gr v1
device-name(config)#snmp-server notify NOTIFY-NAME tag1
device-name(config)# snmp-server target-param MyParam public v1
device-name(config)#snmp-server target-addr MyHost 9.0.0.0 162 MyParam tag1
NOTE
The snmp-server notify command is repeated for each trap type (Refer to the Configuring
and Displaying the SNMP Server Settings section for details.). The trap type is represented
by the NOTIFY-NAME character string and a tag (that has the same name as the notify
name).
Next, configure the port to learn a maximum of 3 MAC addresses.
device-name(config)#interface 1/1/2
device-name(config-if 1/1/2)#port security max-mac-count 3
Now, return to Config mode and define 3 MAC addresses to be learned:
device-name(config)#mac-address-table secure 00:02:4b:82:60:e2 interface 1/1/2 vlan 2
device-name(config)#mac-address-table secure 00:02:55:58:0d:8c interface 1/1/2 vlan 2
device-name(config)#mac-address-table secure 00:02:55:98:52:f4 interface 1/1/2 vlan 2
In Privileged mode, check that the MAC addresses were learned.
device-name#show mac-address-table
The screen should display the settings for interface 1/1/2 as follows:
+==========+====================+=========+===========+==========
|
vid
|
mac
+-----------+-------------------+---------+-----------+----------
|
0000
|
00:a0:12:07:13:29|
|
0001
|
00:a0:12:07:13:29|
|
0002
|
00:02:4b:82:60:e2|
|
0002
|
00:02:55:58:0d:8c|
MN700004 Rev 01
Port Security
|max-mac-count
|current mac-count|
|not-limited
|0
|not-limited
|0
|6
|0
|10
|0
|
port
|
0/0/0
|
0/0/0
|
1/1/2
|
1/1/2
|
47
|
|
|
|
status
| priority
self
| 0
self
| 0
secure
| 0
secure
| 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents