Heim >Datenbank >MySQL-Tutorial >Cisco 2600上配置PAT(端口地址转换)

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:06:001790Durchsuche

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>默认路由

  测试结果:在内网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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn