目录
1、R2为ISP路由器,其上只能配置ip地址,不得再进行其他的任何配置
2、PC1-PC2可以ping通客户平板和DNS服务器
3、客户端可以通过域名访问HTTP1,通过地址访问HTTP2
4、R1为边界路由器,其上只有一个公有ip地址
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[AR1-GigabitEthernet0/0/0]int g0/0/1
[AR1-GigabitEthernet0/0/1]ip add 1.1.1.1 24
[ISP]int g0/0/0
[ISP-GigabitEthernet0/0/0]ip add 1.1.1.2 24
[ISP-GigabitEthernet0/0/0]int g0/0/1
[ISP-GigabitEthernet0/0/1]ip add 2.2.2.1 24
[AR1]dhcp enable
[AR1]ip pool a1
[AR1-ip-pool-a1]network 192.168.1.0 mask 24
[AR1-ip-pool-a1]gateway-list 192.168.1.1
[AR1-ip-pool-a1]dns-list 2.2.2.2 114.114.114.114
[AR1-ip-pool-a1]q
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]dhcp select global
?
[AR1]acl 2000
[AR1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[AR1-acl-basic-2000]q
[AR1]int g0/0/1
[AR1-GigabitEthernet0/0/1]nat outbound 2000
[AR1]ip route-static 0.0.0.0 0 1.1.1.2
[AR1-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 80 in
side 192.168.1.2 80
Warning:The port 80 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y
[AR1-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 8888
inside 192.168.1.3 80
客户端可以通过域名访问HTTP1,通过地址访问HTTP2?