取消
显示结果 
搜索替代 
您的意思是: 
cancel
3074
查看次数
24
有帮助
1
评论
Ning Zhang
Cisco Employee
Cisco Employee
***************
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)#

评论
yangkai_716
Spotlight
Spotlight
学习了,感谢楼主分享
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接