当前位置:网站首页>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访问验证:
验证成功!!!!
边栏推荐
- 934. The Shortest Bridge
- Kyushu cloud as cloud computing standardization excellent member unit
- Crawler text data cleaning
- Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?
- keep-alive缓存组件
- cudaMemcpy study notes
- Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
- MySql的安装配置超详细教程与简单的建库建表方法
- 一个无经验的大学毕业生,可以转行做软件测试吗?我的真实案例
- leetcode-952:按公因数计算最大组件大小
猜你喜欢
934. 最短的桥
What are the project management tools like MS Project
ShardingJDBC使用总结
12 pictures take you to fully understand service current limit, circuit breaker, downgrade, and avalanche
真正的CTO,是一个懂产品的技术人
Word 表格跨页,仍然显示标题
uniapp使用第三方字体
12张图带你彻底搞懂服务限流、熔断、降级、雪崩
Introduction and use of Drools WorkBench
VSCode Plugin: Nested Comments
随机推荐
What does a software test report contain?
Gateway路由的配置方式
The PC side determines the type of browser currently in use
静态路由解析(最长掩码匹配原则+主备路由)
【Map与Set】之LeetCode&牛客练习
leetcode-128: longest continuous sequence
Word/Excel 固定表格大小,填写内容时,表格不随单元格内容变化
Verify the integer input
uniapp使用第三方字体
打印任务排序 js od华为
C language _ structure pointer array function voting system
Jiuzhou Cloud was selected into the "Trusted Cloud's Latest Evaluation System and the List of Enterprises Passing the Evaluation in 2022"
C语言小程序 -- 常见经典练习题
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
Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
mysql 视图
《MySQL数据库进阶实战》读后感(SQL 小虚竹)
最大路径和
Arbitrum 专访 | L2 Summer, 脱颖而出的 Arbitrum 为开发者带来了什么?
Software testing basic interface testing - getting started with Jmeter, you should pay attention to these things