请选择 进入手机版 | 继续访问电脑版

设为首页 收藏本站
思科社区 关注
思科社区

  思科 CCO 登录
 找回密码
 立即注册

扫一扫,访问微社区

搜索
热搜: 邮件服务器
查看: 880|回复: 1

【原创故障案例分享】NAT 相同INSIDE LOCA地址目的地不同变成不同inside global

[复制链接]
发表于 2018-6-29 15:43:11 | 显示全部楼层 |阅读模式
***************
topology
**************
1941(g0/1,34.1.1.3)----(g0/1,34.1.1.4)2951(g0/2,24.1.1.4)-----(g0/1,24.1.1.2)2921(lo0,10.10.10.10,  lo1 100.100.100.100)


****************
describe
****************
a/ at 1941 visit 10.10.10.10 will use insideglobal at 24.1.1.10
b/ at 1941 visit 100.100.100.100 will use insideglobal at 24.1.1.100

**************
router configuration
**************
RU25-CISCO2951(config)#do sh run | s TO
ip nat inside source static 34.1.1.3 24.1.1.10route-map TO-10 extendable
ip nat inside source static 34.1.1.3 24.1.1.100route-map TO-100 extendable
ip access-list extended TO-10
permit ip any host 10.10.10.10
ip access-list extended TO-100
permit ip any host 100.100.100.100
route-map TO-100 permit 10
match ip address TO-100
route-map TO-10 permit 10
match ip address TO-10
RU25-CISCO2951(config)#

******************************
NAT traslation
******************************
RU25-CISCO2951(config)#do sh ip nattr  
Pro Inside global     Inside local       Outside local     Outside global
--- 24.1.1.10         34.1.1.3           ---               ---
--- 24.1.1.100        34.1.1.3           ---               ---
RU25-CISCO2951(config)#


**************************
destination route cisco2921 debug as following
*************************
CISCO1941(config)#do ping 10.10.10.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10,timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-tripmin/avg/max = 1/1/4 ms
CISCO1941(config)#

RU28-CISCO2921(config)#
*May 24 12:36:15.229: ICMP: echo reply sent, src10.10.10.10, dst 24.1.1.10, topology BASE, dscp 0 topoid 0
*May 24 12:36:15.229: ICMP: echo reply sent, src10.10.10.10, dst 24.1.1.10, topology BASE, dscp 0 topoid 0
*May 24 12:36:15.233: ICMP: echo reply sent, src10.10.10.10, dst 24.1.1.10, topology BASE, dscp 0 topoid 0
*May 24 12:36:15.233: ICMP: echo reply sent, src10.10.10.10, dst 24.1.1.10, topology BASE, dscp 0 topoid 0
*May 24 12:36:15.233: ICMP: echo reply sent, src10.10.10.10, dst 24.1.1.
RU28-CISCO2921(config)#10, topology BASE, dscp 0topoid 0
RU28-CISCO2921(config)#


Success rate is 100 percent (5/5), round-tripmin/avg/max = 1/1/4 ms
CISCO1941(config)#do ping 100.100.100.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.100,timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-tripmin/avg/max = 1/1/4 ms
CISCO1941(config)#
Success rate is 100 percent (5/5), round-tripmin/avg/max = 1/1/4 ms
CISCO1941(config)#do ping 100.100.100.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to100.100.100.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-tripmin/avg/max = 1/1/4 ms
CISCO1941(config)#



  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
平均得分4 (2 评价)
发表于 2018-7-3 10:14:55 | 显示全部楼层
学习了,感谢楼主分享
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5
平均得分2 (2 评价)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver | 思科社区  

GMT+8, 2018-9-26 05:44 , Processed in 0.077287 second(s), 30 queries .

京ICP备09041801号-187

版权所有 :copyright:1992-2019 思科系统  重要声明 | 保密声明 | 隐私权政策 | 商标 |

快速回复 返回顶部 返回列表