Chapter 36 Port-Based Flow Control Configuration DGS-3610 Series Configuration Guide
DGS-3610(config-if)# switchport
port-security mac-address mac-address
[ip-address ip-address]
Manually configure the security address on the
interface.
ip-address (optional): IP address bound up with the
security address.
In the interface configuration mode, you can execute the command no switchport
port-security mac-address mac-address to delete the security address of this interface.
The example below describes how to configure a security address for interface
gigabitethernet 0/3: 00d0.f800.073c and bind it with an IP address: 192.168.12.202.
DGS-3610# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
DGS-3610(config)# interface gigabitethernet 0/3
DGS-3610(config-if)# switchport mode access
DGS-3610(config-if)# switchport port-security
DGS-3610(config-if)# switchport port-security mac-address 00d0.f800.073c ip-address
192.168.12.202
DGS-3610(config-if)# end
36.3.2.5 Configuration of Aging Time for Security
addresses
You can configure the aging time for all the security addresses on an interface. To enable
this function, you need to set the maximum number of security addresses. In this way, you
can make the device automatically add or delete the security addresses on the interface.
In the interface configuration mode, configure the aging time for security addresses with the
following command:
DGS-3610(config-if)#switchport
port-security aging{static | time time }
Static: When this keyword is added, the aging time
will be applied to both the manually configured
address pool and automatically learnt addresses.
Otherwise, it is applied only to the automatically
learnt addresses.
Time: indicates the aging time for the security
address on this port. Its range is 0-1440 and unit is
Minute. If you set it to 0, the aging function actually is
disabled. The aging time is the absolute time, which
means that an address will be deleted automatically
after the Time specified expires after the address
becomes the security address of the port. The
default value of Time is 0.