Mục tiêu thực hiện:
- Thiết lập ACL trên CoreSwitch tương ứng với GuestVlan.
- Thiết lập ACL trên CoreSwitch tương ứng với StaffVlan.
- Thiết lập ACL trên CoreSwitch tương ứng với ContractorVlan.
Nội dung triển khai:
Thiết lập ACL trên CoreSwitch tương ứng với GuestVlan.
- Thiết lập ACL trên CoreSwitch sao cho GuestVlan:
+ Truy cập tới ServerInstall 172.16.10.5 chứa các Files cài đặt.
+ Truy cập tới các Printers thuộc lớp mạng 172.16.10.32/27.
+ Cấm truy cập tới tất cả các InternalLAN còn lại.
+ Truy cập Internet như thông thường.
- Áp ACL trên Interface Vlan 40 (GuestVlan).
interface Vlan40ip address 172.16.10.129 255.255.255.224ip access-group ACLvlan40 inexit
- Định nghĩa ACL tương ứng với GuestVlan.
ip access-list extended ACLvlan40remark Allow VL40-to-SourceInstall10 permit ip 172.16.10.128 0.0.0.31 172.16.10.5 0.0.0.0remark Allow VL40-to-Printers11 permit ip 172.16.10.128 0.0.0.31 172.16.10.32 0.0.0.31remark Deny VL40-to-PrivateRangeIP21 deny ip 172.16.10.128 0.0.0.31 10.0.0.0 0.255.255.25522 deny ip 172.16.10.128 0.0.0.31 172.16.0.0 0.31.255.25523 deny ip 172.16.10.128 0.0.0.31 192.168.0.0 0.0.255.255remark Allow VL40-to-Internet30 permit ip 172.16.10.128 0.0.0.31 anyexit
Thiết lập ACL trên CoreSwitch tương ứng với StaffVlan.
- Thiết lập ACL trên CoreSwitch sao cho StaffVlan:
+ StaffVlan có RangeIP 172.16.20.2-172.16.20.10 được phép truy cập tới ManagementNetwork.
+ StaffVlan với các IP còn lại không được phép truy cập tới ManagementNetwork.
+ Được phép truy cập tới ServerNetwork, PrinterNetwork, ContractorNetwork và Internet.
interface vlan 50ip access-group ACLvlan50 inexit
ip access-list extended ACLvlan50remark Allow VL50-ItIpRange-to-Management11 permit ip 172.16.20.2 0.0.0.0 192.168.0.0 0.0.0.3112 permit ip 172.16.20.3 0.0.0.0 192.168.0.0 0.0.0.3113 permit ip 172.16.20.4 0.0.0.0 192.168.0.0 0.0.0.3114 permit ip 172.16.20.5 0.0.0.0 192.168.0.0 0.0.0.3115 permit ip 172.16.20.6 0.0.0.0 192.168.0.0 0.0.0.3116 permit ip 172.16.20.7 0.0.0.0 192.168.0.0 0.0.0.3117 permit ip 172.16.20.8 0.0.0.0 192.168.0.0 0.0.0.3118 permit ip 172.16.20.9 0.0.0.0 192.168.0.0 0.0.0.3119 permit ip 172.16.20.10 0.0.0.0 192.168.0.0 0.0.0.31remark Deny VL50-to-Management20 deny ip 172.16.20.0 0.0.0.255 192.168.0.0 0.0.0.31remark Allow VL50-to-Internet-and-OthersNetwork30 permit ip 172.16.20.0 0.0.0.255 anyexit
Thiết lập ACL trên CoreSwitch tương ứng với ContractorVlan.
- Thiết lập ACL trên CoreSwitch sao cho ContractorVlan:
+ Được phép truy cập tới PrinterNetwork.
+ Được phép truy cập tới StaffNetwork.
+ Được phép truy cập tới Server chứa Files cài đặt.
+ Cấm truy cập tới ManagementNetwork, ServerNetwork.
+ Được phép truy cập Internet.
interface vlan 30ip access-group ACLvlan30 inexit
ip access-list extended ACLvlan30remark Allow VL30-to-Printer10 permit ip 172.16.10.64 0.0.0.31 172.16.10.32 0.0.0.31remark Allow VL30-to-Staff20 permit ip 172.16.10.64 0.0.0.31 172.16.20.0 0.0.0.255remark Allow VL30-to-SourceInstall30 permit ip 172.16.10.64 0.0.0.31 172.16.10.5 0.0.0.0remark Deny VL30-to-PrivateRangeIP41 deny ip 172.16.10.64 0.0.0.31 10.0.0.0 0.255.255.25542 deny ip 172.16.10.64 0.0.0.31 172.16.0.0 0.31.255.25543 deny ip 172.16.10.64 0.0.0.31 192.168.0.0 0.0.255.255remark Allow VL50-to-Internet50 permit ip 172.16.20.0 0.0.0.255 anyexit
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