当前位置:网站首页>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边栏推荐
- Force buckled brush the stairs (7/30)
- coldfusion8后台计划任务拿shell
- cudaMemcpy学习笔记
- 曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
- GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13
- Crypto Life, a day in the life of a Web3 project partner
- Between two orderly array of additive and Topk problem
- 计算S=a+aa+…+aa…a
- What have I experienced to become a tester who is harder than development?
- [1153]mysql中between的边界范围
猜你喜欢

二层广播风暴(产生原因+判断+解决)

MySQL的安装教程(嗷嗷详细,包教包会~)

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

Overview of prometheus monitoring

934. 最短的桥

mmdetection训练一个模型相关命令

VSCode Plugin: Nested Comments

Can an inexperienced college graduate switch to software testing?my real case

Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?

16、注册中心-consul
随机推荐
ShardingJDBC使用总结
MySQL的安装教程(嗷嗷详细,包教包会~)
tcp框架需要解决的问题
软件测试基础接口测试-入门Jmeter,你要注意这些事
Gateway路由的配置方式
mysql index
简易表白小页面
Fiddler抓包模拟弱网络环境测试
934. 最短的桥
Can an inexperienced college graduate switch to software testing?my real case
Interprocess communication study notes
【AcWing 第62场周赛】
cudaMemcpy study notes
软件测试要达到一个什么水平才能找到一份9K的工作?
rpm install postgresql12
android的webview缓存相关知识收集
静态路由解析(最长掩码匹配原则+主备路由)
Shell script to loop through values in log file to sum and calculate average, max and min
CV-Model [3]: MobileNet v2
coldfusion8后台计划任务拿shell