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.
This command transitions to the mode of general settings of the Selective Q-in-Q function.
selective-qinq common
The command contains no arguments.
CONFIG
ma4000(config)# selective-qinq common ma4000(config-selective-qinq)# |
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.
selective-qinq list <NAME>
<NAME> – Selective Q-in-Q rules list name, 31 characters max.
CONFIG
SLOT-CHANNEL
PORT-CHANNEL
FRONT-PORT
ma4000(config)# selective-qinq list test ma4000(config-selective-qinq-test)# |
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.
[no] add-tag svlan <S-VLAN> cvlan <C-VLAN>
<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.
SELECTIVE Q-IN-Q COMMON
SELECTIVE Q-IN-Q LIST
ma4000(config-selective-qinq-test)# add-tag svlan 3 cvlan 2,4-100 |
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.
[no] overwrite-tag new-vlan <NEW-VLAN> old-vlan <OLD-VLAN> <RULE_DIRECTION>
<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:
SELECTIVE Q-IN-Q COMMON
SELECTIVE Q-IN-Q LIST
ma4000(config-selective-qinq-test)# overwrite-tag new-vlan 555 old-vlan 111 ingress |
This command removes the Selective Q-in-Q rule by the specified number.
remove <RULE_INDEX>
<RULE_INDEX> – rule number, may take values [0 .. 511].
SELECTIVE Q-IN-Q COMMON
SELECTIVE Q-IN-Q LIST
ma4000(config-selective-qinq-test)# remove 0 |
This command removes all Selective Q-in-Q rules.
clear
The command contains no arguments.
SELECTIVE Q-IN-Q COMMON
SELECTIVE Q-IN-Q LIST
ma4000(config-selective-qinq-test)# clear |
This command enables the Selective Q-in-Q feature on the configured interface.
[no] selective-qinq enable
The command contains no arguments.
SLOT-CHANNEL
PORT-CHANNEL
FRONT-PORT
ma4000(express-config-port-channel-1)# no selective-qinq enable |
This command allows to view the list of Selective Q-in-Q feature rules.
show selective-qinq <PARAM>
<PARAM> – output to display:
ROOT
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 |