Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

For general settings of the Selective Q-in-Q feature the SELECTIVE Q-IN-Q COMMON command mode is intended. The SELECTIVE Q-IN-Q LIST command mode is used to set the Selective Q-in-Q rules list.

selective-qinq common

This command transitions to the mode of general settings of the Selective Q-in-Q function.

Syntax     

selective-qinq common

Parameters

The command contains no arguments.

Command mode

CONFIG

Example

ma4000(config)# selective-qinq common 
ma4000(config-selective-qinq)#

selective-qinq list

In the CONFIG mode, this command transitions to the configuration mode of the Selective Q-in-Q rules list.

In the interface/interface group configuration mode (SLOT-CHANNEL, PORT-CHANNEL, FRONT-PORT) this command assigns a certain list of rules to the interface being configured.

Syntax     

selective-qinq list <NAME>

Parameters

<NAME> – Selective Q-in-Q rules list name, 31 characters max.

Command mode

CONFIG

SLOT-CHANNEL

PORT-CHANNEL

FRONT-PORT

Example

ma4000(config)# selective-qinq list test
ma4000(config-selective-qinq-test)#

add-tag

This command adds an outer tag based on the inner tag.

The use of a negative form (no) of the command removes the set rule.

Syntax     

[no] add-tag svlan <S-VLAN> cvlan <C-VLAN>

Parameters

<S-VLAN> – outer tag number, may take values [1..4095];

<C-VLAN> – inner tag number(s), may take values 1-4094 or ignore. The C-VLAN list is defined using commas ( , ). If the option 'ignore' is selected, the tag will be added to any incoming package.

Command mode

SELECTIVE Q-IN-Q COMMON

SELECTIVE Q-IN-Q LIST

Example

ma4000(config-selective-qinq-test)# add-tag svlan 3 cvlan 2,4-100	

overwrite-tag

This command is used to substitute SVLAN in the required direction.

The use of a negative form (no) of the command removes the set rule.

Syntax     

[no] overwrite-tag new-vlan <NEW-VLAN> old-vlan <OLD-VLAN> <RULE_DIRECTION>

Parameters

<NEW-VLAN> – new VLAN number, may take values [1 ..4095];

<OLD-VLAN> – number of VLAN, which should be substituted, may take values [1 .. 4094];

<RULE_DIRECTION> –  traffic direction:

  • ingress – incoming;
  • egress – outgoing.

Command mode

SELECTIVE Q-IN-Q COMMON

SELECTIVE Q-IN-Q LIST

Example

ma4000(config-selective-qinq-test)# overwrite-tag new-vlan 555 old-vlan 111 ingress	

remove

This command removes the Selective Q-in-Q rule by the specified number.

Syntax     

remove <RULE_INDEX>

Parameters

<RULE_INDEX> – rule number, may take values [0 .. 511].

Command mode

SELECTIVE Q-IN-Q COMMON

SELECTIVE Q-IN-Q LIST

Example

ma4000(config-selective-qinq-test)# remove 0	

clear

This command removes all Selective Q-in-Q rules.

Syntax     

clear

Parameters

The command contains no arguments.

Command mode

SELECTIVE Q-IN-Q COMMON

SELECTIVE Q-IN-Q LIST

Example

ma4000(config-selective-qinq-test)# clear	

selective-qinq enable

This command enables the Selective Q-in-Q feature on the configured interface.

Syntax     

[no] selective-qinq enable

Parameters

The command contains no arguments.

Command mode

SLOT-CHANNEL

PORT-CHANNEL

FRONT-PORT

Example

ma4000(express-config-port-channel-1)# no selective-qinq enable

show selective-qinq

This command allows to view the list of Selective Q-in-Q feature rules.

Syntax     

show selective-qinq <PARAM>

Parameters

<PARAM> – output to display:

  • common  – view common rules;
  • list – view rules of the certain list. It is necessary to specify the 'name' of the list;
  • lists – view rules in all lists.

Command mode

ROOT

Example

ma4000# show selective-qinq common 

   Selective Q-in-Q common rules
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index   Rule                                       Direction    
-----   ----------------------------------------   ----------   
0       Add S-VLAN 20 to C-VLAN 100-201            Ingress
  • Нет меток