《cisco配置动态NAT实验.docx》由会员分享,可在线阅读,更多相关《cisco配置动态NAT实验.docx(4页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、动态NATcisco配置动态NAT实验今天为大家演示的是动态NAT:首先要定义合法地址池,然后采用动态分配的方 法映射到内部网络。动态NAT是动态一对一的映射。202.96. 1.0/24PC-PTPC-PTPC5PC6PC-PTPC-PTPC5PC6L2 2621XM R2自定义的地址池是:R1(config)#int f0/0R1(config-if)#no shut配置接口 IP地址并激活R1(config)#int f0/1R1(config-if)#no shut配置接口 IP地址并激活R2(config)#int fO/OR2(config-if)#no shut 配置接口 IP地
2、址并激活R2(config)#int loopback 0R2(config-if)#no shut配置接口 IP地址并激活R1(config)#router ripR1 (config-router)#version 2R1(config-router)#no auto-summaryR2(config)#router ripR2(config-router)#version 2R2(config-router)#no auto-summaryrl#show ip routeCodes: C - connected, S - static, I -工GRP, R - RIP, M - mob
3、ile, B - BGPD - E工GRP, EX - EIGRP external 0 - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 El - OSPF external type 工,EZ - OSPF external type E - EGP i - IS-ISr LI - IS-IS level-lr L2 - IS-IS level-2 ia - IS-IS inter area * - candidate default, U - per-us
4、er static routeo - ODR P - periodic downloaded static routeGateway o f last, resort, is not set.s-, T-suIjacsF ast. Ethe rnet. 0/0 Y-F ast. Ethe rnet. 0/0 Y-_2.2.2.0 120/1 via 202.96.1.2 00:00:0C JL9.J.二0/2inCi工 flycOiIhgcts , Fastz-Etz-liGiriiGtz-O/1C 202.96.1.0/24 is directly connected202.96.1.5 d=2.2.2.2 17NAT*: s=2.2.2.2 d=202.96.1.5-192.168.1.2 1Z6NAT: s=192.168.1.2-202.96.1.5 d=2.2.2.2 18NAT*: s=2.2.2.2 d=202.96.1.5-192.168.1.2 127NAT: s=192.168.1.2-202.96.1.5 d=2.2.2.2 19192.168.1.2 128实验完成! !