搜档网
当前位置:搜档网 › 03-VLAN命令

03-VLAN命令

目录

第1章 VLAN配置命令...........................................................................................................1-1

1.1 基本VLAN配置命令..........................................................................................................1-1

1.1.1 description...............................................................................................................1-1

1.1.2 display interface vlan-interface................................................................................1-1

1.1.3 display vlan..............................................................................................................1-3

1.1.4 interface vlan-interface............................................................................................1-4

1.1.5 ip address................................................................................................................1-4

1.1.6 name.......................................................................................................................1-5

1.1.7 port..........................................................................................................................1-6

1.1.8 shutdown.................................................................................................................1-7

1.1.9 vlan..........................................................................................................................1-7

1.1.10 vlan { enable | disable }.........................................................................................1-8

1.2 基于协议VLAN配置命令...................................................................................................1-8

1.2.1 display protocol-vlan interface.................................................................................1-9

1.2.2 display protocol-vlan vlan......................................................................................1-10

1.2.3 port hybrid protocol-vlan vlan................................................................................1-10

1.2.4 protocol-vlan..........................................................................................................1-11第2章 isolate-user-vlan配置命令..........................................................................................2-1

2.1 isolate-user-vlan配置命令.................................................................................................2-1

2.1.1 display isolate-user-vlan..........................................................................................2-1

2.1.2 isolate-user-vlan......................................................................................................2-2

2.1.3 isolate-user-vlan enable..........................................................................................2-3第3章 GARP/GVRP配置命令...............................................................................................3-1

3.1 GARP配置命令..................................................................................................................3-1

3.1.1 display garp statistics..............................................................................................3-1

3.1.2 display garp timer....................................................................................................3-2

3.1.3 garp timer................................................................................................................3-2

3.1.4 garp timer leaveall...................................................................................................3-3

3.1.5 reset garp statistics.................................................................................................3-4

3.2 GVRP配置命令..................................................................................................................3-5

3.2.1 display gvrp statistics..............................................................................................3-5

3.2.2 display gvrp status..................................................................................................3-6

3.2.3 gvrp.........................................................................................................................3-6

3.2.4 gvrp registration.......................................................................................................3-7第4章 Super VLAN配置命令.................................................................................................4-1

4.1 Super VLAN配置命令........................................................................................................4-1

4.1.1 display supervlan.....................................................................................................4-1

4.1.2 subvlan....................................................................................................................4-3

4.1.3 supervlan.................................................................................................................4-3

第1章 VLAN配置命令

1.1 基本VLAN配置命令

1.1.1 description

【命令】

description string

undo description

【视图】

VLAN视图,VLAN接口视图

【参数】

string:描述当前VLAN或VLAN接口的一个字符串。

(1) 描述当前VLAN的字符串长度为1~32个字符。缺省值为该VLAN的VLAN ID,

例如“VLAN 0001”。

(2) 描述VLAN接口的字符串长度为1~80个字符。缺省值为该VLAN接口的接

口名,例如“Vlan-interface1 Interface”。

【描述】

description命令用来设置当前VLAN或VLAN接口的描述字符串,undo

description命令用来恢复当前VLAN或VLAN接口的描述字符串的缺省值。

相关配置可参考命令display vlan,display interface vlan-interface。

【举例】

# 为当前的VLAN指定一个描述字符串“RESEARCH”。

system-view

System View: return to User View with Ctrl+Z.

[Quidway] vlan 1

[Quidway-vlan1] description RESEARCH

[Quidway-vlan1]

1.1.2 display interface vlan-interface

【命令】

display interface vlan-interface [ vlan_id ]

【视图】

任意视图

【参数】

vlan_id:指定VLAN接口的ID。

【描述】

display interface vlan-interface命令用来显示VLAN接口本身的一些相关信息,

包括:VLAN接口的物理状态与链路状态、发送帧格式、VLAN接口对应的MAC地

址、IP地址及子网掩码、VLAN接口描述字符串及MTU等。

z如果指定了vlan_id,显示指定VLAN接口的相关信息;

z如果不指定vlan_id,则显示所有已创建的VLAN接口的相关信息。

相关配置可参考命令interface vlan-interface。

【举例】

# 显示VLAN-interface 2的相关信息。

display interface vlan-interface 2

Vlan-interface2 current state : DOWN

Line protocol current state : DOWN

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is

00e0-fc07-4101

Internet Address is 10.1.1.1/24 Primary

