Security
Security
Port Security:
Note: All PCs must be configured by IP Address Like 10.10.10.3/10.10.10.4
cse(config)#interface fastethernet 0/2
cse(config-if)#switchport mode access
cse(config-if)#switchport port-security (This line must be separate inserted to active security)
cse(config-if)#switchport port-security mac-address 0004.9ACB.01C6 (mac-address sticky = auto MAC Address in first sending packet)
cse(config-if)#switchport port-security maximum 1
cse(config-if)#switchport port-security violation shutdown
Up all Ports:
cse(config-if-range)#int range fa0/5 - 24
cse(config-if-range)#no shutdown
Router-1:
(config)#router rip
(config-router)network 200.20.20.0
(config-router)network 172.16.1.0
SSH Configuration:
(config)#line vty 0 4
(config-line)#password 123
Router(config)#service password-encryption
Permit One PC:
Router(config)#access-list 10 permit host 192.168.1.2
Router(config)#line vty 0 4
Router(config-line)#access-class 10 in
Permit on a Network:
(config)#line vty 0 4
(config-line)#password 123
Router(config)#access-list 10 permit 10.10.10.0 0.0.0.255
Router(config)#line vty 0 4
Router(config-line)#access-class 10 in
Define ACL on Port:
Router(config)#access-list 10 deny host 192.168.1.3
Router(config)#access-list 10 permit any
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip access-group 10 out
Extended ACL
Extended ACL - Configuration
Setup DNS Server:
Deny Single Host to a PC (not to use):
Router(config)#access-list 100 deny ip 10.10.10.2 0.0.0.0 10.10.20.2 0.0.0.0
Router(config)#access-list 100 permit ip any any
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip access-group 100 in
[default=all services like vty and others, group tacacs =maintain by tacacs server, local=if tacacs
doesn’t work then router will work locally)]
In Server:
Service AAA >
Client Name: cse
Clint IP: 10.10.10.1
Secret cse
Server Type: tacacs
On/Off if necessary
Username: abc
Password: abc123
Username: xyz
Password: xyz123
From PC:
telnet 10.10.10.1
[default=all services like vty and others, group tacacs =maintain by tacacs server, local=if tacacs
doesn’t work then router will work locally)]
In Server:
Service AAA >
Client Name: BBA
Clint IP: 10.10.30.1
Secret bba On/Off if necessary
Server Type: tacacs
Username: abc
Password: abc123
Username: xyz
Password: xyz123
From PC:
telnet 10.10.30.1