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

VLAN Tunnel Commands

63-1 switchport mode dot1q-tunnel

This command is used to specify the port as a dot1q-tunnel port. Use the no command to reset the VLAN mode to default setting.

switchport mode dot1q-tunnel no switchport mode

Parameters

Default

Command Mode

None.

By default, the switch port is operated as an access port.

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command is available for physical ports or link aggregation groups that are no trunk mode.

An 802.1q tunnel port behaves as an UNI port on the provider edge bridge. Setting an interface to 802.1q tunnel mode will lead to the GVRP disable on it. A service

VLAN will be added for packets which ingress from the 802.1q tunnel port. The service VLAN assignment method can be flow-based, C-VLAN based or port-based.

If the content (include DA, SA, DIP, SIP etc) of the incoming packet matches a flowbased VLAN mapping rule that is configured on this 802.1q tunnel port, the service

VLAN will be assigned according the flow-based VLAN mapping rule.

If the C-VLAN tag of the incoming packet matches a C-VLAN based VLAN mapping rule that is configured on this port, the service VLAN will be assigned according the

C-VLAN based VLAN mapping rule.

The service VLAN will be assigned according to the port-based VLAN of this port. If the inner-priority-trust is enabled on this port, the L2 priority in the C-VLAN tag will be copied to the service VLAN. Otherwise, the priority in the service VLAN tag is the default priority of this port.

When the service VLAN tagged packets are transmitted out from the 802.1q tunnel port, the service VLAN tag will be stripped.

If you configured layer 2 protocol tunneling on the 802.1q tunnel port, the layer 2 protocol packets will be tunneled to remote PE. Otherwise, the layer 2 protocol packets received on this port will be discarded.

Layer 3 routing protocols cannot be running on the 802.1q tunnel port. Other layer 3 application packets maybe tunneled to remote PE.

Management of a Provider Edge Bridge is directly under the control of the service provider. Provider network customers shall not have access to managed objects related to elements of Provider Bridges within the provider network [IEEE 802.1ad --

16.6].

Example

This example shows how to set an interface port 1 as a dot1q tunnel port.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode dot1q-tunnel

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

533

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

63-2 frame-tag tpid

This command is used to specify the outer TPID associated with a NNI port.

frame-tag tpid TPID

no frame-tag tpid

Parameters

TPID

Specifies the TPID for the outer VLAN tag. The value is in hexadecimal form. Range is 0x0 to 0xFFFF.

Default

Command Mode

The default value is 0x8100.

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command is available for physical ports or link aggregation groups that are set to trunk mode only.

This setting is only effective for trunk port that is used as service provider NNI port.

When packets are egress from NNI port, its TPID in the service VLAN tag will be set according the configuration.

Setting port to no trunk mode leads to its outer TPID reset to default value.

Example

This example shows how to set the TPID of interface port 1 to 0x88A8.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode trunk

DXS-3600-32S(config-if)#frame-tag tpid 0x88a8

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

63-3 switchport vlan mapping

This command is used to specify the VLAN translation or selective QinQ rule. Use no command to remove the rule.

switchport vlan mapping ORIGINAL-VLAN [,|-] {[original-inner-vlan VLAN-ID] TRANSLATED-VLAN | dot1q-

tunnel VLAN-ID} [priority COS-VALUE] [inner-vlan VLAN-ID]

no switchport vlan mapping ORIGINAL-VLAN [,|-] [ORIGINAL-INNER-VLAN]

Parameters

ORIGINAL-VLAN

original-inner-vlan VLAN-

ID

TRANSLATED-VLAN

dot1q-tunnel VLAN-ID

priority COS-VALUE

inner-vlan VLAN-ID

Specifies the original VLAN ID that will be matched for incoming packets. The range is 1-4094.

(Optional) Specifies the original inner VLAN ID that will be matched for incoming packets. The range is 1-4094.

Specifies the translated service VLAN ID. The range is 1-4094. The service VLAN will replace the original VLAN for matched packets.

Specifies the service VLAN ID that will be added for matched packets.

(Optional) Specifies the priority for the rule. If no specified, the priority of the service

