静态nat中extendable的含义应用-双线

在学习bnet3.0第8章,网络地址转换(NAT)的时候,8.3.3节有一部分是关于“nat的双线接入”的。其中关键点是关于静态nat中参数extendable的应用。(目前适合cisco设备)。

例如:ip nat inside source static tcp 172.18.203.1 23 172.18.203.1 23 extendable//加上允许扩展后,可以在不同的isp之间都形成映射//

设备上解释:if you have two different ISP, each have their own public address, for server 10.1.1.1 can have different public address.

if you do not use ext option:

Z1R1(config)#ip nat inside source static 10.1.1.1 135.1.1.1
Z1R1(config)#ip nat inside source static 10.1.1.1 168.1.1.1
% 10.1.1.1 already mapped (10.1.1.1 -> 135.1.1.1)//提示信息告诉咱们,已经被映射出去了,不能再进行映射了//

if use "extendable" option

Z1R1(config)#no ip nat inside source static 10.1.1.1 135.1.1.1
Z1R1(config)#ip nat inside source static 10.1.1.1 135.1.1.1 extendable
Z1R1(config)#ip nat inside source static 10.1.1.1 168.1.1.1 extendable
Z1R1(config)#do sh ip nat trans
Pro Inside global Inside local Outside local Outside global
--- 135.1.1.1 10.1.1.1 --- ---//现在被映射到了不同isp的地址//
--- 168.1.1.1 10.1.1.1 --- ---

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章