静态NAT

Router(config)#ip nat inside source static tcp 192.168.100.2 61.159.62.131   指定地址转换映射

Router(config)#ip nat inside source static tcp192.168.100.3 61.159.62.132   指定地址转换映射

在内部和外部接口上启用NAT

Router(config)#int f0/0

Router(config-if)#ip nat inside    inside内部

Router(config)#intint f0/1

Router(config-if)#ip nat outside   outside外部



动态NAT

Router(config)#access-list 1 permit 192.168.100.0 0.0.0.255   定义ACL,限制能做NAT装换的内网地址

Router(config)#ip nat pool test 61.159.62.131 61.159.62.149 netmask 255.255.255.0   定义合法公网IP地址池

Router(config)#ip nat inside source list 1 pool test   将上两步映射,实现网络转换

在内部和外部接口上启用NAT

Router(config)#int f0/0

Router(config-if)#ip nat inside

Router(config)#int f0/1

Router(config-if)#ip nat outside



PATport多路复用

Router(config)#access-list 1 permit 192.168.100.0 0.0.0.255   定义ACL,限制能做NAT装换的内网地址

Router(config)#ip nat pool test 61.159.62.131 61.159.62.131 netmask 255.255.255.0   定义合法公网IP地址池

Router(config)#ip nat inside source list 1 pool test overload   将上两步映射,实现网络转换

在内部和外部接口上启用NAT

Router(config)#int f0/0

Router(config-if)#ip nat inside

Router(config)#int f0/1

Router(config)#p nat outside



方式二,其余网关外网接口IP的转换

Router(config)#access-list 1 permit 192.168.100.0 0.0.0.255   定义ACL,限制能做NAT装换的内网地址

Router(config)#ip nat inside source list 1 int f0/1 overload  将ACL和外网接口映射,实现网络转换

在内部和外部接口上启用NAT

Router(config)#int f0/0

Router(config)#ip nat inside

Router(config)#int f0/1

Router(config)#ip nat outside

NAT配置的更多相关文章

  1. 【Ubuntu】NAT配置

    1.简介 2.配置 1.简介 NAT(Network Address Translation,网络地址转换)是将IP 数据包头中的IP 地址转换为另一个IP 地址的过程.在实际应用中,NAT 主要用于 ...

  2. Network Object NAT配置介绍

    1.Dynamic NAT(动态NAT,动态一对一) 实例一: 传统配置方法: nat (Inside) 1 10.1.1.0 255.255.255.0 global (Outside) 1 202 ...

  3. Juniper srx防火墙NAT配置

    一.基础操作说明: 1.  设备恢复出厂化 root# load factory-default root# set system root-authentication plain-text-pas ...

  4. CISCO 过载NAT配置(小型网络)

    一.实验涉及技术  vlan(虚拟局域网). svi(三层交换) .nat(网络地址转换).static router(静态路由) 三.实验目的: 通过配置过载NAT从而实现企业内网正常访问公网,PC ...

  5. centos LB负载均衡集群 三种模式区别 LVS/NAT 配置 LVS/DR 配置 LVS/DR + keepalived配置 nginx ip_hash 实现长连接 LVS是四层LB 注意down掉网卡的方法 nginx效率没有LVS高 ipvsadm命令集 测试LVS方法 第三十三节课

    centos   LB负载均衡集群 三种模式区别 LVS/NAT 配置  LVS/DR 配置  LVS/DR + keepalived配置  nginx ip_hash 实现长连接  LVS是四层LB ...

  6. NAT配置与管理

    为解决IPv4地址日益枯竭,出现NAT(Network Address Translation,网络地址转换)技术.NAT可以将来自一个网络的IP数据报报头中的IP地址(可以是源IP地址或目的IP地址 ...

  7. LVS/NAT 配置

    LVS/NAT 配置 实验环境 三台主机:Linux Centos 6.4 32位 调度器Director:192.168.1.160(内网IP).192.168.2.20(公网IP) HTTP真实服 ...

  8. 外网Telnet虚拟机,及nat配置等

    环境整体是使用GNS3,通过cloud真实连接到虚拟机 cloud1 nginx主机 cloud2 nginx主机https连接 cloud3 Internet测试主机 下面贴每个网络设备配置,特别注 ...

  9. 计算机网路之动态NAT配置

    配置路由端口的ip地址与打开(省略) 配置路由协议 router eigrp 100 network 211.1.1.0(网络号) 0.0.0.255(通配子掩) network 192.168.1. ...

  10. 华为路由器AR1220F-S的端口映射NAT配置(拨号光纤上网)

    telnet 登录 或者ssh登录路由器 //进入系统试图界面 sys-view //第一步. 添加acl规则, 允许内网本身访问对外的公网ip. 否则,只能外部人员访问你的公网ip [Huawei] ...

随机推荐

  1. Linux - 配置php-fpm 以及 配置nginx支持php

    配置php-fpm [root@localhost php7]# which php-fpm /usr/local/php7/sbin/php-fpm [root@localhost php7]# p ...

  2. Swift3.0中关于日期类的使用指引

    日期的处理在大大小小的iOS项目中都十分常见,随着Swift3.0正式版的即将推出,语法的改变让NSDate以及相关类的使用都与之前略有不同,这里将会对基于Swift3.0版本的NSDate及相关类的 ...

  3. 前后端分离开发,基于SpringMVC符合Restful API风格Maven项目实战(附完整Demo)!

    摘要: 本人在前辈<从MVC到前后端分离(REST-个人也认为是目前比较流行和比较好的方式)>一文的基础上,实现了一个基于Spring的符合REST风格的完整Demo,具有MVC分层结构并 ...

  4. 2015 多校赛 第二场 1004 hdu(5303)

    Problem Description There are n apple trees planted along a cyclic road, which is L metres long. You ...

  5. C#中的值类型、引用类型,代码告诉你他是什么类型。

    C#代码告诉你这是什么类型. using System; using System.Collections.Generic; using System.Linq; using System.Text; ...

  6. .net web api跨域问题

    No 'Access-Control-Allow-Origin' Ajax跨域访问解决方案   No 'Access-Control-Allow-Origin' header is present o ...

  7. Several Ideas on Perl List Context

    According to Beginning Perl Book published by Tsinghua Pub., the list context appears when you are t ...

  8. map使用

    // map使用 1 #include <iostream> #include "insertVal.h" #include "sort.h" us ...

  9. 第5章分布式系统模式 使用客户端激活对象通过 .NET Remoting 实现 Broker

    正在 .NET 中构建一个需要使用分布式对象的应用程序,并且分布式对象的生存期由客户端控制.您的要求包括能够按值或按引用来传递对象,无论这些对象驻留在同一台计算 机上,还是驻留在同一个局域网 (LAN ...

  10. [ Linux ] [ OS ] [ memory ] Linux 如何查看系統硬體的記憶體(RAM)資訊

    cat /proc/meminfo https://blog.longwin.com.tw/2013/05/linux-ram-memory-info-2013/