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

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