Ruijie port security configuration
①Networking requirements
In order to prevent malicious attacks from exhausting the MAC resources of the switch and causing the entire network system to be paralyzed, it is necessary to add security protection to the port
②Operation steps
Ruijie>enable---- à enter privileged mode
Ruijie#config---- à enter the global configuration mode
Ruijie(config)#interface gigabitethernet 0/1------ Enter port 1
Ruijie(config-if-GigabitEthernet 0/1)#switchport port-security---- à enable port binding function
Ruijie(config-if-GigabitEthernet 0/1)#switchport port-security mac-address F48E.38BB.78A7---- à Configure the bound MAC address, after setting, only the device with this address can pass through port 1
Ruijie(config-if-GigabitEthernet 0/1)# switchport port-security maximum 5---- àThe maximum number of secure MAC addresses on the port, the value range is 1~128, the default maximum number of secure MAC addresses on the port is 1, here is set to 5, that is, the maximum number of default secure MAC addresses allowed is 5
Use Show running-config to view the configuration
The MAC address can be opened by Windows key + R to open the system to run
Enter CMD to enter the console
Then enter ipconfig /all to view the machine information
The physical address is the MAC address