Description : Vlan-interface2 Interface

The Maximum Transmit Unit is 1500

表1-1VLAN接口显示信息描述表

域名描述

Vlan-interface2 current state VLAN接口当前状态

Line protocol current state Line协议当前状态

IP Sending Frames' Format IP发送帧格式

Hardware address VLAN接口对应的MAC地址

Internet Address VLAN接口对应的IP地址

Description VLAN接口描述

The Maximum Transmit Unit 最大传输单元(MTU)

1.1.3 display vlan

【命令】

display vlan [ vlan_id | all | static | dynamic ]

【视图】

任意视图

【参数】

vlan_id:指定VLAN ID,取值范围为1~4094。

all:显示所有VLAN的相关信息。

static:显示系统静态创建的VLAN。

dynamic:显示系统动态创建的VLAN。

【描述】

display vlan命令用来显示VLAN的相关信息。

如果指定vlan_id或all,则显示指定或所有VLAN的相关信息,包括:VLAN ID、

VLAN类型(动态还是静态)、VLAN是否启动了路由功能(如果启动,则显示IP

地址及掩码)、VLAN的描述信息、VLAN包含的端口等。

如果不指定参数,则显示系统已创建的所有VLAN列表。如果选用static或dynamic

参数,则显示系统静态或动态创建的VLAN列表。

相关配置可参考命令vlan。

【举例】

# 显示VLAN2的信息。

display vlan 2

VLAN ID: 2

VLAN Type: static

Route interface: not configured

Description: HUAWEI

Tagged Ports: none

Untagged Ports:

Ethernet0/1 Ethernet0/2 Ethernet0/3

表1-2VLAN2端口显示信息描述表

域名解释

VLAN ID VLAN标识号

VLAN Type VLAN的配置类型(静态配置或动态配置)

域名解释

Route interface VLAN是否具有路由功能

Description VLAN的描述

Tagged Ports 标识该VLAN报文在哪些端口上需要打Tag标记

Untagged Ports 标识该VLAN报文在哪些端口上不需要打Tag标记

1.1.4 interface vlan-interface

【命令】

interface vlan-interface vlan_id

undo interface vlan-interface vlan_id

【视图】

系统视图

【参数】

vlan_id:VLAN接口的标识号,取值范围为1~4094。

【描述】

interface vlan-interface命令用来创建VLAN接口或进入VLAN接口视图,undo

interface vlan-interface命令用来删除一个VLAN接口。

相关配置可参考命令display interface vlan-interface。

【举例】

# 进入VLAN接口1的视图。

[Quidway] interface vlan-interface 1

[Quidway-Vlan-interface1]

1.1.5 ip address

【命令】

ip address ip-address net-mask [ sub ]

undo ip address [ ip-address net-mask [ sub ] ]

【视图】

VLAN接口视图

【参数】

ip_address:VLAN接口的IP地址。

ip_netmask:VLAN接口IP地址的掩码。

sub:表示该地址为VLAN接口从IP地址。

【描述】

ip address命令用来给VLAN接口指定IP地址和掩码,undo ip address命令用

来删除一个VLAN接口的IP地址和掩码。

在一般情况下,一个VLAN接口配置一个IP地址即可,但为了使交换机的一个VLAN

接口可以与多个子网相连,一个VLAN接口可以配置10个IP地址,其中一个为主

IP地址,其余为从IP地址。主从地址的配置关系为:

z当配置主IP地址时,如果接口上已经有主IP地址,则原主IP地址被删除,新配置的地址成为主IP地址。

z undo ip address命令不带任何参数表示删除该接口的所有IP地址。

z undo ip address ip-address net-mask表示删除主IP地址。

z undo ip address ip-address net-mask sub表示删除从IP地址。

相关配置可参考命令display vlan,display interface vlan-interface。

【举例】

# 为VLAN接口20指定IP地址和掩码。

[Quidway-Vlan-interface20] ip address 1.1.1.1 255.0.0.0

1.1.6 name

【命令】

name string

undo name

【视图】

VLAN视图

【参数】

string:表示当前VLAN名称的字符串,长度为1~32字符。缺省值为该VLAN的

VLAN ID。

【描述】

name命令用来为当前的VLAN命名,undo name命令用来恢复当前VLAN名称的

缺省值。

缺省情况下,当前VLAN的名称为该VLAN的VLAN ID。

说明:

Quidway S3552F/S3552G/S3552P/3528G/3528P/S3526E/S3526E FM/S3526E

