Mục tiêu thực hành:
- Cấu hình ACL chỉ cho phép máy tính của người quản trị được phép telnet tới R1.
- Khảo sát ACL cho phép telnet tới Cisco Router.
Truy cập vào "Lab 3-3 - Cau hinh ACL chi cho phep IP may tinh admin telnet toi Cisco Router v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình ACL chỉ cho phép máy tính của người quản trị được phép telnet tới R1.
- Cấu hình Telnet không yêu cầu đăng nhập bằng mật khẩu trên Cisco Router.
R1(config)#line vty 0 4R1(config-line)#privilege level 15R1(config-line)#no loginR1(config-line)#transport input telnetR1(config-line)#endR1#
- Cấu hình Telnet trên R1 chỉ cho phép IP 172.16.10.100 của admin được quyền telnet tới.
R1(config)#ip access-list standard TelnetLimitR1(config-std-nacl)#permit 172.16.10.100 0.0.0.0R1(config-std-nacl)#exitR1(config)#
R1(config)#line vty 0 4R1(config-line)#access-class TelnetLimit inR1(config-line)#endR1#
Khảo sát ACL cho phép telnet tới Cisco Router.
- Từ máy tính của admin 172.16.10.100 có thể telnet thành công tới R1.
VPC1> ip 172.16.10.100/24 172.16.10.254Checking for duplicate address...PC1 : 172.16.10.100 255.255.255.0 gateway 172.16.10.254VPC1>
VPC1> ping 172.16.10.254 -P 6 -p 23Connect 23@172.16.10.254 seq=1 ttl=255 time=1.088 msSendData 23@172.16.10.254 seq=1 ttl=255 time=4.244 msClose 23@172.16.10.254 timeout(12.739ms)Connect 23@172.16.10.254 seq=2 ttl=255 time=3.201 msSendData 23@172.16.10.254 seq=2 ttl=255 time=1.061 msClose 23@172.16.10.254 timeout(47.503ms)Connect 23@172.16.10.254 seq=3 ttl=255 time=3.232 msSendData 23@172.16.10.254 seq=3 ttl=255 time=1.059 msClose 23@172.16.10.254 timeout(54.246ms)Connect 23@172.16.10.254 seq=4 ttl=255 time=3.204 msSendData 23@172.16.10.254 seq=4 ttl=255 time=1.084 msClose 23@172.16.10.254 timeout(45.846ms)Connect 23@172.16.10.254 seq=5 ttl=255 time=3.202 msSendData 23@172.16.10.254 seq=5 ttl=255 time=1.070 msClose 23@172.16.10.254 timeout(50.114ms)VPC1>
- Các máy tính còn lại không thể telnet tới R1.
VPC1> ip 172.16.10.1/24 172.16.10.254Checking for duplicate address...PC1 : 172.16.10.1 255.255.255.0 gateway 172.16.10.254VPC1>
VPC1> ping 172.16.10.254 -P 6 -p 23Connect 23@172.16.10.254 RST returnedConnect 23@172.16.10.254 RST returnedConnect 23@172.16.10.254 RST returnedConnect 23@172.16.10.254 RST returnedConnect 23@172.16.10.254 RST returnedVPC1>
Tham khảo các videos lý thuyết Hướng dẫn thực hành CCNA R&S để biết thêm thông tin chi tiết.
0 comments