cisco配置动态NAT实验.docxVIP

  • 8
  • 0
  • 约2.51千字
  • 约 4页
  • 2022-08-06 发布于四川
  • 举报
动态NAT cisco配置动态NAT实验今天为大家演示的是动态NAT:首先要定义合法地址池,然后采用动态分配的方 法映射到内部网络。动态NAT是动态一对一的映射。 202.96. 1.0/24PC-PTPC-PT PC-PTPC-PT PC5PC6 PC-PTPC-PTPC5PC6L2 2621XM R2 PC-PTPC-PT PC5PC6 L2 2621XM R2 自定义的地址池是: R1(config)#int f0/0 R1(config-if)#no shut配置接口 IP地址并激活R1(config)#int f0/1 R1(config-if)#no shut配置接口 IP地址并激活 R2(config)#int fO/O R2(config-if)#no shut 配置接口 IP地址并激活R2(config)#int loopback 0 R2(config-if)#no shut配置接口 IP地址并激活 R1(config)#router ripR1 (config-router)#version 2 R1(config-router)#no auto-summary R2(config)#router ripR2(config-router)#version 2 R2(config-router)#no auto-summary rl#show ip route Codes: C - connected^, S - static, I -工GRP, R - RIP, M - mobile, B - BGP D - 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-user static routeo - ODR P - periodic downloaded static route Gateway o f last, resort, is not set. s-, T-suIjac^sF ast. Ethe rnet. 0/0 Y-- F 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/2in~~Ci工 f」lycOiIhgcts , F ast. Ethe rnet. 0/0 Y-- C 202.96.1.0/24 is directly connected, FastEthernet0/0在R1配置NAT使PC5和PC6可以连通2.2: R1(config)#ip nat pool NAT 202.96.1.3 202.96.1.100 netmask 255.255.255. 0配置NAT地址池的名字已经IP地址范围R1(config)#ip nat inside source list 1 pool NAT 配置动态 NAT 映射 允许动态NAT转换 允许动态NAT转换 R1(config)#int f0/1 R1(config-if)#ip nat inside 配置 NAT 的内部接口 R1(config)#int f0/0 R1(config-if)#ip nat outside 配置 NAT 的外部接口 rl#shov ip nat. statistics Total t-ranslat-ions: 0 (0 static,. 0 dynamicz 0 extended) Outside Interfaces: FastEthernet0/0 Inside Interfaces: FastEthernet0/1 Hits: 14 Misses: 58 Expired translations: 16 Dynami c mappings: - Inside Source access-list 1 pool NAT refCount 0 pool NAT: netmask 255.255.255.0 start 202.96.1.3 end 202.96.1.100 type generic/, total addresses

文档评论(0)

1亿VIP精品文档

相关文档