Mục tiêu thực hành:
- Cấu hình ACL trên Cisco Router.
- Kiểm tra cấu hình ACL trên Cisco Router.
Truy cập vào "Lab 3-3 - Cau hinh ACL tren Cisco Router v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình ACL trên Cisco Router.
- Cấu hình ACL sao cho lớp mạng Guest chỉ có thể truy cập Internet, không thể trao đổi dữ liệu với bất kì thiết bị nào bên trong hệ thống mạng nội bộ.
R1#configure terminalR1(config)#ip access-list extended GuestLimitR1(config-ext-nacl)#deny ip 172.16.20.0 0.0.0.255 172.16.1.0 0.0.0.255R1(config-ext-nacl)#deny ip 172.16.20.0 0.0.0.255 172.16.10.0 0.0.0.255R1(config-ext-nacl)#permit ip 172.16.20.0 0.0.0.255 anyR1(config-ext-nacl)#exitR1(config)#
R1(config)#interface e0/0.20R1(config-subif)#ip access-group GuestLimit inR1(config-subif)#endR1#
Kiểm tra cấu hình ACL trên Cisco Router.
- Từ VPC2 thuộc mạng Guest không thể gửi lưu lượng tới AppServer.
VPCS> ping 172.16.1.1*172.16.20.254 icmp_seq=1 ttl=255 time=0.430 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.20.254 icmp_seq=2 ttl=255 time=0.365 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.20.254 icmp_seq=3 ttl=255 time=0.342 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.20.254 icmp_seq=4 ttl=255 time=0.357 ms (ICMP type:3, code:13, Communication administratively prohibited)*172.16.20.254 icmp_seq=5 ttl=255 time=0.347 ms (ICMP type:3, code:13, Communication administratively prohibited)VPCS>
VPCS> ping 8.8.4.484 bytes from 8.8.4.4 icmp_seq=1 ttl=115 time=36.584 ms84 bytes from 8.8.4.4 icmp_seq=2 ttl=115 time=31.909 ms84 bytes from 8.8.4.4 icmp_seq=3 ttl=115 time=36.069 ms84 bytes from 8.8.4.4 icmp_seq=4 ttl=115 time=32.966 ms84 bytes from 8.8.4.4 icmp_seq=5 ttl=115 time=30.345 msVPCS>
- Kiểm tra ACL GuestLimit trên Cisco Router.
R1#show ip access-listsExtended IP access list GuestLimit10 deny ip 172.16.20.0 0.0.0.255 172.16.1.0 0.0.0.255 (5 matches)20 deny ip 172.16.20.0 0.0.0.255 172.16.10.0 0.0.0.25530 permit ip 172.16.20.0 0.0.0.255 any (5 matches)Extended IP access list NatTraffic0110 permit ip 172.16.1.0 0.0.0.255 any20 permit ip 172.16.10.0 0.0.0.255 any30 permit ip 172.16.20.0 0.0.0.255 anyExtended IP access list NatTraffic0210 permit ip 172.16.1.0 0.0.0.255 any20 permit ip 172.16.10.0 0.0.0.255 any30 permit ip 172.16.20.0 0.0.0.255 anyR1#
0 comments