当前位置:网站首页>HCIA_ Nat experiment
HCIA_ Nat experiment
2022-07-21 23:09:00 【Turkey sauce】
Experimental questions
Topology
experimental analysis :
1、 Only one public ip Need to pass through http Access to two servers , To do port mapping
2、 Access the server through the domain name , So we need one dns The server
Specific configuration content :
R1:
[Huawei]sysname r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[r1-GigabitEthernet0/0/0]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 12.1.1.1 24
[r1-GigabitEthernet0/0/1]q
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.1.2 0.0.0.0
[r1-acl-basic-2000]int g0/0/0
[r1-GigabitEthernet0/0/0]int g0/0/1
[r1-GigabitEthernet0/0/1]nat outbound 2000
[r1-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 80 ins
ide 192.168.1.10 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
[r1-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 8080 i
nside 192.168.1.20 80
ISP:
[Huawei]sysname lsp
[lsp]int g0/0/0
[lsp-GigabitEthernet0/0/0]int g 0/0/1
[lsp-GigabitEthernet0/0/1]ip add 12.1.1.2 24
[lsp-GigabitEthernet0/0/1]int g0/0/0
[lsp-GigabitEthernet0/0/0]ip add 1.1.1.1 24
various pc To configure
pc1
http1、http2
pc2
dns
verification :
pc1 You can visit pc2
2、CLIENT Can pass http visit server
边栏推荐
猜你喜欢
随机推荐
OSPF的不规则区域
全网清晰虚拟机安装截图
“FileInputStream“和“BufferedInputStream“的区别
防火墙的原理、主要技术、部署及其优缺点
OSPF --- 开放式最短路径优先协议
HCIP day1
get和post的区别及各自的抓包,改包
实验2-白盒测试-软件质量保障与测试
Unity customized gadget "image removal mipmap"
System construction solutions of call centers in different scales
MGRE comprehensive experiment
P2P网络和虚拟专线综合实验
HCIP第一天作业
【无标题】
OSPF不规则区域,LSA以及序列号
Hcip day 1 operation
【 信息搜集的内容,信息搜集的方法,信息搜集的工具,信息搜集结果的利用等】
What technical support does okcc call center need to realize its functions
HCIA RIP实验
Unity customized gadget "export atlas pictures"