当前位置:网站首页>vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验
vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验
2022-07-31 01:48:00 【孤城286】
目录
续实验!!!
(41条消息) 静态路由+PAT+静态NAT(讲解+实验)_孤城286的博客-CSDN博客
实验:
(1)实验拓扑:
(2)实验需求:
- ①所有PC能访问互联网上的PC3(能实现上网需求)
- ②内网服务器需要对外网用户提供访问服务
- ③分支公司PC4和PC5能访问总公司内网服务器web server 1和PC1和PC2
- ④PC4能和PC5之间相互访问
(3)实验思路分析(!!!):
①合理的规划IP地址和VLAN
②打通总公司内网:利用VLAN 间路由
③打通分支公司内网:单臂路由
④配置路由:
1、核心交换机:
由于除了PC3以外,所有的PC都要访问互联网(PC3),所以核心交换机去往互联网路由可以使用静态缺省路由(减少繁琐)。ip route 0.0.0.0 0.0.0.0 172.16.1.1(去往互联网)
因为PC4和PC5需要访问服务器所以核心交换机上需要有数据包回来的路由:
ip route 10.1.0.0 255.255.0.0 192.168.1.3
2、R3:
由于PC4和PC5访问内网服务器,而且还需访问互联网业务
静态缺省:ip route 0.0.0.0 0.0.0.0 192.168.1.1
3、总公司出口路由器R1:
由于互联网业务很多,每种业务对应不同的IP,所以访问互联网的使用静态缺省路由:
ip route 0.0.0.0 0.0.0.0 12.1.1.2 (去互联网)
PC1 PC2 PC4 PC5访问互联网的数据包需要回来,
所以写明细路由:
ip route 10.1.0.0 255.255.0.0 172.16.1.2
⑤NAT转换:
由于内网PC需要访问互联网,所以需要PAT转换(一对多):
由于内网服务器要对互联网用户提供访问服务,所以需要使用静态NAT(一对一,经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边栏推荐
猜你喜欢

pycharm cannot run after renaming (error: can't open file...No such file or directory)

Nacos

力扣刷题之有效的正方形(每日一题7/29)

"Real" emotions dictionary based on the text sentiment analysis and LDA theme analysis

MySQL installation tutorial (detailed, package teaching package~)

Centos 7.9安装PostgreSQL14.4步骤

934. The Shortest Bridge

MySQL stored procedure

tkinter模块高级操作(二)—— 界面切换效果、立体阴影字效果及gif动图的实现

Word 表格跨页,仍然显示标题
随机推荐
【AcWing 62nd Weekly Game】
MySql的安装配置超详细教程与简单的建库建表方法
Bert usage and word prediction based on Keras_bert model
用户交互+格式化输出
Centos 7.9安装PostgreSQL14.4步骤
最高月薪20K?平均薪资近万...在华为子公司工作是什么体验?
CV-Model【3】:MobileNet v2
Distributed. Distributed lock
【AcWing 第62场周赛】
MySQL (6)
Path and the largest
力扣刷题之有效的正方形(每日一题7/29)
Nacos
leetcode-128: longest continuous sequence
PDF 拆分/合并
leetcode-952: Calculate max component size by common factor
MySQL installation tutorial (detailed, package teaching package~)
1.非类型模板参数 2.模板的特化 3.继承讲解
android的webview缓存相关知识收集
12 pictures take you to fully understand service current limit, circuit breaker, downgrade, and avalanche