CLI Reference Port-based Flow Control Configuration Commands
Interface configuration mode.
1.This example shows how to bind the IP address 192.168.1.100 on the interface
g 0/10:
Ruijie(config)#inter g0/10
Ruijie(config-if)# switchport port-security binding 192.168.1.100
2.This example shows how to bind the IP address 192.168.1.100 and
MAC address 00d0.f800.5555 with vlan id 1 on the interface g 0/10
Ruijie(config)#inter g0/10
Ruijie(config-if)# switchport port-security binding 00d0.f800.5555
vlan 1 192.168.1.100
Show port security settings.
Enable the port-security.
switchport
port-security
binding interface
Configure the secure address binding
in the privileged EXEC mode.
Switchport
port-security
mac-address
Set the static secure address.
switchport
port-security
aging
Set the aging time for secure
address.
switchport port-security binding interface
Use this command to configure secure address binding manually in the privileged EXEC mode through
performing the source IP address plus source MAC address binding or only the source IP address
binding. With this binding configured, only the packets match the binding secure address could enter the
switch, others will be discarded. Use the no form of the command to remove the binding addresses
[no] switchport port-security binding interface interface-id mac-address vlan vlan_id ipv4-address |
ipv6-address