当前位置:网站首页>Static routing + PAT + static NAT (explanation + experiment)
Static routing + PAT + static NAT (explanation + experiment)
2022-07-31 01:52:00 【Give 286】
目录
一、Static routing, a:
涉及知识!!!:
(40条消息) 静态路由(实验讲解+配置)_孤城286的博客-CSDN博客_Detailed routing and static routing
(41条消息) vlan间路由(讲解+验证)_孤城286的博客-CSDN博客
NAT (PAT)地址转换技术(讲解+配置)_孤城286的博客-CSDN博客_natAddress the transformation configuration steps

注:静态缺省:S*开头,The static subsidiary:C开头
——————————————————————————————————————————————————————————
二、PAT转换
简介:把内部地址映射到外部网络的一个IP地址的不同端口上.实现私网地址和公网地址的一对多转换.(基于源IP的转换)
—————————————————————————————————————————————————————————
三、实验(一)静态路由+PAT
模拟器:Cisco Packet Tracer
(1)实验拓扑:
(2)实验需求
- PC1和PC2Access to the InternetPC3
(3)实验思路
- ①利用VLANRouting between the Intranet through
- ②核心交换机(缺省路由)和R1配置路由(缺省+明细){ The core switch layer interfaces need to be converted into three layers}
- ③再R1上做PAT地址转换
- ④验证(ping测试)
(4)实验配置:
- ①关于vlan间路由:
(40条消息) vlan间路由(讲解+验证)_孤城286的博客-CSDN博客
- ②核心交换机配置 路由配置:
sw1(config-if)#int f0/4
sw1(config-if)#no switchport ——Layer 2 interface into three layers configurationIP
sw1(config-if)#ip add 172.16.1.2 255.255.255.0
Bad mask 0xFFFF3700 for address 172.16.1.2
sw1(config-if)#no sh
sw1(config)#exit
sw1(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.1- ③R1配置:
R1(config)#interface f0/0
R1(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#interface f0/1
R1(config-if)#ip address 12.1.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 12.1.1.2
R1(config)#ip route 10.1.1.0 255.255.255.0 172.16.1.2
R1(config)#ip route 10.1.2.0 255.255.255.0 172.16.1.2
R1(config)#ip route 10.1.3.0 255.255.255.0 172.16.1.2
R1(config)#int f0/1
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#int f0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#access-list 1 permit 10.1.1.0 0.0.0.255
R1(config)#access-list 1 permit 10.1.2.0 0.0.0.255
R1(config)#ip nat inside source list 1 int f0/1 overload- ④R2配置:
R2(config)#int f0/0
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R1(config-if)#no sh
R2(config-if)#int f0/1
R2(config-if)#ip add 202.1.1.254 255.255.255.0
R2(config-if)#no sh- ⑤实验验证:

访问成功!!!!!
(5)实验注意点
- ①Core switch interface itself as the layer 2 interface,Need to enter the interface byno switchportCommand into a three layer interface
- ②The core switches need through the commandip routing开启路由转发功能
- ③Network equipment to be seen whether the interface activation(Activation of green,Inactive in red)
——————————————————————————————————————————————————————————
四、实验(二)(新需求)——静态NAT转换
新需求:Intranet server needs to foreign network provides access service
此时需要把服务器的私有IP地址静态映射到一个公网IP地址上面去(一对一)

(1)R1配置:
R1(config)#ip nat inside source static ?
A.B.C.D Inside local IP address
tcp Transmission Control Protocol
udp User Datagram Protocol
R1(config)#ip nat inside source static tcp 10.1.3.1 80 12.1.1.1 80
R1(config)#ip route 10.1.3.0 255.255.255.0 172.16.1.2 ——原来没有配置R1A route to the server(2)验证:
The server open correspondingHTTP网页服务:

PC3访问验证:

验证成功!!!!
边栏推荐
- What have I experienced to become a tester who is harder than development?
- After reading "MySQL Database Advanced Practice" (SQL Xiao Xuzhu)
- 力扣刷题之有效的正方形(每日一题7/29)
- Manchester City confuses fans with smart scarf that detects emotions
- tcp框架需要解决的问题
- keep-alive cache component
- Jiuzhou Cloud was selected into the "Trusted Cloud's Latest Evaluation System and the List of Enterprises Passing the Evaluation in 2022"
- VSCode Plugin: Nested Comments
- mysql index
- mysql 视图
猜你喜欢

Kyushu cloud as cloud computing standardization excellent member unit

GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13

Nacos

观察者(observer)模式(一)

手把手教你配置Jenkins自动化邮件通知

华为od 转骰子 js

mysql 视图

最大路径和
![[WeChat applet] This article takes you to understand data binding, event binding, event parameter transfer, and data synchronization](/img/f8/8437783794c2007a74c0a153d85102.png)
[WeChat applet] This article takes you to understand data binding, event binding, event parameter transfer, and data synchronization

MySQL的分页你还在使劲的limit?
随机推荐
What does a software test report contain?
Multiplication, DFS order
C language _ structure pointer array function voting system
[Map and Set] LeetCode & Niu Ke exercise
uniapp uses 3rd party fonts
系统需求多变如何设计
Introduction and use of Drools WorkBench
leetcode-952:按公因数计算最大组件大小
VSCode插件:嵌套注释
Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
想要写出好的测试用例,先要学会测试设计
一个无经验的大学毕业生,可以转行做软件测试吗?我的真实案例
leetcode-1161: Maximum in-layer element sum
934. The Shortest Bridge
MySQL的安装教程(嗷嗷详细,包教包会~)
What is the ideal college life?
Is there a way to earn 300 yuan a day by doing a side business?
太阳能板最大面积 od js
PDF 拆分/合并
最大路径和