FS/S3526C以太网交换机支持该命令。

【举例】

# 将当前的VLAN 2命名为hello。

[Quidway-vlan2] name hello

1.1.7 port

【命令】

port interface_list

undo port interface_list

【视图】

VLAN视图

【参数】

interface_list:需要添加到某个VLAN中或从某个VLAN中删除的以太网端口列表,

表示方式为interface_list={ { interface_type interface_num | interface_name } [ to

{ interface_type interface_num | interface_name } ] }&<1-10>。其中interface_type

为端口类型,interface_num为端口号,interface_name为端口名,它们各自的含义

和取值范围请参见本书“端口配置”部分的命令参数,此处不再赘述。关键字to之

后的端口号要大于或等于to之前的端口号。命令中&<1-10>表示前面的参数最多可

以重复输入10次。

需要注意的是,Trunk和Hybrid端口只能通过以太网端口视图下的port和undo

port命令加入VLAN或从VLAN中删除,而不能通过本命令实现。

【描述】

port命令用于向VLAN中添加一个或一组端口,undo port命令用来从VLAN中删

除一个或一组端口。

相关配置可参考命令display vlan。

【举例】

# 向VLAN 2中加入从Ethernet0/4到Ethernet0/7、Ethernet0/9,从Ethernet0/11

到Ethernet0/15的以太网端口,命令的参数重复次数是3次。

[Quidway-vlan2] port ethernet0/4 to ethernet0/7 ethernet0/9 ethernet0/11 to

ethernet0/15

1.1.8 shutdown

【命令】

shutdown

undo shutdown

【视图】

VLAN接口视图

【参数】

【描述】

shutdown命令用来关闭VLAN接口,undo shutdown命令用来打开VLAN接口。

缺省情况下,当VLAN接口下所有以太网口状态为down时,VLAN接口为down

状态,即关闭状态;当VLAN接口下有一个或一个以上的的以太网端口处于up状态,

则VLAN接口处于up状态。

当VLAN接口的相关参数及协议配置好之后,可以使用undo shutdown命令启动

接口;或者当VLAN接口出现故障时,可以用shutdown命令将接口先关闭,然后

再用undo shutdown命令打开接口,这样有可能使接口恢复正常。

关闭和打开VLAN接口对属于这个VLAN的所有以太网端口都没有影响。

【举例】

# 关闭接口后再启动接口。

[Quidway-Vlan-interface2] shutdown

[Quidway-Vlan-interface2] undo shutdown

1.1.9 vlan

【命令】

vlan vlan_id

undo vlan{ vlan_id [ to vlan_id ] | all }

【视图】

系统视图

【参数】

vlan_id:指定要进入的或要创建并进入的VLAN的VLAN ID,其取值范围为1~

4094。

all:删除所有VLAN。

【描述】

vlan命令用来进入VLAN视图,如果指定的VLAN不存在,则该命令先完成VLAN

的创建,然后再进入该VLAN的视图;undo vlan命令用来删除VLAN。

请注意:缺省VLAN即VLAN 1无需创建,也不能被删除。

相关配置可参考命令display vlan。

【举例】

# 进入VLAN 1的视图。

[Quidway] vlan 1

1.1.10 vlan { enable | disable }

【命令】

vlan { enable | disable }

【视图】

系统视图

【参数】

enable:开启设备VLAN特性。

disable:关闭设备VLAN特性。

【描述】

vlan enable命令用来开启设备VLAN特性,vlan disable命令用来关闭设备VLAN

特性。

需要注意的是,在S3500系列以太网交换机中,S3526E/S3526E FM/S3526E

FS/S3526C以太网交换机支持该命令。

相关配置可参考命令display vlan。

【举例】

# 开启设备VLAN特性。

[Quidway] vlan enable

1.2 基于协议VLAN配置命令

说明:

目前只有Quidway S3552G/S3552P/S3528G/S3528P/S3552F以太网交换机支持

基于协议的VLAN配置。

1.2.1 display protocol-vlan interface

【命令】

display protocol-vlan interface { { interface-type interface-num | interface-name }

[ to { interface-type interface-num | interface-name } ] | all }

【视图】

任意视图

【参数】

{ interface-type interface-num | interface-name } [ to { interface-type interface-num

| interface-name } ]:指定要显示协议的端口号。不使用to参数指定一个端口;使

