当前位置:网站首页>NAT网络地址转化实验
NAT网络地址转化实验
2022-07-26 22:50:00 【less than _ermi】
实验内容及要求:
实验过程:
1、新建拓扑
2、给AR1\AR2配置IP地址
[Huawei]inter g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 24
Jul 14 2022 20:39:19-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]inter g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 12.1.1.1 24
Jul 14 2022 20:39:36-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]quit
[r2]inter g0/0/0
[r2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[r2]inter g0/0/1
[r2-GigabitEthernet0/0/1]ip add 1.1.1.1 24
[r2-GigabitEthernet0/0/1]quit
3、在AR1上写一条缺省路由
[Huawei]ip route-static 0.0.0.0 0 12.1.1.2
4、在AR1上进行“一对多”地址转换
[Huawei]acl 2000
[Huawei-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[Huawei-acl-basic-2000]q
[Huawei]inter g0/0/1
[Huawei-GigabitEthernet0/0/1]nat o
[Huawei-GigabitEthernet0/0/1]nat outbound 2000
[Huawei-GigabitEthernet0/0/1]quit
5、测试
6、配置DNS

7、在路由器AR1的0/0/1端口上进行端口映射配置
[Huawei]inter g0/0/1
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 80
inside 192.168.1.3 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的0/0/1端口上进行端口映射配置,且TCP端口号为8888
[Huawei-GigabitEthernet0/0/0]inter g0/0/1
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 88
88 inside 192.168.1.4 80
[Huawei-GigabitEthernet0/0/1]q
8、测试(clientl1访问左边服务器)

实验结束
边栏推荐
- Lvs+keepalived project practice
- HCIA基础知识(1)
- Educational Codeforces Round 132 (Rated for Div. 2), problem: (D) Rorororobot
- Educational Codeforces Round 132 (Rated for Div. 2), problem: (D) Rorororobot
- 6.29 Zhong'an Summer Internship
- (CF1691D) Max GEQ Sum
- First knowledge of Web Design
- HCIA动态路由RIP基础实验
- Brief introduction of VLAN principle and specific experimental configuration
- 离开页面的提示
猜你喜欢

Brief introduction of VLAN principle and specific experimental configuration

记录第N次SQL异常

Lesson 5 - key control LED

NB-IOT联网通信

OSPF basic configuration application (comprehensive experiment: interference election default routing area summary authentication -- interface authentication)

动态路由ofps协议配置

RS-485总线通信应用

7.13 Weilai approved the written examination in advance

RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)

静态路由缺省路由vlan实验
随机推荐
数字芯片的面积优化:第三届“华为杯”研究生创芯大赛数字方向上机题1详解
光光光仔的CSDN之旅
求解100~200之间的素数
Codeforces Round #809 (Div. 2), problem: (C) Qpwoeirut And The City
OSPF静态大实验
静态综合实验(静态路由、环回接口、缺省路由、空接口、浮动静态的综合练习)
(CF1691D) Max GEQ Sum
TreeSet集合存储元素的问题
Lecture 4 - explain GPIO_ Write function and related routines
RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
(超详尽版,不懂随时评论)Codeforces Round #804 (Div. 2)C The Third Problem
Dynamic routing rip protocol experiment
OSPF protocol knowledge summary
First knowledge of C language (2)
NB-IOT联网通信
RS-485 bus communication application
Ospf基础配置应用( 综合实验: 干涉选举 缺省路由 区域汇总 认证--接口认证)
Lecture 3 - GPIO input / output library function usage and related routines
2022 latest live broadcast monitoring 24-hour monitoring (III) analysis of barrage in live broadcast room
全网显示 IP 归属地,是怎么实现的?