DXS-3600-32S CLI Reference Guide


Add to my manuals
596 Pages

advertisement

DXS-3600-32S CLI Reference Guide | Manualzz

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

GARP VLAN Registration Protocol (GVRP) Commands

21-1 clear gvrp statistics interface

This command is used to clear the statistics for a GVRP port.

clear gvrp statistics [interface INTERFACE-ID [, | -]]

Parameters

INTERFACE-ID

,

-

(Optional) Specifies the interface to clear. If no interface is specified the statistics on all interfaces will be cleared.

(Optional) Specifies a series of interfaces, or separate a range of interfaces from a previous range.

(Optional) Specifies a range of interfaces.

Default

None.

Command Mode

Privilege EXEC Mode.

Command Default Level

Level: 12

Usage Guideline

This command clears the GVRP counters. If the INTERFACE-ID is not specified, then all GVRP counters will be cleared.

Example

This example shows how to clear statistics on all interfaces.

DXS-3600-32S#clear gvrp statistics

DXS-3600-32S#

21-2 gvrp (Global)

This command is used to enable the GVRP function globally, and use the no gvrp command to disable the GVRP function globally.

gvrp no gvrp

Parameters

Default

Command Mode

None.

By default, this option is disabled.

Global Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

The user should enable the global GVRP state and individual port’s GVRP state and start GVRP on the port. Once the GVRP is enabled globally, the GVRP PDU will be captured to CPU to process. Otherwise, the GVRP will be forwarded in the portbased VLAN of the reception port.

Example

This example shows how to enable the GVRP protocol global state.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#gvrp

DXS-3600-32S(config)#

21-3 gvrp (Interface)

This command is used to enable the GVRP function on a port, and use the no gvrp command to disable the GVRP function on a port.

223

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

gvrp no gvrp

Parameters

Default

None.

By default, this option is disabled.

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

You can use the GVRP interface configuration command to enable/disable the

GVRP protocol state.

This command can be configured on physical ports or link aggregation groups.

The GVRP function cannot be enabled when the interface is operating in access mode or Dot1Q-tunnel mode, meaning that the GVRP function can only be enabled when the port is operating in trunk or hybrid mode.

Example

This example shows how to enable the GVRP function on Ethernet port 1.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface tenGigabitEthernet 1

DXS-3600-32S(config-if)#gvrp

DXS-3600-32S(config-if)#

21-4 gvrp advertise (Interface)

This command is used to specify that a VLAN should be advertised by the GVRP protocol. Use the no gvrp advertise interface configuration command to disable this function.

gvrp advertise {all | VLAN-ID [,|-]}

no gvrp advertise { all | VLAN-ID [,|-]}

Parameters

VLAN-ID [,|-]

all

Specifies a VLAN. The range is 1 to 4094. You can specify a single VLAN-ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by comma.

Specifies all VLANs.

Default

All VLANs are able to be advertised.

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command can be configured on physical ports or link aggregation groups.

You can use the gvrp advertise interface configuration command to enable the specified VLANs’ GVRP advertise function on the specified interface. If a VLAN is not in the interface’s advertise-able VLAN set, the interface will never advertise the

VLAN through GVRP message. If all is specified, all VLANs are advertise-able on this interface.

This command setting only takes effect when GVRP is enabled.

Example

This example shows how to enable the advertise function of VLAN 1-1000 on interface Ethernet port 1.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface tenGigabitEthernet 1

DXS-3600-32S(config-if)#gvrp advertise 1-1000

DXS-3600-32S(config-if)#

224

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

21-5 gvrp dynamic-vlan-creation

This command is used to enable dynamic VLAN creation, and use the no command to disable the dynamic VLAN creation function.

gvrp dynamic-vlan-creation no gvrp dynamic-vlan-creation

Parameters

Default

None.

By default, this option is disabled.

Command Mode

Global Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

When dynamic VLAN creation is enabled, if a port has learned a new VLAN membership and the VLAN does not exist, the VLAN will be created automatically.

Otherwise, the newly learned VLAN will not be created.

Example

This example shows how to enable dynamic VLAN creation with the GVRP protocol.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#gvrp

DXS-3600-32S(config)#gvrp dynamic-vlan-creation

DXS-3600-32S(config)#

21-6 forbidden vlan

This command is used to specify a port as being a forbidden member of the specified VLAN. Use the no forbidden vlan command to remove the port as a forbidden member of the specified VLAN.

forbidden vlan VLAN-ID [,|-]

no forbidden vlan [VLAN-ID [,|-]]

Parameters

VLAN-ID

