当前位置: 首页 > 工具软件 > EntDIY-NAT > 使用案例 >

h3c交换机配置nat_H3C-NAT 命令配置

淳于亦
2023-12-01

配置地址池 :

&ltH3C&gtsystem-view

[H3C]nat address-group group-number start-add end-add

配置一对一静态地址转换

1.

&ltH3C&gtsystem-view

[H3C]nat static local-ip(本地IP) global-ip(通用IP)

[H3C]interface (端口号)

[H3C-inter]nat outbound static (把这个端口设置为出站)

2.

&ltH3C&gtsystem-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.

&ltH3C&gtsystem-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.

&ltH3C&gtsystem-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

&ltH3C&gtsystem-view

[H3C]interface (端口号)

[H3C-INT]nat outbound acl-number [next-hop ip-address(可选,按设备定)]

2.NOPAT

&ltH3C&gtsystem-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

&ltH3C&gtsystem-view

[H3C]interface (端口号)

[H3C-INT]nat outbound acl-number address-group group-number

或者在入接口配置

[H3C-INT]nat inbound acl-number address-group group-number

 类似资料: