Home > Database > Mysql Tutorial > Cisco 2600上配置PAT(端口地址转换)

Cisco 2600上配置PAT(端口地址转换)

WBOY
Release: 2016-06-07 15:06:00
Original
1767 people have browsed it

C isco 2600上 配置 pat( 端口 地址 转换 )过程: 环境: 内网口 F0/0,IP:192.168.0.1/24,外网口 F0/1,IP:172.16.19.12/16,连接公司路由器 172.16.1.1/16; 配置 过程: (config)#int f0/0 / 配置 F0/0 端口 ,内网口;(config-if)#ip address 192.168

  Cisco 2600上配置pat(端口地址转换)过程:

  环境:  内网口 F0/0,IP:192.168.0.1/24,外网口 F0/1,IP:172.16.19.12/16,连接公司路由器

  172.16.1.1/16;

  配置过程:

(config)#int f0/0                                / <strong>配置</strong>F0/0<strong>端口</strong>,内网口;
(config-if)#ip address 192.168.0.1 255.255.255.0
(config-if)#ip nat inside
(config-if)#no sh
(config-if)#exit
(config)#int f0/1                               / <strong>配置</strong>F0/1<strong>端口</strong>,内网口;
(config-if)#ip address 172.16.19.12 255.255.0.0
(config-if)#ip nat outside
(config-if)#half-duplex                         /有可能配
(config-if)#no sh
(config-if)#exit
(config)#ip nat pool *** 172.16.19.12 172.16.19.12 netmask 255.255.0.0
 /<strong>配置</strong>外网口池nat
(config)#access-list 1 permit 192.168.0.0 0.0.0.255       /<strong>配置</strong>内网口段
(config)#ip nat inside source list 1 pool *** overload    /<strong>配置</strong>PAT
(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.1              /<strong>配置</strong>默认路由
Copy after login

  测试结果:在内网pc上(ip 192.168.0.2)ping 172.16.19.12和 61.177.7.1 和 通否。

  端口映射示例:

  Ip nat inside source static tcp 192.168.1.2 80 202.99.220.130 80

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template