Specifies the VLAN ID used. The range is 2 to 4094. You can specify a single VLAN-

ID, a range of VLANs separated by a hyphen, or a series of VLANs separated by comma. If no VLAN ID specified for the no command, all forbidden VLANs will be removed.

Default

None.

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command can be configured on physical ports or link aggregation groups.

As a forbidden port of a VLAN, a port is forbidden from becoming a member port of the VLAN.

If the port is the VLAN member, setting a VLAN as its forbidden VLAN will lead to the port is removed from the VLAN.

The VLAN specified by the command does not need to exist.

For the no command, if no VLAN is specified, then all forbidden VLANs will be removed. If a VLAN is the port’s allowed VLAN, removing the forbidden VLAN will lead to the port re-added into the VLAN automatically.

225

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to set Ethernet port 1 as a forbidden port of VLAN 1000.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface tenGigabitEthernet 1

DXS-3600-32S(config-if)#forbidden vlan 1000

DXS-3600-32S(config-if)#

21-7 gvrp timer

This command is used to set the GVRP timer value on a port.

gvrp timer [join TIMER-VALUE | leave TIMER-VALUE | leave-all TIMER-VALUE]

Parameters join leave leave-all

TIMER-VALUE

Specifies to set the timer for joining a group. The unit is in centiseconds.

Specifies to set the timer for leaving a group. The unit is in centiseconds.

Specifies to set the timer for leaving all groups. The unit is in centiseconds.

Specifies the timer value used here. This value must be between 1 and 65535. The timer value in centiseconds.

Default

Join: 20

Leave: 60

Leave-all: 1000

Interface Configuration Mode.

Command Mode

Command Default Level

Level: 12

Usage Guideline

The value of these parameters must comply with the following rules:

1. LEAVE_TIMER >= 3 * JOIN_TIMER

2. LEAVE_ALL_TIMER > LEAVE_TIMER

Example

This example shows how to set the leave-all timer to 500 centiseconds on Ethernet port 3.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface tenGigabitEthernet 1

DXS-3600-32S(config-if)#gvrp timer leave-all 500

DXS-3600-32S(config-if)#

21-8 show gvrp

This command is used to display the GVRP settings.

show gvrp [interface [INTERFACE-ID [,|-]]]

Parameters

, interface

INTERFACE-ID

-

Displays the GVRP settings of the interface.

(Optional) Specifies the interface to display.

(Optional) Specifies a series of interfaces, or separate a range of interfaces from a previous range.

(Optional) Specifies a range of interfaces.

Default

None.

226

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Command Mode

EXEC Mode.

Command Default Level

Level: 3

Usage Guideline

This command only displays GVRP related configurations.

Example

DXS-3600-32S#show gvrp

This example shows how to display the GVRP configuration for all interfaces.

Global GVRP State : Enabled

Dynamic VLAN Creation : Enabled

DXS-3600-32S#

Example

This example shows how to display the GVRP configuration on Ethernet ports 1-2.

DXS-3600-32S#show gvrp interface tenGigabitEthernet 1-2

TGi1

GVRP Status : Disabled

Join Time : 20 centiseconds

Leave Time : 60 centiseconds

Leave-All Time : 500 centiseconds

Advertise VLAN : 1-4094

TGi2

GVRP Status : Disabled

Join Time : 20 centiseconds

Leave Time : 60 centiseconds

Leave-All Time : 1000 centiseconds

Advertise VLAN : 1-4094

DXS-3600-32S#

21-9 show gvrp statistics

This command is used to display the statistics for a GVRP port.

show gvrp statistics [interface INTERFACE-ID [, | -]]

Parameters

INTERFACE-ID

,

-

(Optional) Specifies the interface to display. If no interface is specified, the statistics on all interfaces will be shown.

(Optional) Specifies a series of interfaces, or separate a range of interfaces from a previous range.

(Optional) Specifies a range of interfaces.

Default

Command Mode

None.

EXEC Mode.

Command Default Level

Level: 3

Usage Guideline

This command only displays the ports which have the GVRP state enabled.

227

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to display statistics for GVRP ports 1-2.

DXS-3600-32S#show gvrp statistics interface tenGigabitEthernet 1-2

Interface JoinEmpty JoinIn LeaveEmpty LeaveIn LeaveAll Empty

-----------------------------------------------------------------------------------

TGi1 RX 0 0 0 0 0 0

TX 0 0 0 0 0 0

TGi2 RX 0 0 0 0 0 0

TX 0 0 0 0 0 0

DXS-3600-32S#

228

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement

Table of contents