14-网关模式命令
本章节下载: 14-网关模式命令 (123.82 KB)
目 录
1.1.1 display gateway-mode forwarding-cache
1.1.3 reset gateway-mode forwarding-cache statistics
【命令】
display gateway-mode forwarding-cache slot slot-number [ source-ip ip-address [ mask-length ] | source-port port-number ] | destination-ip ip-address [mask-length ] | destination-port port-number ] | protocol { tcp | udp | protocol-type } ]*
display gateway-mode forwarding-cache summary slot slot-number
【视图】
任意视图
【缺省级别】
1:监控级
【参数】
source-ip:表示按照源IP地址信息来进行显示。
destination-ip:表示按照目的IP地址信息来进行显示。
source-port:表示按照源端口信息来进行显示。
destination-port:表示按照目的端口信息来进行显示。
protocol:表示按照协议类型进行显示。
ip-address mask-length:指定的IP地址(点分十进制格式)及掩码长度,mask-length的取值范围为1~32。
port-number:TCP或UDP的端口号,用数字表示时,取值范围为0~65535
tcp : 显示tcp协议缓存
udp : 显示udp协议缓存
protocol-type:IP承载的协议类型。取值范围为0~255;如1(ICMP)、6(TCP)、17(UDP)。
summary: 显示设备网关模式转发缓存的概要信息
slot slot-number:显示指定单板上网关模式高速转发缓存的相关信息,slot-number表示单板所在的槽位号。
【描述】
display gateway-mode forwarding-cache命令用来显示设备网关模式高速转发缓存的相关信息。网关模式未生效时,执行此命令无输出。
SR6600路由器各款型对于本节所描述的命令及参数的支持情况有所不同,详细差异信息如下:
型号 |
命令 |
参数 |
描述 |
SR6602 |
display gateway-mode forwarding-cache |
slot slot-number |
不支持 |
SR6602-X |
不支持 |
||
SR6604/SR6608/SR6616 |
支持 |
||
SR6604-X/SR6608-X/SR6616-X |
支持 |
【举例】
#显示高速转发缓存表项相关信息
<H3C> display gateway-mode forwarding-cache
Gateway-mode Forwarding-cache:
Total found: 2 items
================================================================================
Source IP/Port Dest IP/Port Pro In_If Out_If Byts
60.0.0.2/1024 50.0.0.2/1024 UDP XGE0/0/1 XGE0/0/0 3732
270048
50.0.0.2/1024 60.0.0.2/1024 UDP XGE0/0/0 XGE0/0/1 3732
217348
================================================================================
# 按照源IP地址来显示高速转发缓存表项相关信息
<H3C> display gateway-mode forwarding-cache source-ip 222.222.222.2 24
Gateway-mode Forwarding-cache:
Total found: 3 items
================================================================================
Source IP/Port Dest IP/Port Pro In_If Out_If Bytes
222.222.222.91/1031 202.202.202.2/1025 UDP GE0/1 GE0/2 65621544
222.222.222.135/1075 202.202.202.2/1025 UDP GE0/1 GE0/2 65621544
222.222.222.238/1077 202.202.202.2/1025 UDP GE0/1 GE0/2 65621544
================================================================================
# 按照目的IP地址来显示高速转发缓存表项相关信息
<H3C> display gateway-mode forwarding-cache destination-ip 202.202.202.2 24
Gateway-mode Forwarding-cache:
Total found: 3 items
================================================================================
Source IP/Port Dest IP/Port Pro In_If Out_If Bytes
222.222.222.91/1031 202.202.202.2/1025 UDP GE0/1 GE0/2 65621544
222.222.222.135/1075 202.202.202.2/1025 UDP GE0/1 GE0/2 65621544
222.222.222.238/1077 202.202.202.2/1025 UDP GE0/1 GE0/2 65621544
================================================================================
#显示槽位6上单板的高速转发缓存的概要信息
<H3C> display gateway-mode forwarding-cache summary slot 6
Gateway-mode Forwarding-cache Summary:
The number of used caches : 0
The number of free caches : 2097152
The number of aging caches : 0
The number of Portal users : 0
表1-1 display gateway-mode forwarding-cache 命令显示信息描述表
字段 |
描述 |
Source IP/Port |
源IP/源端口,无端口信息的用“-”表示 |
Dest IP/Port |
目的IP/目的端口,无端口信息的用“-”表示 |
Pro |
IP协议类型 |
In_If |
报文入接口 |
Out_If |
报文出接口 |
Byts/Bytes |
已经转发的字节统计 |
Total found |
已经搜索到的转发缓存表项数 |
The number of used caches |
已经使用的缓存表项数目 |
The number of free caches |
当前空闲的缓存表项数目 |
The number of aging caches |
等待老化的缓存表项数目 |
The number of Portal users |
当前的Portal用户数目 |
【命令】
gateway-mode
undo gateway-mode
【视图】
系统视图
【缺省级别】
2:系统级
【参数】
无
【描述】
SR6600出厂缺省工作在普通模式(Normal),该工作模式提供SR6600路由器的全部功能。
gateway-mode命令用来使能SR6600的网关工作模式(Gateway);
undo gateway-mode 命令用以关闭SR6600的网关工作模式。
在设备上执行该命令并根据提示信息重启设备后,命令才能生效。并且,该配置无法使用display current-configuration命令查看。但可以使用display device命令查看设备当前的工作模式以及重启后将生效的工作模式。
· 网关模式是专门针对网关应用需求而特别优化的工作模式。设备的网关模式生效后,原先缺省工作模式的部分功能将不再支持。
· 网关模式对内存容量要求较高,建议用户将SR6600设备内存升级到2GB,再使能网关模式,其网关功能的容量和性能才可以获得最大的提升。
【举例】
# 设备当前工作模式为普通模式(Normal),配置使能网关工作模式(Gateway)
[H3C] system-view
[H3C] gateway-mode
Info: Please reboot the device to make the configuration take effect.
<H3C> display device
System-mode(Current/After Reboot): Gateway/Gateway
Slot No. Board type Status Primary SubSlots
---------------------------------------------------------------------
0 SR6602-X2 Normal Master 0
1 FIP-10 Normal N/A 4
【命令】
reset gateway-mode forwarding-cache statistics slot slot-number
【视图】
用户视图
【缺省级别】
2:系统级
【参数】
slot slot-number:清除指定单板上网关模式高速转发缓存中的报文统计计数,slot-number表示单板所在的槽位号。
【描述】
reset gateway-mode forwarding-cache statistics命令用来清除网关模式转发缓存中的报文统计计数。
SR6600路由器各款型对于本节所描述的命令及参数的支持情况有所不同,详细差异信息如下:
型号 |
命令 |
参数 |
描述 |
SR6602 |
reset gateway-mode forwarding-cache statistics |
slot slot-number |
不支持 |
SR6602-X |
不支持 |
||
SR6604/SR6608/SR6616 |
支持 |
||
SR6604-X/SR6608-X/SR6616-X |
支持 |
【举例】
# 显示网关模式转发缓存中的报文统计计数。
<H3C> display gateway-mode forwarding-cache destination-ip 202.202.202.2 24
Gateway-mode Forwarding-cache:
============================================================================
Source IP/Port Dest IP/Port Pro In_If Out_If Bytes
222.222.222.91/1031 202.202.202.2/1025 UDP GE0/0/1 GE0/0/2 65646840
222.222.223.100/1094 202.202.202.2/1025 UDP GE0/0/1 GE0/0/2 65646840
222.222.225.9/1111 202.202.202.2/1025 UDP GE0/0/1 GE0/0/2 65646840
============================================================================
Total found: 3 items
# 清除网关模式转发缓存中的报文统计计数。
<H3C>reset gateway-mode forwarding-cache statistics
<H3C>display gateway-mode forwarding-cache destination-ip 202.202.202.2 24
Gateway-mode Forwarding-cache:
==========================================================================
Source IP/Port Dest IP/Port Pro In_If Out_If Bytes
222.222.222.91/1031 202.202.202.2/1025 UDP GE0/0/1 GE0/0/2 0
222.222.223.100/1094 202.202.202.2/1025 UDP GE0/0/1 GE0/0/2 0
222.222.225.9/1111 202.202.202.2/1025 UDP GE0/0/1 GE0/0/2 0
==========================================================================
Total found: 3 items
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!