VLAN tag will be set according the default priority of the reception port.

(Optional) Specifies the new inner VLAN that will replace original inner VLAN.

Default

No VLAN mapping rule is configured.

534

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

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command can be configured on physical ports or link aggregation groups. This command specifies the VLAN translation or selective QinQ rule on 801.1q tunnel or trunk port.

If the dot1q-tunnel parameter is specified in this command, the rule is selective

QinQ. Once the C-VLAN tag of the incoming packet matches the specified original

VLAN, the specified S-VLAN is added to make the packet becomes double tagged.

You can specify a VLAN range to map multiple original VLANs to single S-VLAN.

The selective QinQ shall be configured on 802.1q tunnel port. Otherwise, the rule will not take effect (its status is inactive).

If the translated VLAN parameter is specified in this command, the rule performs

VLAN translation. Once the VLAN tag of the incoming packet matches the specified original VLAN, the specified S-VLAN replaces original VLAN. The VLAN translation is one-to-one mapping, i.e. you cannot configure multiple original VLANs map to single S-VLAN. The VLAN translation can be configured on both 802.1q tunnel or trunk port.

Optional, you can configure 2:1 VLAN translation rule by specified original inner

VLAN parameter. In this case, the outer and inner tag of the incoming packets is used to match the VLAN translation rule. The outer VLAN of the matched packet is replaced by translated service VLAN and the original inner VLAN is no modified.

Moreover, you can configure 2:2 VLAN translation rule by specified inner-vlan parameter. In this case, the original inner VLAN of the matched packet will be replaced by the specified new inner VLAN too. Usually, the 2:1 and 2:2 VLAN translations are configured on trunk port.

If configured rule to translate an original VLAN to an S-VLAN, you shall not configure rule to translate other original VLAN to the S-VLAN, or configure selective QinQ rule bundling C-VLANs to the S-VLAN, vice versa.

If there is no VLAN mapping rule that match the incoming tagged packet, and the

vlan mapping drop is enabled on the port, the packet will be dropped. If the vlan

mapping drop is disabled, the port-based service VLAN will be assigned for the no matched packet.

Adding a port into a link aggregation group will lead to the VLAN mapping configuration on this member port is cleaned.

Example

This example shows how to set VLAN translation on port 1. C-VLAN 1 is translated to S-VLAN 101, C-VLAN 2 is translated to S-VLAN 102 and C-VLAN 3 is translated to S-VLAN 103.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode dot1q-tunnel

DXS-3600-32S(config-if)#switchport vlan mapping 1 100

DXS-3600-32S(config-if)#switchport vlan mapping 2 102

DXS-3600-32S(config-if)#switchport vlan mapping 3 103

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

535

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

Example

This example shows how to set selective QinQ on port 2. C-VLANs 1-10 are mapped to S-VLAN 200.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode dot1q-tunnel

DXS-3600-32S(config-if)#switchport vlan mapping 1-10 dot1q-tunnel 200

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

Example

This example shows how to set 2:1 VLAN translation on trunk port 3. This rule translates the outer VLAN 10 to 100 for the packet which has the original outer VLAN

10 and inner VLAN 20.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode trunk

DXS-3600-32S(config-if)#switchport vlan mapping 10 original-inner-vlan 20 100

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

63-4 inner-priority-trust

This command is used to set the trusting Dot1Q priority. Use no command to remove the setting.

Parameters

Default

None.

No trust dot1q priority set.

Command Mode

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command is available for on physical ports or link aggregation groups that are set to 802.1Q tunnel mode.

When trusting the Dot1Q priority on a Dot1Q tunnel port, the priority of the Dot1Q

VLAN tag in the received packets will be copied to service VLAN tag. If no trust value is set, the priority of the service VLAN tag will be assigned according to the default priority of the reception port.

Example

This example shows how to set the interface port 1 to trust Dot1Q priority.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode dot1q-tunnel

DXS-3600-32S(config-if)#inner-priority-trust

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

63-5 insert-dot1q-tag

This command is used to specify the Dot1Q VLAN tag inserting. Use the no command to remove the Dot1Q VLAN tag inserted.

