当前位置:网站首页>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)

Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?

leetcode-1161: Maximum in-layer element sum

Manchester City confuses fans with smart scarf that detects emotions

曼城推出可检测情绪的智能围巾,把球迷给整迷惑了

Word/Excel 固定表格大小,填写内容时,表格不随单元格内容变化

Basic introduction to ShardingJDBC

934. 最短的桥

What have I experienced when I won the offer of BAT and TMD technical experts?

关于Redis相关内容的基础学习
随机推荐
STP选举(步骤+案列)详解
case语句的综合结果,你究竟会了吗?【Verilog高级教程】
加密生活,Web3 项目合伙人的一天
聚簇索引和非聚簇索引到底有什么区别
User interaction + formatted output
手把手教你配置Jenkins自动化邮件通知
第一学年课程期末考试
vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验
Problems that need to be solved by the tcp framework
What have I experienced when I won the offer of BAT and TMD technical experts?
真正的CTO,是一个懂产品的技术人
【AcWing 62nd Weekly Game】
leetcode-128: longest continuous sequence
Project development software directory structure specification
uniapp使用第三方字体
Tower of Hanoi problem
Software testing basic interface testing - getting started with Jmeter, you should pay attention to these things
用户交互+格式化输出
C language applet -- common classic practice questions
keep-alive cache component