Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 冲浪技巧 > NAT配置
【标  题】:NAT配置
【关键字】:NAT
【来  源】:http://www.cublog.cn/u/14201/showart.php?id=182594

NAT配置

Your Ad Here

NAT配置

一.使用ACL做NAT决策
ip nat pool trusted_pool 192.168.2.1 192.168.2.254 prefix-lenght 24
ip nat pool untrusted_pool 192.168.3.1 192.168.3.254 prefix-lenght 24
 
ip nat inside source list 102 pool trusted_pool
ip nat inside source list 103 pool untrusted_pool
 
int e0
   ip addr 10.1.1.1 255.255.0.0
   ip nat inside
   no sh
   exit
int serial 0
   ip addr 172.16.2.1 255.255.255.0
   ip nat outside
   no sh
   exit
access-list 102 permit ip 10.1.1.0 0.0.0.255 172.16.1.0 0.0.0.255
access-list 102 permit ip 10.1.1.0 0.0.0.255 192.168.200.0 0.0.0.255
access-list 103 permit ip 10.1.1.0 0.0.0.255 any
 
使用路由映射表配置NAT
ip nat pool sales_pool 192.168.2.1 192.168.2.254 prefix-lenght 24
ip nat pool acct_pool 192.168.3.1 192.168.3.254 prefix-lenght 24
 
ip nat inside source  route-map what_is_sales_doing pool sales_pool
ip nat inside source route-map what_is_acct_doing pool acct_pool
 
iint e0
   ip addr 10.1.1.1 255.255.0.0
   ip nat inside
   no sh
   exit
 
int s0
   ip addr 192.16.2.1 255.255.255.0
   ip nat outside
   no sh
   exit
route-map what_is_sales_doing permit 10
   match ip address 2
 
route-map what_is_acct_doing permit 10
   match ip address 3
 
access-list 2 permit 10.1.2.0 0.0.0.255
access-list 3 permit 10.1.3.0 0.0.0.255
 
 
验证:
sh ip nat translations
连接两家ISP时使用基于路由策略的选择:【上一篇】
cisco ios入侵检测系统:【下一篇】
【相关文章】
  • 介绍防火墙NAT
  • Hibernate的主键机制
  • Spring, Hibernate与Struts集成的大概思路
  • 我对Hibernate的5个核心接口的理论理解
  • 采用struts+hibernate+spring开发的一个web系统(2)
  • 采用struts+hibernate+spring开发的一个web系统(3)
  • 用native2ascii转化字符集
  • 采用struts+hibernate+spring开发的一个web系统
  • Spring+Struts+Hibernate注意
  • hibernate 的cascade和inverse
  • 【随机文章】
  • 什么才是优秀布线系统
  • 解析 Eicon PHS 无线接入技术
  • Photoshop中折扇的制作技巧
  • Jan Goyvaerts正则表达式(二)
  • OpenSSH的安装和设置
  • ty8toly
  • 几个简单的代码优化技术(一)
  • 采用struts+hibernate+spring开发的一个web系统 正式提供下载
  • Video over ADSL 解决方案探讨
  • 关于 20 分钟 写一个操作系统, (应该是写一个引导记录后打出来几句话)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.