Situatie
If you want to add port-security on the port, you will have to use the following commands:
Solutie
- configure terminal – to enter the exec mode of the switch
- configure interface x – where x is the interface you want to configure
- swichport port security
- swichport port-security maximum y – where y is the maximum number of MACs you will allow
- swichport port-security restrict – if you only want to not have access to the Internet, but not to put the port in shutdown or swichport port-security shutdown if you want to put your port in shutdown
- swichport port-security mac-address sticky – to remain MACs saved on the port
- write – to save the changes made.
Leave A Comment?