nat地址转换
int lo0
ip add 8.8.8.8 24
在链接外网的网关配置缺省路由下一跳为运营商ip地址
出接口in g0/1配置nat outbound,自动转换地址
nat调试命令:
display nat session
terminal debugging
terminal monitor
debugging nat event
debugging nat packet
先配置后ping
nat配置特定的公网地址,在网关路由器建立地址池
nat address-group 1
add 12.1.1.3 12.1.1.4
acl访问控制列表
acl basic 2000
rule permit source 192.168.10.0 0 0.0.0.255
in g0/1
nat outbound 2000 address-group 1
R1
nat server protocol tcp global 12.1.1.4 inside 192.168.10.5 23
将内网的23号端口转换映射出去。只能telnet,不能ping