# VLAN Configuration Mode Commands

The VLAN Configuration Mode is used to create and manage Virtual LANs and their bindings with contexts.

IMPORTANT:

Availabe commands or keywords/variables vary based on platform type, product version, and installed license(s).
bind interface

Associates a VLAN interface with a context.
Platform:

ASR 5000
Product:

HA, HSGW, PDSN, P-GW, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    [ no ] bind
    interface interface_name context_name

no

Disasscoiates the VLAN interface from the context.
interface_name context_name

Specifies the name of the virtual interface and the context to which it will be bound.

interface_name must be an alphanumeric string of 1 through 79 characters.

context_name must refer to a previously configured context expressed as an alphanumeric string of 1 through 79 characters.
Usage:

Bind a VLAN interface to a context to suport VLAN service.
Example:

    bind interface sampleVirtual
    sampleContext

    no bind interface
    sampleVirtual sampleContext

end

Exits the current configuration mode and returns to the Exec mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    end

Usage:

Use this command to return to the Exec mode.
exit

Exits the current mode and returns to the parent configuration mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    exit

Usage:

Use this command to return to the parent configuration mode.
ingress-mode

Enables or disables port ingress (incoming) mode for this VLAN ID on this port.
Platform:

ASR 5000
Product:

HA, HSGW, PDSN, P-GW, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    [ no ] ingress-mode

no

Disables the port ingress mode.
Usage:

Use this command to enable or disable the VLAN ingress mode for this port.
Example:

    ingress-mode

priority

Sets the 802.1p VLAN priority bit for ASN-GW service only.
Platform:

ASR 5000
Product:

ASN-GW
Privilege:

Security Administrator, Administrator
Syntax

    priority valueno priority

no

Disables the setting of the 802.1p priority bit.
value

Sets the value of the 802.1p priority bit as an integer from 0 through 7, with 7 being the highest priority.
Usage:

Set a value for the VLAN priority bit as used in the ANS-GW.

Refer to the ASN-GW Administration Guide for additional information on support for 802.1p.
Example:
To set a VLAN priority bit value, use the following command:

    priority 3

To disable the use of a VLAN priority bit, use the following command:

    no priority

shutdown

Disables or enables traffic over this VLAN.
Platform:

ASR 5000
Product:

HA, HSGW, PDSN, P-GW, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    [ no ] shutdown

no

Enables the VLAN. When omitted the VLAN is shutdown.
Usage:

Shut down a VLAN.

To bring a VLAN into service, execute this command using the no keyword.
Example:
To disable a VLAN from sending or receiving network traffic use the following command:

    shutdown

To enable a VLAN use the following command:

    no shutdown

vlan-map

Associates an IP interface having a VLAN ID with a context.
Platform:

ASR 5000
Product:

HA, HSGW, PDSN, P-GW, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    vlan-map interface if_name context_name

interface if_name context_name

Associates the specified VLAN interface with a context.

if_name is an exisitng interface name specified as an alphanumeric string of 1 through 79 characters.

context_name is an exisitng context name specified as an alphanumeric string of 1 through 79 characters.
Usage:

Use vlan-map to associate multiple VLAN interfaces with a single context. This feature is used in conjunction with nexthop forwarding and overlapping IP pools.
Example:

    vlan-map interface
    vlan234 ingress