Mục tiêu thực hành:
- Cấu hình NAT Overload (Dual WAN) và chia tải IP chẵn lẻ trên Cisco Router.
- Kiểm tra lưu lượng Internet của các máy tính sử dụng IP lẻ trên R1.
- Kiểm tra lưu lượng Internet của các máy tính sử dụng IP chẵn trên R1.
Truy cập vào "Lab 3-4 - Cau hinh NAT Overload Dual WAN tren Cisco Router v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình NAT Overload (Dual WAN) và chia tải IP chẵn lẻ trên Cisco Router.
- Cấu hình NAT Overload trên R1 sao cho tất cả IP lẻ sẽ sử dụng WAN1 để đi Internet, còn tất cả IP chẵn sẽ sử dụng WAN2.
hostname R1interface e0/1ip address 203.0.1.2 255.255.255.0ip nat outsideno shutdownexitip route 0.0.0.0 0.0.0.0 203.0.1.1interface e0/2ip address 203.0.2.2 255.255.255.0ip nat outsideno shutdownexitip route 0.0.0.0 0.0.0.0 203.0.2.1interface e0/0ip address 172.16.0.254 255.255.255.0ip nat insideno shutdownexitip access-list extended NatTrafficOddIPpermit ip 172.16.0.1 0.0.0.254 anyexitip access-list extended NatTrafficEvenIPpermit ip 172.16.0.0 0.0.0.254 anyexitip nat inside source list NatTrafficOddIP interface e0/1 overloadip nat inside source list NatTrafficEvenIP interface e0/2 overload
Kiểm tra lưu lượng Internet của các máy tính sử dụng IP lẻ trên R1.
- Tất cả các máy tính sử dụng IP lẻ sử dụng WAN1 để truy cập Internet.
VPCS> ip 172.16.0.1/24 172.16.0.254Checking for duplicate address...PC1 : 172.16.0.1 255.255.255.0 gateway 172.16.0.254VPCS>
VPCS> ping 8.8.4.484 bytes from 8.8.4.4 icmp_seq=1 ttl=115 time=33.877 ms84 bytes from 8.8.4.4 icmp_seq=2 ttl=115 time=37.398 ms84 bytes from 8.8.4.4 icmp_seq=3 ttl=115 time=31.953 ms84 bytes from 8.8.4.4 icmp_seq=4 ttl=115 time=33.829 ms84 bytes from 8.8.4.4 icmp_seq=5 ttl=115 time=28.347 msVPCS>
R1#show ip nat translationsPro Inside global Inside local Outside local Outside globalicmp 203.0.1.2:4336 172.16.0.1:4336 8.8.4.4:4336 8.8.4.4:4336icmp 203.0.1.2:4592 172.16.0.1:4592 8.8.4.4:4592 8.8.4.4:4592icmp 203.0.1.2:4848 172.16.0.1:4848 8.8.4.4:4848 8.8.4.4:4848icmp 203.0.1.2:5104 172.16.0.1:5104 8.8.4.4:5104 8.8.4.4:5104icmp 203.0.1.2:5360 172.16.0.1:5360 8.8.4.4:5360 8.8.4.4:5360R1#
Kiểm tra lưu lượng Internet của các máy tính sử dụng IP chẵn trên R1.
- Tất cả các máy tính sử dụng IP chẵn sử dụng WAN2 để truy cập Internet.
VPCS> ip 172.16.0.2/24 172.16.0.254Checking for duplicate address...PC1 : 172.16.0.2 255.255.255.0 gateway 172.16.0.254VPCS>
VPCS> ping 8.8.4.484 bytes from 8.8.4.4 icmp_seq=1 ttl=115 time=29.655 ms84 bytes from 8.8.4.4 icmp_seq=2 ttl=115 time=34.743 ms84 bytes from 8.8.4.4 icmp_seq=3 ttl=115 time=31.311 ms84 bytes from 8.8.4.4 icmp_seq=4 ttl=115 time=32.967 ms84 bytes from 8.8.4.4 icmp_seq=5 ttl=115 time=27.586 msVPCS>
R1#show ip nat translationsPro Inside global Inside local Outside local Outside globalicmp 203.0.1.2:4336 172.16.0.1:4336 8.8.4.4:4336 8.8.4.4:4336icmp 203.0.1.2:4592 172.16.0.1:4592 8.8.4.4:4592 8.8.4.4:4592icmp 203.0.1.2:4848 172.16.0.1:4848 8.8.4.4:4848 8.8.4.4:4848icmp 203.0.1.2:5104 172.16.0.1:5104 8.8.4.4:5104 8.8.4.4:5104icmp 203.0.1.2:5360 172.16.0.1:5360 8.8.4.4:5360 8.8.4.4:5360icmp 203.0.2.2:15088 172.16.0.2:15088 8.8.4.4:15088 8.8.4.4:15088icmp 203.0.2.2:15344 172.16.0.2:15344 8.8.4.4:15344 8.8.4.4:15344icmp 203.0.2.2:15600 172.16.0.2:15600 8.8.4.4:15600 8.8.4.4:15600icmp 203.0.2.2:15856 172.16.0.2:15856 8.8.4.4:15856 8.8.4.4:15856icmp 203.0.2.2:16112 172.16.0.2:16112 8.8.4.4:16112 8.8.4.4:16112R1#
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