V Commands

This chapter describes the Cisco NX-OS Multiprotocol Label Switching commands that begin with V.

vpn

To configure a virtual private network (VPN) ID on a Virtual Forwarding Interface (VFI) context, use the vpn command.

vpn vpn-id

 
Syntax Description

vpn-id

VPN ID. The range is from 1 to 4294967295.

 
Defaults

None

 
Command Modes

config-l2vpn-vfi mode

 
Supported User Roles

network-admin
vdc-admin

 
Command History

Release
Modification

6.2.2

This command was introduced.

 
Usage Guidelines

This command requires the MPLS Services license.

Examples

This example shows how to configure a VPN ID on a VFI context:

switch# configure terminal
switch# configure terminal
switch(config)# l2vpn vfi context vpls80
switch(config-l2vpn-vfi)# description VFIforDualHome
switch(config-l2vpn-vfi)# vpn 10
switch(config-l2vpn-vfi)#

 
Related Commands

Command
Description

bridge domain

Enters bridge-domain configuration mode and configures a bridge domain.

l2vpn vfi context

Establishes a Layer 2 VPN (L2VPN) virtual forwarding interface (VFI) between two or more separate networks.

vrf

To display information for a virtual routing and forwarding (VRF) instance, use the vrf command. To return to the default setting, use the no form of this command.

vrf vrf-name

no vrf vrf-name

 
Syntax Description

vrf-name

VRF name that is any case-sensitive alphanumeric string up to 32 characters.

 
Defaults

None

 
Command Modes

Router VRF configuration mode

 
Supported User Roles

network-admin
vdc-admin

 
Command History

Release
Modification

5.2(1)

This command was introduced.

 
Usage Guidelines

This command requires the MPLS Services license.

Examples

This example shows how to display information about each VRF instance:

switch# configure t
switch(config)# feature ospf
switch(config)# Test1
switch(config-router)# timers throttle lsa 0 5000 5000
switch(config-router)# timers lsa-arrival 30
switch(config-router)# vrf vpn1
switch(config-router-vrf)#

 
Related Commands

Command
Description

mpls ldp configuration

Configures the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP).

vrf context

To create a new virtual routing and forwarding (VRF) instance, use the vrf context command. To return to the default setting, use the no form of this command.

vrf context vrf-name

no vrf context vrf-name

 
Syntax Description

vrf-name

VRF name that can be any case-sensitive, alphanumeric string up to 20 characters.

 
Defaults

None

 
Command Modes

Global configuration mode

 
Supported User Roles

network-admin
vdc-admin

 
Command History

Release
Modification

5.2(1)

This command was introduced.

 
Usage Guidelines

This command requires the MPLS Services license.

Examples

This example shows how to create a new VRF instance:

switch# configure terminal
switch(config)# vrf context blue
switch(config-vrf)#

 
Related Commands

Command
Description

mpls ldp configuration

Configures the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP).

vrf member

To set virtual routing and forwarding (VRF) membership on an interface, use the vrf member command. To return to the default setting, use the no form of this command.

vrf member vrf-name

no vrf member vrf-name

 
Syntax Description

vrf-name

VRF name. The maximum size is 32 alphanumeric characters.

 
Defaults

None

 
Command Modes

Interface configuration mode

 
Supported User Roles

network-admin
vdc-admin

 
Command History

Release
Modification

5.2(1)

This command was introduced.

 
Usage Guidelines

This command requires the MPLS Services license.

Examples

This example shows how to set VRF membership for an interface:

switch# configure terminal
switch(config)# interface ethernet 5/0
switch(config-if)# vrf member vpn1
switch(config-if)#

 
Related Commands

Command
Description

mpls ldp configuration

Configures the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP).