3.11. Layer 2 Protocols Tunneling Commands

3.11.1. l2protocol enable

Command Purpose

Use this command to enable l2protocol function globally.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

l2protocol enable

no l2protocol enable

Command Mode

Global Config

Default

None

Usage

Use this command to enable l2protocol function globally.

Examples

This example shows how to enable l2protocol function globally:

Switch# configure terminal
Switch(config)# l2protocol enable

3.11.2. l2protocol tunnel-dmac

Command Purpose

Use this command to configure l2protocol tunnel destination MAC address.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

l2protocol tunnel-dmac MAC

no l2protocol tunnel-dmac

Parameter

Parameter Description

Parameter Value

MAC

l2 protocol tunnel`s destination MAC address

0100.0CCD.CDD0-D2 or 010F.E200.0003

Command Mode

Global Config

Default

None

Usage

Use this command to configure l2 protocol tunnel dmac. System default tunnel-dmac is 0100.0ccd.cdd0.

Examples

Following is a sample that configuring 010FE2000003 as l2 protocol tunnel dmac:

Switch# configure terminal
Switch(config)# l2protocol tunnel-dmac 010F.E200.0003

Related Commands

show l2protocol

3.11.3. l2protocol mac 1

Command Purpose

Use this command to configure l2 protocol mac address globally.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

l2protocol mac 1 MAC mask MASK

no l2protocol mac 1

Parameter

Parameter Description

Parameter Value

MAC

L2 Protocol MACaddress. 0180.C200.0000~0180.C200.003Fis used by other protocol, so this range is out of L2 Protocol MAC address control.

0180.C200.0000 ~ 0180.C2FF.FFFF

MASK

L2 Protocol MAC MASK

FFFF.FF00.0000 ~ FFFF.FFFF.FFFF

Command Mode

Global Config

Default

None

Usage

Use this command to configure l2 protocol mac address globally.

Examples

This example shows how to configure l2 protocol mac address:

Switch# configure terminal
Switch(config)# l2protocol mac 1 0180.c222.0000 mask ffff.ffff.0000

Related Commands

l2protocol full-mac

3.11.4. l2protocol mac

Command Purpose

Use this command to configure l2 protocol mac address globally.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

l2protocol mac MAC_NUM MAC

no l2protocol mac MAC_NUM

Parameter

Parameter Description

Parameter Value

MAC_NUM

The ID of l2 protocol MAC

2-6

MAC

The MAC address of l2 protocol MAC

0180.C200.0000 ~ 0180.C2FF.FFFF

Command Mode

Global Config

Default

None

Usage

Use this command to configure l2 protocol mac address globally. Should not overlap each other.

Examples

This example shows how to configure l2 protocol mac address:

Switch# configure terminal
Switch(config)# l2protocol mac 3 0180.c200.0000

Related Commands

l2protocol full-mac

3.11.5. l2protocol

Command Purpose

Use this command to configure l2protocol pdu-mac-address to discard, peer or tunnel.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

l2protocol ( stp | slow-proto | dot1x | cfm | mac MAC_NUM | full-mac ) ( discard | peer | tunnel ( evc WORD | ) | forward)

l2protocol ( cdp | vtp | lldp | all ) ( discard | peer | forward )

no l2protocol ( stp | slow-proto | dot1x | cfm | lldp | cdp | vtp | all | mac MAC_NUM | full-mac )

Parameter

Parameter Description

Parameter Value

stp

MAC: 0180.c200.0000

-

slow-proto

MAC: 0180.c200.0002, ethertype: 0x8809

-

dot1x

MAC: 0180.c200.0003, ethertype: 0x888e

-

cfm

ethertype: 0x8902

-

cdp

Cisco Discovery Protocol

-

vtp

Vlan Trunking Protocol

-

lldp

Link Layer Discovery Protocol

-

all

include stp, sflow-proto, dot1x, cfm, lldp, cdp, vtp

-

mac MAC_NUM

Globally configured mac 1-2

1-2

discard

Discard the protocol data unit

-

peer

Act as peer to the customer device instance of the protocol, peer is default option

-

tunnel

Tunnel the protocol data unit into the SVLAN

-

forward

Forward the protocol data unit

-

full-mac

Globally configured full-mac

-

WORD

The evc name

Up to 15 characters

Command Mode

Interface Configuration

Default

None

Usage

Use this command to configure l2 protocol to discard, peer or tunnel.

Examples

This example shows how to configure l2 protocol to discard:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# l2protocol stp discard

This example shows how to configure l2 protocol to tunnel:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# l2protocol slow-proto tunnel evc evc1

Related Commands

None

3.11.7. show l2protocol

Command Purpose

Use this display current l2 protocol tunnel configuration.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

show l2protocol ( interface IFNAME | tunnel-dmac | )

Parameter

Parameter Description

Parameter Value

interface IFNAME

Interface name

Support aggregation and physical ports

tunnel-dmac

Layer2 protocols tunnel destination MAC address

-

Command Mode

Privileged EXEC

Default

None

Usage

Use this display current l2 protocol tunnel configuration or on specified interface.

Examples

This example shows how to display current l2 protocol tunnel configuration on interface eth-0-1:

Switch# show l2protocol interface eth-0-2

Interface  PDU Address        MASK            Status    EVC             
           (u)-Untagged
           (t)-Tagged
=========  =================  ==============  ========  ==========
eth-0-2    0100.0ccc.cccc(u)  ffff.ffff.ffff  Peer      N/A             
eth-0-2    0100.0ccc.cccc(t)  ffff.ffff.ffff  Peer      N/A             
eth-0-2    stp(u)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    stp(t)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    slow-proto(u)      ffff.ffff.ffff  Peer      N/A             
eth-0-2    slow-proto(t)      ffff.ffff.ffff  Peer      N/A             
eth-0-2    dot1x(u)           ffff.ffff.ffff  Peer      N/A             
eth-0-2    dot1x(t)           ffff.ffff.ffff  Peer      N/A             
eth-0-2    cfm(u)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    cfm(t)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    cdp(u)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    cdp(t)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    vtp(u)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    vtp(t)             ffff.ffff.ffff  Peer      N/A             
eth-0-2    lldp(u)            ffff.ffff.ffff  Peer      N/A             
eth-0-2    lldp(t)            ffff.ffff.ffff  Peer      N/A     

This example shows how to display current l2 protocol tunnel configuration on tunnel-mac:

Switch# show l2protocol tunnel-dmac
Layer2 protocols tunnel destination MAC address is 0100.0ccd.cdd0

Related Commands

None

3.11.8. l2protocol cos

Command Purpose

Use this command to configure l2protocol cos globally.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

l2protocol cos COS_VALUE

no l2protocol cos

Parameter

Parameter Description

Parameter Value

COS_VALUE

vlan tag priority

0-7

Command Mode

Global Config

Default

None

Usage

Use this command to configure l2protocol cos globally, the default value is 0.

Examples

This example shows how to configure l2protocol cos 7:

Switch# configure terminal
Switch(config)# l2protocol cos 7

Related Commands

None

3.11.9. l2protocol full-mac

Command Purpose

Use this command to configure l2 protocol mac address globally.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

l2protocol full-mac MAC

no l2protocol full-mac

Parameter

Parameter Description

Parameter Value

MAC

Destination MAC address, including all MAC addresses

0000.0000.0000 ~ FFFF.FFFF.FFFF

Command Mode

Global Config

Default

None

Usage

If the L2 protocol full-mac address coincides with BPDU, Slow proto, EAPOL or MAC<1-4>, the tunnel operation priority is orderly: BPDU, Slow proto, EAPOL, full-mac, mac<1-4>.

If the L2 protocol full-mac address coincides with L2 Protocol tunnel destination MAC address, the crossed L2 protocol mac address won’t take effect when tunnel L2 Protocol

Examples

This example shows how to configure l2 protocol full-mac address:

Switch# configure terminal
Switch(config)# l2protocol full-mac 0100.0CCC.CCCC

Related Commands

l2protocol mac