3.8. VLAN Mapping Commands

3.8.1. ethernet evc

Command Purpose

Use this command to add or delete EVC table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ethernet evc WORD

no ethernet evc WORD

Parameter

Parameter Description

Parameter Value

WORD

EVC name

Up to 16 characters

Command Mode

Global Config

Default

None

Usage

None

Examples

Create ethernet evc evc_table:

Switch# configure terminal
Switch(config)# ethernet evc evc_table
Switch(config-evc)# dot1q mapped-vlan 10

3.8.2. dot1q mapped-vlan

Command Purpose

Use this command to add evc entry to EVC table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

dot1q mapped-vlan VLAN_ID

no dot1q mapped-vlan

Parameter

Parameter Description

Parameter Value

VLAN_ID

Mapped vlan id

1-4094

Command Mode

EVC Configuration

Default

None

Usage

None

Examples

Add EVC mapped-vlan entry, mapped vlan is 100:

Switch# configure terminal
Switch(config)# ethernet evc evc_table
Switch(config-evc)# dot1q mapped-vlan 100

Related Commands

show ethernet evc NAME

3.8.3. dot1q mapped-double-vlan

Command Purpose

Use this command to add evc entry with double vlans to EVC table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

dot1q mapped-double-vlan INNER_VLAN_ID OUTER_VLAN_ID

no dot1q mapped-double-vlan

Parameter

Parameter Description

Parameter Value

INNER_VLAN_ID

Mapped inner vlan id

1-4094

OUTER_VLAN_ID

Mapped outer vlan id

1-4094

Command Mode

EVC Configuration

Default

None

Usage

This command is only used for untagged packet

Examples

Add EVC mapped-vlan entry, mapped inner vlan is 100, mapped outer vlan is 10:

Switch# configure terminal
Switch(config)# ethernet evc evc_table
Switch(config-evc)# dot1q mapped-double-vlan 100 10

Related Commands

show ethernet evc NAME

3.8.4. vlan mapping table

Command Purpose

Use this command to add or delete vlan mapping table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

vlan mapping table WORD

no vlan mapping table WORD

Parameter

Parameter Description

Parameter Value

WORD

The name of vlan mapping table

Up to 16 characters

Command Mode

Global Config

Default

None

Usage

None

Examples

Create vlan mapping table VMT:

Switch# configure terminal
Switch(config)# vlan mapping table VMT
Switch(config-vlan-mapping)#

Related Commands

show vlan mapping table WORD

3.8.5. raw vlan group

Command Purpose

Use this command to create raw VLAN group.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

raw vlan group GROUP_ID vlan VLAN_LIST

no raw vlan group GROUP_ID

Parameter

Parameter Description

Parameter Value

GROUP_ID

Raw vlan group id

1-64

VLAN_LIST

The VLAN ID list, example: 2-5,9-11

vlan list connected with `-` and `,` , for example, “1-10,15,20,30-40”

Command Mode

Global Config

Default

None

Usage

None

Examples

Create raw VLAN group 1 and the VLAN list is from 10 to 20:

Switch# configure terminal
Switch(config)# raw vlan group 1 vlan 10-20

Related Commands

show vlan mapping table WORD

3.8.6. raw-vlan

Command Purpose

Use this command to add vlan mapping entry into vlan mapping table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

raw-vlan ( VLAN_ID | out-of-range | untagged | group GROUP_ID ) evc WORD

no raw-vlan ( VLAN_ID | out-of-range | untagged | group )

raw-vlan INNER_VLAN OUTER_VLAN egress-vlan ( untagged | MAPPED_VLAN )

raw-vlan INNER_VLAN OUTER_VLAN evc WORD

no raw-vlan INNER_VLAN OUTER_VLAN egress-vlan

Parameter

Parameter Description

Parameter Value

VLAN_ID

Raw vlan id, range from 1~4094, the format could be 1,2,3 or 1-20.

vlan list connected with `-` and `,` , for example, “1-10,15,20,30-40”

out-of-range

Vlan id isn`t specified

-

untagged

Untagged packet

-

group GROUP_ID

Raw VLAN group, The group will use less resource compare with VLAN range.

1-64

WORD

EVC name

Up to 16 characters

INNER_VLAN

Inner vlan id

1-4094

OUTER_VLAN

Outer vlan id

1-4094

MAPPED_VLAN

Mapped vlan id

1-4094

Command Mode

VLAN Mapping Configuration

Default

None

Usage

None

Examples

Add vlan mapping entry, raw vlan is from 10 to 20, mapped evc is evc_table:

Switch# configure terminal
Switch(config)# vlan mapping table VMT
Switch(config-vlan-mapping)# raw-vlan 10-20 evc evc_table

Related Commands

show vlan mapping table WORD

3.8.7. dot1q ethertype

Command Purpose

Use this command to set ethertype on interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

dot1q ethertype VALUE

no dot1q ethertype

Parameter

Parameter Description

Parameter Value

VALUE

Specify The ethertype of VLAN tag.

The format is HEX, the default value is 0x8100

Command Mode

Interface Configuration

Default

None

Usage

None

Examples

Set ethertype to 0x9100:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# dot1q ethertype 9100

Related Commands

None

3.8.8. show vlan mapping table

Command Purpose

Use this command to display current vlan mapping table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show vlan mapping table ( WORD | )

Parameter

Parameter Description

Parameter Value

WORD

The vlan mapping table to be displayed

Up to 16 characters

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example show all vlan mapping table existed in system:

Switch# show vlan mapping table

Table Name       EVC Name         Mapped VLAN  Forward Interface  Raw VLAN 
================ ================ =========== ================== =============
VMT              evc_table        100         n/a                10-20
VMT_double       evc_double       10(100)     n/a                untagged
VMT_forward      evc_forward      20          eth-0-9            30

Related Commands

show vlan mapping table applied-interface

3.8.9. show vlan mapping table applied-interface

Command Purpose

Use this command to display who is using the vlan mapping table of interface.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show vlan mapping table applied-interface

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

This example show which interface used the vlan mapping table:

Switch# show vlan mapping table applied-interface

 Table Name        Interface Name     Type
 ==============    ================  ================
 VMT                 eth-0-1             802.1Q-Tunnel

Related Commands

show vlan mapping table WORD

3.8.10. switchport mode

Command Purpose

Use this command to configure switchport mode

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport mode ( access | trunk | dot1q-tunnel )

no switchport dot1q-tunnel

Parameter

Parameter Description

Parameter Value

access

Configure this port to access port

-

trunk

Configure this port to trunk port

-

dot1q-tunnel

Configure this port to dot1q-tunnel port

-

Command Mode

Interface Configuration

Default

None

Usage

None

Examples

This example shows how to configure a switchport to dot1q-tunnel port:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode dot1q-tunnel

Related Commands

show interface switchport

3.8.11. switchport dot1q-tunnel type

Command Purpose

Use this command to configure dot1q-tunnel type.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport dot1q-tunnel type ( basic | selective )

Parameter

Parameter Description

Parameter Value

basic

Dot1q-tunnel basic type

-

selective

Dot1q-tunnel selective type

-

Command Mode

Interface Configuration

Default

basic type

Usage

None

Examples

This command is used to configure dot1q-tunnel type:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport dot1q-tunnel type selective

Related Commands

show interface switchport

3.8.12. switchport dot1q-tunnel native

Command Purpose

Use this command to configure a switch-port’s default vlan.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport dot1q-tunnel native ( vlan | inner-vlan ) VLAN_ID

no switchport dot1q-tunnel native vlan

Parameter

Parameter Description

Parameter Value

vlan

VLAN that will be added

-

inner-vlan

Untagged inner VLAN

-

VLAN_ID

Vlan Id

1-4094

Command Mode

Interface Configuration

Default

None

Usage

None

Examples

Configure the eth-0-1 to dot1q-tunnel and configure this port’s native to vlan 10:

Switch# configure terminal
Switch(config)# vlan database
Switch(config-vlan)# vlan 100
Switch(config-vlan)# exit
Switch(config)# interface eth-0-23
Switch(config-if)# switchport mode dot1q-tunnel
Switch(config-if)# switchport dot1q-tunnel native vlan 100

Related Commands

None

3.8.13. switchport dot1q-tunnel allow vlan

Command Purpose

Use this command to configure dot1q-tunnel allowed vlan.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport dot1q-tunnel allow vlan ( all | none | add VLAN_ID | remove VLAN_ID )

Parameter

Parameter Description

Parameter Value

all

Add all VLANs to the allowed VLAN list

-

none

Remove all VLANs from the allowed VLAN list

-

add VLAN_ID

Add VLANs to the allowed VLAN list

1-4094

remove VLAN_ID

Remove VLANs from the allowed VLAN list

1-4094

Command Mode

Interface Configuration

Default

None

Usage

None

Examples

Configure dot1q-tunnel allowed vlan 100 on interface:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport dot1q-tunnel allowed vlan add 100

Related Commands

show vlan brief

3.8.14. switchport dot1q-tunnel vlan mapping table

Command Purpose

Use this command to apply vlan mapping table on selective dot1q tunnel port.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport dot1q-tunnel vlan mapping table WORD

no switchport dot1q-tunnel vlan mapping table

Parameter

Parameter Description

Parameter Value

WORD

VLAN mapping table name

Up to 16 characters

Command Mode

Interface Configuration

Default

None

Usage

Apply exist vlan mapping table on dot1q-tunnel port. The type of dot1q-tunnel port should be selective.

Examples

The following is a sample that applying vlan mapping table on selective dot1q tunnel port:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport dot1q-tunnel vlan mapping table mp

Related Commands

show interface switchport

3.8.15. switchport dot1q-tunnel vlan mapping miss-forward

Command Purpose

Use this command to set packet do normal forward when vlan mapping table is not matched on selective dot1q tunnel port.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport dot1q-tunnel vlan mapping miss-forward

no switchport dot1q-tunnel vlan mapping miss-forward

Command Mode

Interface Configuration

Default

None

Usage

Need to swith the dot1q-tunnel port in selective type before config this command.

Examples

The following is a sample that set packet do normal forward when vlan mapping table is not matched on selective dot1q tunnel port:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport dot1q-tunnel vlan mapping miss-forward

Related Commands

None

3.8.16. switchport trunk vlan-translation

Command Purpose

Use this command to enable vlan translation.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport trunk vlan-translation

no switchport trunk vlan-translation

Command Mode

Interface Configuration

Default

None

Usage

Use this command to enable vlan translation on trunk port. Only trunk port can enable vlan translation.

Examples

The following is a sample that enabling vlan translation on trunk port:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk vlan-translation

Related Commands

show interface switchport

3.8.17. switchport trunk vlan-translation mapping table

Command Purpose

Use this command to apply vlan mapping table on vlan translation port.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport trunk vlan-translation mapping table WORD

no switchport trunk vlan-translation mapping table

Parameter

Parameter Description

Parameter Value

WORD

VLAN mapping table name

Up to 16 characters

Command Mode

Interface Configuration

Default

None

Usage

Use this command to apply vlan mapping on vlan translation port.

Examples

The following is a sample that applying vlan mapping on vlan translation port:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport trunk vlan-translation mapping table map_table

Related Commands

show interface switchport

3.8.18. switchport trunk vlan-translation miss-forward

Command Purpose

Use this command to allow the packet which not match vlan mapping table forward

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

switchport trunk vlan-translation mapping miss-forward

no switchport trunk vlan-translation mapping miss-forward

Command Mode

Interface Configuration

Default

None

Usage

None

Examples

The following is a sample that let the packet which not matched vlan mapping table forward:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport trunk vlan-translation mapping miss-forward

Related Commands

None

3.8.19. vlan dot1q tag native

Command Purpose

Use this command to set tag the vlan on packet if in default vlan

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

vlan dot1q tag native

no vlan dot1q tag native

Command Mode

Interface Configuration

Default

None

Usage

None

Examples

The following is a sample that tag the vlan if in default vlan:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# vlan dot1q tag native

Related Commands

None

3.8.20. show resource vlan-mapping

Command Purpose

Use this command to display the resource statistic used by vlan mapping table.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show resource vlan-mapping

Command Mode

Privileged EXEC

Default

None

Usage

None

Examples

The following is sample output from the show resource vlan-mapping command:

Switch# show resource vlan-mapping

VLAN-MAPPING
Resource                     Used          Capability
=============================================================
Applied VLAN Mapping Entry   0             1024

Related Commands

None