Configuration Guide Port-based Flow Control Configuration
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)# interface gigabitethernet 0/3
Ruijie(config-if)# switchport mode access
Ruijie(config-if)# switchport port-security
Ruijie(config-if)# switchport port-security mac-address 00d0.f800.073c ip-address
192.168.12.202
Ruijie(config-if)# end
The example below describes how to configure a secure address for the
Sticky-MAC-learning-enabled interface gigabitethernet 0/3: 00d0.f800.073c.
Ruijie# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)# interface gigabitethernet 0/3
Ruijie(config-if)# switchport mode access
Ruijie(config-if)# switchport port-security
Ruijie(config-if)# switchport port-security mac-address sticky
Ruijie(config-if)# switchport port-security mac-address sticky 00d0.f800.073c vlan 1
Ruijie(config-if)# end
Configuration of Secure Address Binding on the Secure Port
In the global configuration mode, add secure address binding for secure ports by using the following
commands:
Ruijie(config)# switchport
port-security interface interface-id
binding [mac-address vlan vlan_id]
[ipv4-address]| [ipv6-address]
In the global configuration mode, manually
configure the secure addresss binding on the
port.
In the interface configuration mode, add secure addresses for secure ports by using the following
commands:
Ruijie(config-if)# switchport
port-security binding [mac-address
vlan vlan_id]
[ipv4-address]|[ ipv6-address]
In the interface configuration mode, manually
configure the secure addresss binding on the
port.
The example below describes how to configure a secure address for interface gigabitethernet 0/3 and
bind it with an IP address: 192.168.12.202.
Ruijie# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)# interface gigabitethernet 0/3
Ruijie(config-if)# switchport mode access