Mục tiêu thực hành:
- Cấu hình ACL trên R1 chỉ cho phép Server ping tới Staff Subnet, các thiết bị bên trong Staff Subnet không thể ping được tới Server.
- Cấu hình ACL trên R1 chỉ cho phép Guest LAN truy cập Internet, không được phép trao đổi dữ liệu với bất kỳ thiết bị nào bên trong hạ tầng mạng nội bộ.
Truy cập vào "Lab 3-3 - Cau hinh ICMP Unidirectional ACL v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình ACL chỉ cho phép Server ping tới Staff Subnet, các thiết bị bên trong Staff Subnet không thể ping được tới Server.
- Cấu hình ACL trên R1.
ip access-list extended UnidirectionalIcmpStaffdeny icmp 172.16.10.0 0.0.0.255 host 172.16.1.1 echopermit icmp 172.16.10.0 0.0.0.255 host 172.16.1.1 echo-replypermit ip 172.16.10.0 0.0.0.255 host 172.16.1.1permit ip 172.16.10.0 0.0.0.255 anyexit
interface e0/0.10ip access-group UnidirectionalIcmpStaff inexit
- Thực hiện quá trình ping từ PC1 tới Server.
PC1> 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.254PC1>
PC1> ping 172.16.1.1*172.16.10.254 icmp_seq=1 ttl=255 time=0.259 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.10.254 icmp_seq=2 ttl=255 time=0.335 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.10.254 icmp_seq=3 ttl=255 time=0.300 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.10.254 icmp_seq=4 ttl=255 time=0.300 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.10.254 icmp_seq=5 ttl=255 time=0.388 ms (ICMP type:3, code:13, Communication administratively prohibited)PC1>
- Thực hiện quá trình ping từ Server tới PC1.
Server> ip 172.16.1.1/24 172.16.1.254Checking for duplicate address...PC1 : 172.16.1.1 255.255.255.0 gateway 172.16.1.254Server>
Server> ping 172.16.10.184 bytes from 172.16.10.1 icmp_seq=1 ttl=63 time=1.423 ms84 bytes from 172.16.10.1 icmp_seq=2 ttl=63 time=0.488 ms84 bytes from 172.16.10.1 icmp_seq=3 ttl=63 time=0.429 ms84 bytes from 172.16.10.1 icmp_seq=4 ttl=63 time=0.409 ms84 bytes from 172.16.10.1 icmp_seq=5 ttl=63 time=0.432 msServer>
Cấu hình ACL trên R1 chỉ cho phép Guest LAN truy cập Internet, không được phép trao đổi dữ liệu với bất kỳ thiết bị nào bên trong hạ tầng mạng nội bộ.
ip access-list extended GuestLimitdeny ip 172.16.20.0 0.0.0.255 10.0.0.0 0.255.255.255deny ip 172.16.20.0 0.0.0.255 172.16.0.0 0.31.255.255deny ip 172.16.20.0 0.0.0.255 192.168.0.0 0.0.255.255permit ip 172.16.20.0 0.0.0.255 anyexit
interface e0/0.20ip access-group GuestLimit inexit
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