配置地址池 :
<H3C>system-view
[H3C]nat address-group group-number start-add end-add
配置一对一静态地址转换
1.
<H3C>system-view
[H3C]nat static local-ip(本地IP) global-ip(通用IP)
[H3C]interface (端口号)
[H3C-inter]nat outbound static (把这个端口设置为出站)
2.
<H3C>system-view
[H3C]interface nat interface-number
[H3C-NAT]nat static local-ip golbal-ip
[H3C-NAT]quit
[H3C]interface (端口号)
[H3C-INT]nat outbound static (把这个端口设置为出站)
cisco:
ip nat inside source static local-ip global-ip
int (端口号)
ip nat inside
int (端口号)
ip nat outside
配置网段对静态地址的转换
1.
<H3C>system-view
[H3C]interface nat interface-number
[H3C-NAT]nat static net-to-net local-network global-network
[H3C-NAT]quit
[H3C]interface (接口地址号)
[H3C-int]nat outbound static (把这个端口设置为出站)
2.
<H3C>system-view
[H3C]nat static net-to-net local-start-address local-end-address global global-network
[H3C]interface (端口号)
[H3C-INT]nat outbound static (把这个端口设置为出站)
配置动态NAT
1.EASY IP
<H3C>system-view
[H3C]interface (端口号)
[H3C-INT]nat outbound acl-number [next-hop ip-address(可选,按设备定)]
2.NOPAT
<H3C>system-view
[H3C]interface (端口号)
[H3C-INT]nat outbound acl-number address-group group-number nopat
或者在入接口配置
[H3C-INT]nat inbound acl-number address-group group-number nopat
3.NAPT
<H3C>system-view
[H3C]interface (端口号)
[H3C-INT]nat outbound acl-number address-group group-number
或者在入接口配置
[H3C-INT]nat inbound acl-number address-group group-number