##############################
#band mac to port
enable
config t
mac access-list extended jt1
#del --- mac access-list extended jt1
permit host xxxx.xxxx.xxxx any
permit any host xxxx.xxxx.xxxx
in fa0/11
mac access-group jt1 in
switchport mode access
switchport port-security maximum 3
switchport port-security violation [protect | restrict | shutdown]
switchport port-security
no shutdown
end
copy running-config startup-config
#######################
#configure telnet
config t
username xxx password xxx
in vlan1
ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx #ip subnet
ip default-gateway xxx.xxx.xxx.xxx #ip
no shutdown
line vty 0 15
password xxxxx
login local
end
copy running-config startup-config
#band mac to port
enable
config t
mac access-list extended jt1
#del --- mac access-list extended jt1
permit host xxxx.xxxx.xxxx any
permit any host xxxx.xxxx.xxxx
in fa0/11
mac access-group jt1 in
switchport mode access
switchport port-security maximum 3
switchport port-security violation [protect | restrict | shutdown]
switchport port-security
no shutdown
end
copy running-config startup-config
#######################
#configure telnet
config t
username xxx password xxx
in vlan1
ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx #ip subnet
ip default-gateway xxx.xxx.xxx.xxx #ip
no shutdown
line vty 0 15
password xxxxx
login local
end
copy running-config startup-config