Configuring Switchport Port Security
show ip int brief
!shows the details about the ports on our switch
conf t
interface fa0/1
switchport mode access
!This command hardcodes the port to be access port and only hosts can connect to it.
switchport port-security
!enables port security on this port
switchport port-security maximum 1
!This is the default and means to accept only one mac address on this port.
switchport port-security mac-address 00:11:22:33:44:55
!accept only this mac address on this port
OR
switchport port-security mac-address sticky
!means that stick whatever mac address is connected with you.
switchport port-security violation Protect|Restrict|shudown
Protect: ignore traffic from the violating mac address and do not show the log messages.
Restrict: ignore the traffic and show me the log message on the screen
shutdown: This is the default and means if some one is violating the rule so shutdown the port automati
cally.
conf t
interface range fa0/1 -22
!This command takes you inside all the above mentioned 22 ports.
show port-security
!shows the port security on all the interfaces.
show port-security int fa0/7
!shows the port secuirty information about fa0/7
---------------------------------------------
setting DUPLEX and speed on your Cisco switch
---------------------------------------------
int fa0/1
duplex half|full|auto
!default is auto
int fa0/1
speed 10|100|auto
!default is auto
For initial configuration of Router, Switch or AP click
initial configuration of Router, Switch or AP
No comments:
Post a Comment