用to参数可以指定连续的多个端口。其中,interface-name为端口名,表示方式为

interface-name=interface-type interface-num。interface-type为端口类型,

interface-num为端口编号。

all:显示所有端口的协议信息。

【描述】

display protocol-vlan interface命令用于显示指定端口上所配置的协议信息及协

议的索引。

相关配置可参考命令display interface。

【举例】

# 显示端口Ethernet0/1、Ethernet0/2上所配置的协议信息及协议的索引。

[Quidway] display protocol-vlan interface ethernet0/1 to ethernet0/2

Interface: Ethernet0/1

VLAN ID Protocol-Index Protocol-type

50 1 ip 192.168.10.1 255.255.255.0

80 2 ip 101.120.34.0 255.255.0.0

100 1 ip 104.232.43.0 255.255.255.0

100 2 ipx ethernetii

Interface: Ethernet0/2

VLAN ID Protocol-Index Protocol-type

50 5 ipx raw

80 1 at

100 3 mode snap etype 0x0abc

100 5 mode llc dsap 0xac ssap 0xbd

1.2.2 display protocol-vlan vlan

【命令】

display protocol-vlan vlan{ vlan-id [ to vlan-id ] | all }

【视图】

任意视图

【参数】

vlan-list:显示指定VLAN的协议信息,取值范围为1~4094。

all:显示所有VLAN的协议信息。

【描述】

display protocol-vlan vlan命令用于显示VLAN上所配置的协议信息及协议的索

引。

相关配置可参考命令display vlan。

【举例】

# 显示VLAN10到VLAN20上所配置的协议信息及协议的索引。

[Quidway] display protocol-vlan vlan 10 to 20

VLAN ID: 10

VLAN Type: Protocol-based VLAN

Protocol-Index Protocol-Type

1 IP 101.120.34.0/24

2 IP 104.232.43.0/24

3 IPX ETH II

4 AT

VLAN ID: 15

VLAN Type: Protocol-based VLAN

Protocol-Index Protocol-Type

1 ip 192.168.10.1 255.255.255.0

2 mode snap etype 0x0abc

……..

1.2.3 port hybrid protocol-vlan vlan

【命令】

port hybrid protocol-vlan vlan vlan-id { protocol_index [ to protocol_end ] | all }

undo port hybrid protocol-vlan vlan vlan-id { protocol_index [ to protocol_end ] |

all }

【视图】

以太网端口视图

【参数】

vlan-id:指定要下发/删除协议的VLAN号。

protocol_index:协议索引初始值,取值范围为0~6。它必须小于等于协议索引终

止值。

protocol_end:协议索引终止值,取值范围为0~6。它必须大于等于协议索引初始

值。

all:所有协议。

【描述】

port hybrid protocol-vlan vlan命令用来下发协议VLAN到指定端口。undo port

hybrid protocol-vlan vlan命令用于取消端口与基于协议VLAN的关联。

需要注意的是,目前只有Hybrid端口支持这个操作,端口在与基于协议的VLAN进

行关联之前必须已经属于该VLAN,否则,不允许进行关联。

相关配置可参考命令display protocol-vlan interface。

【举例】

# 把端口Ethernet0/1与协议VLAN 3中的协议0到6相关联。

[Quidway-Ethernet0/1] port hybrid protocol-vlan vlan 3 0 to 6

1.2.4 protocol-vlan

【命令】

protocol-vlan [ procotol-index ] { at | ip [ ip_address [ net_mask ] ] | ipx

{ethernetii |llc | raw |snap } | mode { ethernetii[ etype etype_id ] | llc [ dsap

dsap_id [ ssap ssap_id ]| ssap ssap_id ] | snap [ etype etype_id ] } }

undo protocol-vlan { protocol_index [ to protocol_end ] | all }

【视图】

VLAN视图

【参数】

at:基于AT(AppleTalk)协议的VLAN。

