赞
踩
锐捷NAT配置加简单ACL
配置ACl
ip access-list standard 1
10 permit 192.168.10.0 0.0.0.255
20 deny any
配置nat地址池
ip nat pool 1 1.1.1.1 1.1.1.1 netmask 255.255.255.255
配置nat内、外网口
int g 0/0
ip nat inside
int g 0/1
ip nat outside
配置nat转换策略
ip nat inside source list 1 pool 1 overload
acl配置扩展
ip access-list standard 1 (1-99) 标准acl
ip access-list extended 100 (100-199) 扩展acl
ip access-list standard/extended word
show access-list /查看acl
nat地址池配置
ip nat pool 1 1.1.1.1 1.1.1.1 netmask 255.255.255.255
ip nat pool 1 netmask 255.255.255.255
address 1.1.1.1 1.1.1.1
源
静态nat
基于IP
ip nat inside source static 172.16.1.100(内) 192.168.2.168(外) permit-inside
基于TCP UDP
ip nat inside source static tcp 172.16.1.100(内) 23(端口号) 192.168.2.168(外) 23
show ip nat teanslatons 查看NAT转换表
外部源(转换目的地址)
基于ip
ip nat outside source static 1.0.23.3 192.168.10.100
当内网访问192.168.10.100时源地址会转换为1.0.23.3
基于TCP UDP
ip nat outside source static tcp 1.0.23.3 192.168.10.100
nat做tcp的负载均衡
ip access-list extended 100
10 permit ip any host 1.0.0.100
ip nat pool 1 192.168.1.1 192.168.1.2 netmask 255.255.255.0 type rptary
ip nat inside destination list 100 pool 1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。