静态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之间都造成映射//app

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

if you do not use ext option:ide

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" optionserver

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 --- ---ip

相关文章
相关标签/搜索