当前位置:网站首页>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访问验证:
验证成功!!!!
边栏推荐
- Jiuzhou Cloud was selected into the "Trusted Cloud's Latest Evaluation System and the List of Enterprises Passing the Evaluation in 2022"
- Drools规则属性,高级语法
- 软件测试要达到一个什么水平才能找到一份9K的工作?
- CV-Model [3]: MobileNet v2
- link与@import的区别
- The Meta Metaverse Division lost 2.8 billion in the second quarter, still want to continue to bet?Metaverse development has yet to see a way out
- 成为比开发硬气的测试人,我都经历了什么?
- 打印任务排序 js od华为
- "Cloud native's master, master and vulgar skills" - 2022 National New College Entrance Examination Volume I Composition
- coldfusion8后台计划任务拿shell
猜你喜欢
系统需求多变如何设计
Overview of prometheus monitoring
Fiddler抓包模拟弱网络环境测试
基于FPGA的售货机
GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13
Introduction and use of Drools WorkBench
1782. Count the number of point pairs Double pointer
Crypto Life, a day in the life of a Web3 project partner
pycharm重命名后无法运行(报错: can‘t open file......No such file or directory)
[Map and Set] LeetCode & Niu Ke exercise
随机推荐
初识C语言 -- 数组
类似 MS Project 的项目管理工具有哪些
二层广播风暴(产生原因+判断+解决)
Jiuzhou Cloud was selected into the "Trusted Cloud's Latest Evaluation System and the List of Enterprises Passing the Evaluation in 2022"
Nacos
android的webview缓存相关知识收集
[1153]mysql中between的边界范围
rpm安装postgresql12
真正的CTO,是一个懂产品的技术人
太阳能板最大面积 od js
Word/Excel 固定表格大小,填写内容时,表格不随单元格内容变化
[1154] How to convert string to datetime
蛮力法/邻接矩阵 广度优先 有向带权图 无向带权图
How to expose Prometheus metrics in go programs
Basic introduction to ShardingJDBC
怎样做好一个创业公司CTO?
What are the project management tools like MS Project
基于FPGA的售货机
FPGA-based vending machine
case语句的综合结果,你究竟会了吗?【Verilog高级教程】