Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3450025
  • 博文数量: 349
  • 博客积分: 5771
  • 博客等级: 大校
  • 技术积分: 4193
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-06 11:52
个人简介

it

文章分类

全部博文(349)

文章存档

2019年(2)

2018年(2)

2017年(1)

2016年(2)

2015年(18)

2014年(36)

2013年(69)

2012年(100)

2011年(62)

2010年(57)

分类: 系统运维

2011-12-19 09:52:29

在学习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 --- ---

阅读(9501) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

ylky_20002011-12-19 10:36:19

路由方面,设置默认路由指向isp1,设置对应的静态路由器指向isp2,并做一个默认路由的浮动路由指向isp2,用来做备份。