Việc giả lập môi trường Internet ISP được triển khai trong một số mô hình thực hành Lab như VPN, Policy Based-Routing và một số công nghệ khác. Chức năng của việc giả lập môi trường Internet ISP là đảm bảo tất cả các Public IP có thể giao tiếp được với nhau và truy cập được tài nguyên trên môi trường Internet.
Trong mô hình giả lập như thể hiện trên sơ đồ thì ISP Router sẽ tiến hành gán địa chỉ IP trên các cổng giao tiếp, các Customer Router đầu cuối sẽ tiến hành gán địa chỉ IP tĩnh hoặc kích hoạt chức năng DHCP Client và tiến hành trỏ Default-Route tới địa chỉ IP tương ứng của ISP Router thì chúng sẽ giao tiếp được với nhau và truy cập được Internet.
Cấu hình trên Router ISP.
hostname ISPinterface e0/0ip address dhcpip nat outsideno shutdownexitip route 0.0.0.0 0.0.0.0 dhcpinterface e0/1ip address 203.0.1.1 255.255.255.0ip nat insideno shutdownexitip dhcp excluded-address 203.0.1.1 203.0.1.2ip dhcp pool lan1network 203.0.1.0 255.255.255.0default-router 203.0.1.1dns-server 8.8.4.4exitinterface e0/2ip address 203.0.2.1 255.255.255.0ip nat insideno shutdownexitip dhcp excluded-address 203.0.2.1 203.0.2.2ip dhcp pool lan2network 203.0.2.0 255.255.255.0default-router 203.0.2.1dns-server 8.8.4.4exitinterface e0/3ip address 203.0.3.1 255.255.255.0ip nat insideno shutdownexitip dhcp excluded-address 203.0.3.1 203.0.3.2ip dhcp pool lan3network 203.0.3.0 255.255.255.0default-router 203.0.3.1dns-server 8.8.4.4exitinterface e1/0ip address 203.0.4.1 255.255.255.0ip nat insideno shutdownexitip dhcp excluded-address 203.0.4.1 203.0.4.2ip dhcp pool lan4network 203.0.4.0 255.255.255.0default-router 203.0.4.1dns-server 8.8.4.4exitip access-list extended NatTrafficpermit ip 203.0.1.0 0.0.0.255 anypermit ip 203.0.2.0 0.0.0.255 anypermit ip 203.0.3.0 0.0.0.255 anypermit ip 203.0.4.0 0.0.0.255 anyexitip nat inside source list NatTraffic interface e0/0 overload
Cấu hình trên Site1.RT.
hostname Site1.RTinterface 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.1
Cấu hình trên Site2.RT.
hostname Site2.RTinterface e0/1ip address 203.0.2.2 255.255.255.0ip nat outsideno shutdownexitip route 0.0.0.0 0.0.0.0 203.0.2.1
Cấu hình trên Site3.RT.
hostname Site3.RTinterface e0/1ip address 203.0.3.2 255.255.255.0ip nat outsideno shutdownexitip route 0.0.0.0 0.0.0.0 203.0.3.1
Site3.RT# ping 203.0.1.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 203.0.1.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msSite3.RT#
Site3.RT# ping 203.0.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 203.0.2.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msSite3.RT#
Site3.RT# ping 8.8.4.4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 8.8.4.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 29/31/35 msSite3.RT#
Tham gia Club Network Engineer để có cơ hội thực hành trên thiết bị thật và chia sẻ, trao đổi kinh nghiệm nhiều hơn.
0 comments