close
switch>en
switch#conf t
switch(config)# interface fastethernet0/1 ==>設定interface,也可以設定range
switch(config-if)# switchport mode access ==>將這個port設成access port
switch(config-if)# switchport port-security ==>啟用 port-security
switch(config-if)# switchport port-security maximum 1 ==>一個port只能允許一台電腦
switch(config-if)# switchport port-security violation shutdown ==>違反規定者即shutdown
switch(config-if)# switchport port-security mac-address sticky ==>自動學習mac,我們也可以看動輸入。
全站熱搜