Lab 2
Lab 2
Devices:
IP Configuration
On PCs:
no ip http server
no ip http secure-server
no cdp run
no ip redirects тус бүрд тайлбарлана уу
no ip unreachables
no ip proxy-arp
On Router (SecureR1):
conf t
hostname SecureR1
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
conf t
username admin secret Cyber@123
service password-encryption Тайлбарлаж бичнэ үү
banner motd ^AUTHORIZED ACCESS ONLY!^
line console 0
password c0nsole
login local Тайлбарлаж бичнэ үү
exec-timeout 5 0
logging synchronous
line vty 0 4
login local
transport input ssh
access-class 10 in
Тайлбарлаж бичнэ үү
crypto key generate rsa
1024
ip ssh version 2
enable
conf t
interface FastEthernet0/1
switchport mode access
switchport port-security Тайлбарлаж бичнэ үү
switchport port-security maximum 1
switchport port-security violation shutdown
switchport port-security mac-address sticky
exit
Testing Steps
Test Action Expected Result
SSH from PC-Admin ssh -l admin Success
192.168.1.1
SSH from PC-Attacker ssh -l admin Denied (access-class 10)
192.168.1.1
Ping from PC-Admin or ping 192.168.1.1 Fails (ICMP blocked by ACL 100)
Attacker
Switch port security Move PC-Attacker to Port shuts down
Fa0/1
Banner MOTD Press Enter in console or Shows "AUTHORIZED ACCESS
SSH ONLY!"