当前位置:网站首页>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
边栏推荐
猜你喜欢
MySql installation and configuration super detailed tutorial and simple method of building database and table
成为比开发硬气的测试人,我都经历了什么?
系统需求多变如何设计
Tower of Hanoi problem
关于Redis相关内容的基础学习
MySQL的安装教程(嗷嗷详细,包教包会~)
软件测试基础接口测试-入门Jmeter,你要注意这些事
加密生活,Web3 项目合伙人的一天
What have I experienced when I won the offer of BAT and TMD technical experts?
Shell script to loop through values in log file to sum and calculate average, max and min
随机推荐
Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
mysql 视图
What does a software test report contain?
Multiplication, DFS order
ShardingJDBC usage summary
The PC side determines the type of browser currently in use
"Cloud native's master, master and vulgar skills" - 2022 National New College Entrance Examination Volume I Composition
汉诺塔问题
有没有可以做副业可以日入300元方法?
力扣刷题之有效的正方形(每日一题7/29)
leetcode-399:除法求值
勾股数元组 od js
Problems that need to be solved by the tcp framework
leetcode-399: division evaluation
leetcode-1161:最大层内元素和
Gateway routing configuration
keep-alive cache component
力扣每日一题-第46天-704. 二分查找
case语句的综合结果,你究竟会了吗?【Verilog高级教程】
leetcode-128:最长连续序列