ip [ ip_address [ net_mask ]:基于IP协议的VLAN。其中,ip_address:IP地址;

net_mask:IP地址掩码。如果没有指定掩码,掩码默认为255.255.255.0。

ipx {ethernetii |llc | raw I snap }:基于IPX协议的VLAN。其中ethernetii |llc |

raw I snap为IPX的四种封装类型。

mode:指定基于其他协议的VLAN。

ethernetii[ etype etype_id ]:基于EthernetII协议的VLAN。其中,etype_id:入

报文的以太网类型,取值范围为600~FFFF。

llc[ dsap dsap_id][ ssap ssap_id ]:基于逻辑链路控制协议的VLAN。其中,

dsap_id:目的服务接入点,取值范围为0~FF。ssap_id:源服务接入点,取值范

围为0~FF。

snap [ etype etype_id ]:基于SNAP(Sub-Network Access Protocol)协议。其中,

etype_id:入报文的以太网类型,取值范围为600~FFFF。

protocol_index:协议索引初始值,取值范围为0~6。它必须小于等于协议索引终

止值。如果不指定该参数,则系统会自动分配一个索引值。

protocol_end:协议索引终止值,取值范围为0~6。它必须大于等于协议索引初始

值。

all:所有协议索引。

注意:

当dsap_id和ssap_id的取值是AA或者是FF时,报文的封装类型将不再是llc,

而将变为snap。

【描述】

protocol-vlan命令用来配置指定VLAN是基于某种协议类型的VLAN,undo

protocol-vlan命令用于取消该配置。

需要注意的是,由于mode llc dsap ff ssap ff的配置与ipx raw的报文格式一样,

而系统优先匹配ipx raw,如匹配不上,则不再继续匹配,故配置vlan-type protocol

mode llc dsap ff ssap ff不会生效。

相关配置可参考命令display protocol-vlan vlan。

【举例】

# 指定VLAN3是基于所有IP报文的VLAN。

[Quidway-vlan3] protocol-vlan ip

# 指定VLAN5是基于123.34.56.0网段的VLAN。

[Quidway-vlan5] protocol-vlan ip 123.34.56.0

第2章 isolate-user-vlan配置命令

说明:

在Quidway S3500系列交换机中,S3552G/S3552P/S3528G/S3528P/S3552F不

支持isolate-user-vlan配置。

2.1 isolate-user-vlan配置命令

2.1.1 display isolate-user-vlan

【命令】

display isolate-user-vlan [ isolate-user-vlan_num ]

【视图】

任意视图

【参数】

isolate-user-vlan_num:已经配置的isolate-user-vlan的VLAN ID,取值范围为1~

4094。

【描述】

display isolate-user-vlan命令用来显示isolate-user-vlan和Secondary VLAN的

映射关系,以及标识isolate-user-vlan和Secondary VLAN映射关系的端口。

相关配置可参考命令isolate-user-vlan enable和isolate-user-vlan。

【举例】

# 显示isolate-user-vlan和Secondary VLAN的映射关系。

[Quidway] display isolate-user-vlan

Isolate-user-VLAN Vlan ID : 3

Secondary Vlan ID : 4-5

Vlan ID: 3

Vlan Type: static

Isolate-user-VLAN type : isolate-user-VLAN

Route Interface: not configured

Description: VLAN 0003

Tagged Ports: none

Untagged Ports:

Ethernet0/4 Ethernet0/8 Ethernet0/18

Vlan ID: 4

Vlan Type: static

Private-vlan Type : Secondary

Route Interface: not configured

Description: VLAN 0004

Tagged Ports: none

Untagged Ports:

Ethernet0/4 Ethernet0/8

Vlan ID: 5

Vlan Type: static

Private-vlan Type : Secondary

Route Interface: not configured

Description: VLAN 0004

Tagged Ports: none

Untagged Ports:

Ethernet0/4 Ethernet0/18

2.1.2 isolate-user-vlan

【命令】

isolate-user-vlan isolate-user-vlan_num secondary secondary_vlan_numlist [ to

secondary_vlan_numlist ]

undo isolate-user-vlan isolate-user-vlan_num[ secondary

secondary_vlan_numlist [ to secondary_vlan_numlist ]

【视图】

系统视图

【参数】

isolate-user-vlan_num:isolate-user-vlan的VLAN ID,取值范围为1~4094。

secondary_vlan_numlist:Secondary VLAN的VLAN ID,取值范围为1~4094。【描述】

isolate-user-vlan命令用来建立isolate-user-vlan和Secondary VLAN间的映射关

系,undo isolate-user-vlan命令用来取消isolate-user-vlan和Secondary VLAN

间的映射关系。

缺省情况下,用户创建的isolate-user-vlan和Secondary VLAN是没有任何对应关

系的。

执行isolate-user-vlan命令前,isolate-user-vlan和Secondary VLAN中必须已经

包含了端口;执行该命令后,将完成isolate-user-vlan和Secondary VLAN之间的

映射关系,具体操作包括:将isolate-user-vlan中的端口加入到每个Secondary

VLAN中,同时把所有Secondary VLAN中的端口加入到isolate-user-vlan中。

执行undo isolate-user-vlan命令,会取消isolate-user-vlan和Secondary VLAN

之间的映射关系,具体操作包括:将isolate-user-vlan中包含的端口从Secondary

VLAN中删除,将Secondary VLAN中包含的端口从isolate-user-vlan中删除。

相关配置可参考命令display isolate-user-vlan。

【举例】

# 将isolate-user-vlan 10和Secondary vlan2、3、4、5、9对应起来。

[Quidway] isolate-user-vlan 10 secondary 2 to 5 9

2.1.3 isolate-user-vlan enable

【命令】

isolate-user-vlan enable

undo isolate-user-vlan enable

【视图】

VLAN视图

【参数】

【描述】

isolate-user-vlan enable命令用来设置VLAN的类型为isolate-user-vlan,undo

isolate-user-vlan enable命令用来取消VLAN类型为isolate-user-vlan的设置。

缺省情况下,用户创建的VLAN是不带类型的VLAN。

isolate-user-vlan可以包含多个端口,包括与其它交换机相连的上行端口。但

isolate-user-vlan不能和Trunk端口同时配置,即如果以太网交换机上配置了

isolate-user-vlan,就不能配置Trunk端口;如果配置了Trunk端口,就不能配置

isolate-user-vlan。

相关配置可参考命令display isolate-user-vlan。

【举例】

# 将VLAN 5配置为isolate-user-vlan。[Quidway-vlan5] isolate-user-vlan enable

第3章 GARP/GVRP配置命令

3.1 GARP配置命令

3.1.1 display garp statistics

【命令】

display garp statistics [ interface interface_list ]

【视图】

任意视图

【参数】

interface_list:需要显示的以太网端口列表,表示方式为interface _list=

{ { interface_type interface_num | interface_name } [ to{ interface_type

interface_num | interface_name } ] }&<1-10>。其中interface_type为端口类型,

interface_num为端口号,interface_name为端口名,它们各自的含义和取值范围请

参见本书“端口配置”部分的命令参数,此处不再赘述。

命令中&<1-10>表示参数可重复次数,最小为1,最大为10。

【描述】

display garp statistics命令可以显示GARP的统计信息,如GVRP/GMRP接收/

发送的报文数和丢弃的报文数。

【举例】

# 显示以太网端口Ethernet0/1上GARP的统计信息。

display garp statistics interface ethernet0/1

GARP statistics on port Ethernet0/1

Number Of GMRP Frames Received : 0

Number Of GVRP Frames Received : 0

Number Of GMRP Frames Transmitted : 0

Number Of GVRP Frames Transmitted : 0

Number Of Frames Discarded : 0

以上信息表示:Ethernet0/1端口GVRP/GMRP接收/发送的报文数及丢弃的报文数

均为0。

3.1.2 display garp timer

【命令】

display garp timer [ interface interface_list ]

【视图】

任意视图

【参数】

interface_list:需要显示的以太网端口列表,表示方式为interface _list=

{ { interface_type interface_num | interface_name } [ to{ interface_type

interface_num | interface_name } ] }&<1-10>。其中interface_type为端口类型,

interface_num为端口号,interface_name为端口名,它们各自的含义和取值范围请

参见本书“端口配置”部分的命令参数,此处不再赘述。

命令中&<1-10>表示参数可重复次数,最小为1,最大为10。

【描述】

display garp timer命令可以显示GARP定时器的值,包括Hold定时器、Join定

时器、Leave定时器及LeaveAll定时器。

相关配置可参考命令garp timer,garp timer leaveall。

【举例】

# 显示以太网端口Ethernet0/1的GARP定时器的值。

display garp timer interface ethernet0/1

GARP timers on port Ethernet0/1

GARP JoinTime : 20 centiseconds

GARP Leave Time : 60 centiseconds

GARP LeaveAll Time : 1000 centiseconds

GARP Hold Time : 10 centiseconds

以上信息表示:Ethernet0/1端口GARP定时器的值分别为:Join定时器为20厘秒、

Leave定时器为60厘秒、LeaveAll定时器为1000厘秒、Hold定时器为10厘秒。

3.1.3 garp timer

【命令】

garp timer { hold | join | leave }timer_value

undo garp timer { hold | join | leave }

【视图】

以太网端口视图

相关主题