NAT地址转换技术原理
步骤:PC1-PC4配地址
LSW1:v b 10 20 30 40 六接口accsee
静态NAT
进虚拟地址 配相应IP
ip route-static 0.0.0.0 0.0.0.0 11.0.0.1
AR1:进两接口 配地址 开启
ip route-static 192.168.10.0 24 11.0.0.2
ip route-static 192.168.20.0 24 11.0.0.2
ip route-static 192.168.30.0 24 11.0.0.2
ip route-static 0.0.0.0 0.0.0.0 12.0.0.2
iint g0/0/1 nat static global 8.8.8.8 inside 192.168.10.10
R2:int g0/0/0 给地址
ip route static 8.8.8.8 255.255.255.255 12.0.0.1
R2: int loo 0 给地址
int g0/0/2 给地址
ping 114.114.114.114
动态NAT
R1: nat address-group 1 212.0.0.100 212.0.0.200
acl 2000
rule permit source 192.168.20.0 0.0.0.255
rule permit source 192.168.10.0 0.0.0.255
int g0/0/1
nat outband 2000 address-group 1 no-pat
R2:ip route-static 212.0.0.0 24 12.0.0.1
Easy Ip
R1:acl 3000
rule permit ip source 192.168.30.0 0.0.0.255
int g0/0/1
nat outband 3000
NAT server
server 1 http server D盘里用文档做个页面( txt-html) 启用
R1:int g/0/1 nat server protocal tcp global 9.9.9.9 www inside 192.168.10.100 www
R2:ip route-static 9.9.9.9 255.255.255.255 12.0.0.1

浙公网安备 33010602011771号