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

目录

实验: 

(1)实验拓扑:

(2)实验需求:

(3)实验思路分析(!!!):

(4)所需技术 :


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

原网站

版权声明
本文为[Lonely City 286]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/212/202207310147510992.html