当前位置:网站首页>Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment
Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment
2022-07-31 01:52:00 【Lonely City 286】
目录
Further experiments!!!
(41条消息) 静态路由+PAT+静态NAT(讲解+实验)_孤城286的博客-CSDN博客
实验:
(1)实验拓扑:
(2)实验需求:
- ①所有PC能访问互联网上的PC3(To realize online needs)
- ②Intranet server needs to foreign network users with access service
- ③分支公司PC4和PC5Access to the company Intranet serverweb server 1和PC1和PC2
- ④PC4能和PC5之间相互访问
(3)实验思路分析(!!!):
①合理的规划IP地址和VLAN
②Through company Intranet:利用VLAN 间路由
③Through branch company Intranet:单臂路由
④配置路由:
1、核心交换机:
由于除了PC3以外,所有的PCTo access the Internet(PC3),So the core switches to Internet routing can use static default route(减少繁琐).ip route 0.0.0.0 0.0.0.0 172.16.1.1(Go to the Internet)
因为PC4和PC5Need to access the server so the core switch need to route packets come back:
ip route 10.1.0.0 255.255.0.0 192.168.1.3
2、R3:
由于PC4和PC5访问内网服务器,And still need access to the Internet business
静态缺省:ip route 0.0.0.0 0.0.0.0 192.168.1.1
3、Company exports the routerR1:
Because of the Internet business a lot,Each business for differentIP,So the access to the Internet using a static default route:
ip route 0.0.0.0 0.0.0.0 12.1.1.2 (去互联网)
PC1 PC2 PC4 PC5Access to the Internet packets need to come back,
So write detailed routing:
ip route 10.1.0.0 255.255.0.0 172.16.1.2
⑤NAT转换:
由于内网PC需要访问互联网,所以需要PAT转换(一对多):
Due to a network server to the Internet users access the service,So you need to use the staticNAT(一对一,经TCP 80端口转换)
⑥访问验证(ping 测试+web页面访问)
(4)所需技术 :
①vlan间路由:
②单臂路由:
int f0/0----进入接口
no shutdown -----将接口打开
exit
int f0/0.10 ----进入子接口
encapsulation dot1Q 20----将子接口与vlna 20绑定
ip address 192.168.20.254 255.255.255.0 ---配置ip地址作为PC网关
no shutdown ---将接口打开
③静态路由
④PAT
⑤静态NAT
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
边栏推荐
- 项目开发软件目录结构规范
- 最大路径和
- leetcode-1161:最大层内元素和
- 【Map与Set】之LeetCode&牛客练习
- Are you still working hard on the limit of MySQL paging?
- 12 pictures take you to fully understand service current limit, circuit breaker, downgrade, and avalanche
- rpm安装postgresql12
- VSCode Plugin: Nested Comments
- 真正的CTO,是一个懂产品的技术人
- 类似 MS Project 的项目管理工具有哪些
猜你喜欢
随机推荐
MySql的初识感悟,以及sql语句中的DDL和DML和DQL的基本语法
STP选举(步骤+案列)详解
计算S=a+aa+…+aa…a
link与@import的区别
加密生活,Web3 项目合伙人的一天
想要写出好的测试用例,先要学会测试设计
聚簇索引和非聚簇索引到底有什么区别
ShardingJDBC使用总结
进程间通信学习笔记
【AcWing 第62场周赛】
What have I experienced when I won the offer of BAT and TMD technical experts?
Inner monologue from a female test engineer...
Manchester City confuses fans with smart scarf that detects emotions
Google官方控件ShapeableImageView使用
"Cloud native's master, master and vulgar skills" - 2022 National New College Entrance Examination Volume I Composition
充电效果模拟
《MySQL数据库进阶实战》读后感(SQL 小虚竹)
太阳能板最大面积 od js
观察者(observer)模式(一)
Are you still working hard on the limit of MySQL paging?