| @@ -3,7 +3,7 @@ Switch#configure terminal | |||
| 3 | 3 | Switch(config)#interface GigabitEthernet 0/1 | |
| 4 | 4 | Switch(config-if)#switchport mode access | |
| 5 | 5 | Switch(config-if)#switchport port-security | |
| 6 | - | Switch(config-if)#switchport port-security maximum 1 | |
| 6 | + | Switch(config-if)#switchport port-security mac-address sticky | |
| 7 | 7 | Switch(config-if)#switchport port-security violation shutdown | |
| 8 | 8 | Switch(config-if)#end | |
| 9 | 9 | Switch#write memory | |
Gabriel / gistfile1.txt
Last active 3 weeks ago
Gabriel revised this gist 3 weeks ago · 9f3c444
1 file changed, 1 insertion, 1 deletion
Gabriel revised this gist 3 weeks ago · 07a28e3
1 file changed, 9 insertions
| @@ -0,0 +1,9 @@ | |||
| 1 | + | Switch>enable | |
| 2 | + | Switch#configure terminal | |
| 3 | + | Switch(config)#interface GigabitEthernet 0/1 | |
| 4 | + | Switch(config-if)#switchport mode access | |
| 5 | + | Switch(config-if)#switchport port-security | |
| 6 | + | Switch(config-if)#switchport port-security maximum 1 | |
| 7 | + | Switch(config-if)#switchport port-security violation shutdown | |
| 8 | + | Switch(config-if)#end | |
| 9 | + | Switch#write memory | |