insert-dot1q-tag VLAN-ID

Parameters

VLAN-ID

Specifies the Dot1Q VLAN ID that is inserted to the untagged packets which are received on the Dot1Q tunnel port.

536

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

Default

Command Mode

No Dot1Q VLAN tag inserted.

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command is available for on physical ports or link aggregation groups that are set to the 802.1Q tunnel mode.

If the insert-dot1q-tag is configured, when the untagged packets are received on the 802.1Q tunnel port, the specified Dot1Q VLAN tag will be inserted into it.

Example

This example shows how to set an interface port 1 to insert inner tag with VLAN 10.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode dot1q-tunnel

DXS-3600-32S(config-if)#insert-dot1q-tag 10

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

63-6 vlan mapping miss drop

This command is used to enable the dropping of VLAN mapping unmatched packets. Use the no command to disable the VLAN mapping miss dropping action.

vlan mapping miss drop no vlan mapping miss drop

Parameters

Default

Command Mode

None.

VLAN mapping miss dropping is disabled.

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

This command is available for on physical ports or link aggregation groups that are set to the 802.1Q tunnel mode.

If the VLAN mapping miss dropping option is enabled on the reception port, when the original VLAN of the received packets cannot match the VLAN mapping rules on this port, the received packets will be dropped.

Example

This example shows how to set interface port 1 to enable the VLAN mapping miss dropping option.

DXS-3600-32S#configure terminal

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

DXS-3600-32S(config-if)#switchport mode dot1q-tunnel

DXS-3600-32S(config-if)#vlan mapping miss drop

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

63-7 show dot1q-tunnel

This command is used to display Dot1Q VLAN tunneling configuration on interfaces.

show dot1q-tunnel [interface INTERFACE-ID [, | -]]

Parameters

interface INTERFACE-ID (Optional) Specifies the interfaces that will be displayed. If not specified, display all

802.1Q tunnel ports.

537

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

Default

Command Mode

None.

EXEC Mode.

Command Default Level

Level: 3

Usage Guideline

This command is used to display the 802.1Q tunneling configuration on interfaces.

Example

This example shows all 802.1Q tunnel port configurations.

DXS-3600-32S#show dot1q-tunnel dot1q Tunnel Interface:TGi1

Trust inner priority :Enabled

VLAN mapping miss drop:Enabled

Insert dot1q tag :VLAN10 dot1q Tunnel Interface:TGi2

Trust inner priority :Disabled

VLAN mapping miss drop:Disabled

DXS-3600-32S#

63-8 show frame-tag tpid

This command is used to display the outer TPID configuration.

show frame-tag tpid [interface INTERFACE-ID [, | -]]

Parameters

interface INTERFACE-ID (Optional) Specifies the interfaces that will be displayed. If not specified, display the outer TPID of all trunk ports.

Default

None.

Command Mode

EXEC Mode.

Command Default Level

Level: 3

Usage Guideline

This command is used to display the outer TPID configuration on trunk ports.

Example

This example shows the outer TPID of trunk ports.

DXS-3600-32S#show frame-tag tpid

Interface TPID

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

TGi3 0x8100

DXS-3600-32S#

63-9 show vlan mapping

This command is used to display the VLAN mapping configuration.

show vlan mapping [interface INTERFACE-ID [, | -]]

538

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

Parameters

interface INTERFACE-ID (Optional) Specifies the interfaces that will be displayed. If not specified, display the all VLAN mapping.

Default

Command Mode

None.

EXEC Mode.

Command Default Level

Level: 3

Usage Guideline

Use this command to display the VLAN mapping configuration.

Example

This example shows all VLAN mappings.

DXS-3600-32S#show vlan mapping

Interface Original VLAN Translated VLAN Priority Status

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

TGi1 1 translate 100 - Active

TGi1 2 translate 102 - Active

TGi1 3 translate 103 - Active

TGi2 1-10 dot1q-tunnel 200 - Active

TGi3 10/20 translate 100 - Active

Total Entries : 5

DXS-3600-32S#

539

advertisement

Related manuals

advertisement

Table of contents