Category 5 NAT address translation experiment

 If there is a will, things will come true. If the cauldron sinks the boat, a hundred and two Qin passes will eventually belong to Chu; if there is a will, the sky will not fail. If you lie on the salary and taste the courage, three thousand Yuejia can swallow Wu.

 

 

 

 

 AR1 configuration

interface GigabitEthernet0/0/0
 ip address 192.168.1.254 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 100.1.12.254 255.255.255.0 
#
ip route-static 0.0.0.0 0.0.0.0 100.1.12.1

 AR2 configuration

interface GigabitEthernet0/0/0
 ip address 100.1.12.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 100.1.2.254 255.255.255.0 
#
ip route-static 200.1.12.0 255.255.255.0 100.1.12.254
#

The five nat configurations are the same as before

static configuration

[AR1-GigabitEthernet0/0/1]nat static global 200.1.12.1 inside 192.168.1.1

 Effect

NAPT configuration

#
acl number 2000  
 rule 5 permit source 192.168.1.0 0.0.0.255 
#
 nat address-group 1 200.1.12.1 200.1.12.6
#
interface GigabitEthernet0/0/1
 ip address 100.1.12.254 255.255.255.0 
 nat outbound 2000 address-group 1 

 Effect

dynamic nat

#
acl number 2000  
 rule 5 permit source 192.168.1.0 0.0.0.255 
#
 nat address-group 1 200.1.12.1 200.1.12.6
#
interface GigabitEthernet0/0/1
 ip address 100.1.12.254 255.255.255.0 
 nat outbound 2000 address-group 1 no-pat

Effect

Easy IP


acl number 2000  
 rule 5 permit source 192.168.1.0 0.0.0.255 
#

interface GigabitEthernet0/0/1
 ip address 100.1.12.254 255.255.255.0 
 nat outbound 2000
#

Effect

nat server

AR1 configuration

出口g0/0/1路由配置
nat server protocol tcp global 200.1.12.6 ftp inside 192.168.1.3 ftp


系统视图配置
nat alg ftp enable

Start ftp service

 Experimental effect

 

Guess you like

Origin blog.csdn.net/qq_61759561/article/details/133089387
Recommended