靜態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

相關文章
相關標籤/搜索