H3C 华为 06-NAT命令

2019-02-20 23:21

06-NAT命令

目 录

1 NAT配置命令

1.1 NAT配置命令

1.1.1 display nat address-group 1.1.2 display nat all 1.1.3 display nat bound 1.1.4 display nat dns-map 1.1.5 display nat server 1.1.6 display nat static 1.1.7 display nat statistics 1.1.8 display userlog export 1.1.9 nat address-group 1.1.10 nat dns-map 1.1.11 nat outbound

1.1.12 nat outbound static

1.1.13 nat server (for normal nat server) 1.1.14 nat static

1.1.15 nat static net-to-net

1 NAT配置命令

1.1 NAT配置命令

1.1.1 display nat address-group

【命令】

display nat address-group [ group-number ] 【视图】

任意视图 【缺省级别】

1:监控级 【参数】

group-number:表示地址池索引号。取值范围为0~255。 【描述】

display nat address-group命令用来显示NAT地址池的信息。 相关配置可参考命令nat address-group。 【举例】

# 显示NAT地址池的信息。

display nat address-group NAT address-group information:

There are currently 2 nat address-group(s)

1 : from 202.110.10.10 to 202.110.10.15 2 : from 202.110.10.20 to 202.110.10.25

# 显示索引号为1的NAT地址池信息。

display nat address-group 1 NAT address-group information:

1 : from 202.110.10.10 to 202.110.10.15

表1-1 display nat address-group命令显示信息描述表

字段 NAT address-group information There are currently 2 nat address-group(s) 1 : from 202.110.10.10 to 202.110.10.15 显示NAT地址池信息 存在两条NAT地址池信息 1号地址池的IP地址范围为202.110.10.10到202.110.10.15 描述

1.1.2 display nat all

【命令】

display nat all 【视图】

任意视图 【缺省级别】

1:监控级 【参数】

无 【描述】

display nat all命令用来显示所有的NAT配置信息。 【举例】

# 显示所有的关于地址转换的配置信息。

display nat all

NAT address-group information:

There are currently 1 nat address-group(s)

1 : from 202.110.10.10 to 202.110.10.15

NAT bound information:

There are currently 1 nat bound rule(s) Interface: Ten-GigabitEthernet0/0.1

Direction: outbound ACL: 2009 Address-group: 1 NO-PAT: N

NAT server in private network information: There are currently 1 internal server(s)

Interface: Ten-GigabitEthernet0/0.2, Protocol: 6(tcp) Global: 5.5.5.5 : 80(www) Local : 192.1.1.1 : 80(www)

NAT static information:

There are currently 1 NAT static configuration(s) single static:

Local-IP : 1.1.1.1 Global-IP : 2.2.2.2 Local-VPN : ---

NAT static enabled information:

Interface Direction Ten-GigabitEthernet0/0.4 out-static

# 显示所有的关于地址转换的配置信息。

display nat all

NAT address-group information:

There are currently 2 nat address-group(s)

1 : from 202.110.10.10 to 202.110.10.15 2 : from 202.110.10.20 to 202.110.10.25

NAT bound information:

There are currently 1 nat bound rule(s) Interface: TenGigabitEthernet0/0.1

Direction: outbound ACL: 2036 Address-group: --- NO-PAT: N

NAT server in private network information: There are currently 1 internal server(s)

Interface: Ten-GigabitEthernet0/0.1, Protocol: 6(tcp) Global: 50.1.1.1 : 23(telnet) Local : 192.168.10.15 : 23(telnet)

NAT static information:

There are currently 2 NAT static configuration(s) net-to-net:

Local-IP : 1.1.1.0 Global-IP : 2.2.2.0

Netmask : 255.255.255.0 Local-VPN : vpn1

single static:

Local-IP : 4.4.4.4 Global-IP : 5.5.5.5 Local-VPN : ---

NAT static enabled information:

Interface Direction Ten-GigabitEthernet0/0.2 out-static

表1-2 display nat all命令显示信息描述表

字段 NAT address-group information There are currently 1 nat address-group(s) NAT地址池信息 存在1条NAT地址池信息,具体显示信息字段的描述请参见命令display nat address-group 内部地址和外部地址的转换配置信息,具体显示信息字段的描述请参见命令display nat bound 存在1条地址转换关联信息 静态地址转换信息,具体显示信息字段的描述请参见命令display nat static 存在2条静态转换表项 接口静态地址转换的使能的信息,具体显示信息字段的描述请参见命令display nat static 描述 NAT bound information There are currently 1 nat bound rule(s) NAT static information There are currently 2 NAT static configuration(s) NAT static enabled information

1.1.3 display nat bound

【命令】

display nat bound 【视图】

任意视图 【缺省级别】

1:监控级 【参数】

无 【描述】

display nat bound命令用来显示地址转换关联的配置信息。 相关配置可参考命令nat inbound和nat outbound。

【举例】

# 显示配置的地址转换的信息。

display nat bound NAT bound information:

There are currently 3 nat bound rule(s) Interface:Ten-GigabitEthernet0/0.1

Direction: outbound ACL: 2000 Address-group: 319 NO-PAT: Y

Interface: Ten-GigabitEthernet0/0.2

Direction: outbound ACL: 3000 Address-group: 300 NO-PAT: N

Interface: Ten-GigabitEthernet0/0.3

Direction: outbound ACL: 2001 Address-group: --- NO-PAT: N

表1-3 display nat bound命令显示信息描述表

字段 NAT bound information: There are currently 3 nat bound rule(s) Interface Direction ACL Address-group NO-PAT 描述 显示内部地址和外部地址的转换信息 存在3条地址转换关联信息 地址转换关联的接口 地址转换方向,inbound表示入方向,outbound表示出方向,设备暂不支持入方向 地址池关联的ACL规则 地址池索引,EASY IP方式下该项无内容 是否支持NOPAT方式

1.1.4 display nat dns-map

【命令】

display nat dns-map 【视图】

任意视图 【缺省级别】

1:监控级 【参数】

无 【描述】

display nat dns-map命令用来显示NAT DNS mapping的配置信息。 相关配置可参考命令nat dns-map。 【举例】

# 显示NAT DNS mapping的配置信息。


H3C 华为 06-NAT命令.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:包头市预包装食品零售企业名录126家

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: