OSPF VPN Commands
This chapter provides an alphabetized reference of the OSPF VPN commands. It includes the following commands:
capability vrf-lite
Use this command to enable the vrf-lite capability for an OSPF instance.
Use the no parameter with this command to disable the same for an OSPF instance.
Command Syntax
capability vrf-lite
no capability vrf-lite
Parameters
None
Default
By default, VRF lite capability for an OSPF instance is disabled.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#router ospf 100
(config-router)#capability vrf-lite
(config)#router ospf 100
(config-router)#no capability vrf-lite
router ospf vrf
Use this command to specify a VRF instance in OSPF. To use this command, you must first create a VRF Name in the NSM using the ip vrf command. Associate the same name with the OSPF instance using this command.
Command Syntax
router ospf <1-65535> WORD
Parameters
<1-65535>
Routing process ID; should be unique for each routing process.
WORD
Name of the VRF to associate with this OSPF instance.
Default
By default, router ospf vrf is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100 myVRF
(config-router)#
domain-id
Use this command to specify the domain ID for a OSPF bound to VRF.
The routes sent from OSPF to the VPN cloud are sent along with the domain ID. In this way, the domain ID acts as an
identification for the route received from each OSPF domain.
Use the no form of this command to remove a domain ID.
Command Syntax
domain-id ((A.B.C.D (secondary|)) | (type (type-as|type-as4|type-back-comp) value
HEX_DATA (secondary|)))
no domain-id ((A.B.C.D (secondary|)) | (type (type-as|type-as4|type-back-comp)
value HEX_DATA (secondary|)))
Parameters
A.B.C.D
Domain ID in IP address format.
secondary
Domain ID is secondary. If not specified the domain ID is primary.
type
Domain type:
type-as
AS format. Hexadecimal value is 0x0005.
type-as4
AS4 format. Hexadecimal value is 0x0205.
type-back-comp
Used for backward compatibility. Hexadecimal value is 0x8000.
value
Domain ID.
HEX_DATA
Domain ID in hexadecimal.
secondary
Domain ID is secondary. If not specified the domain ID is primary
Default
No domain ID is defined.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following example shows configuring a primary domain ID in IP address format.
#configure terminal
(config)#router ospf 100 vrf
(config-router)#domain-id 12.12.12.12
The following example shows configuring a secondary domain ID in IP address format.
#configure terminal
(config)#router ospf 100 vrf
(config-router)#domain-id 13.13.13.13 secondary
The following example shows configuring a primary domain ID in AS type format.
#configure terminal
(config)#router ospf 100 vrf
(config-router)#domain-id type type-as value 123456abcdef