![](https://i-blog.csdnimg.cn/blog_migrate/1e55039a9d90875499877417ea29bc80.png)
![](https://i-blog.csdnimg.cn/blog_migrate/1c6adf7b2c86fd1ff6d7b6f1c35a5881.png)
实验
![](https://i-blog.csdnimg.cn/blog_migrate/4226451e5ae0eff4e3e0ac6f3543831c.png)
静态地址、动态地址、端口映射
配置好IP地址
路由器AR1配置默认路由
在路由器AR1上的 g0/0/1
nat static enable
nat static global 200.1.1.100 inside 192.168.1.1
rule permit source 192.168.1.0 0.0.0.255
undo nat static global 200.1.1.100 inside 192.168.1.1
undo nat static enable
nat outbound 2000 address-group 1 no-pat
nat server protocol tcp global current-interface www inside 192.168.1.3 www
ip route-static 0.0.0.0 0.0.0.0 200.1.1.2
EASY IP
使用列表匹配私网的ip地址
将所有的私网地址映射成路由器当前接口的公网地址
acl 2001
rule permit source 192.168.1.0 0.0.0.255
nat outbound 2001
display nat session all