OSPF VRF Configuration Mode Commands


OSPF VRF Configuration Mode Commands
 
 
The OSPF VRF Configuration sub-mode is used to configure the virtual routing and forwarding (VRF) context instances for OSPF routing protocol. This mode includes commands that configure VRF instance for OSPF routing parameters.
 
Important: The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
 
area
This command configures the various parameters, including authentication, area identification, virtual link id, delay/interval values for the specified OSPF area using specific VRF instance.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
[no] area { ip_address | decimal_value } {authentication [ message-digest ] | default-cost cost_value | nssa [default-information-originate] [no-redistribution no-summary] [translate-always] [translate-candidate] [translate-never] | stub [no-summary] | virtual-link router_ip_address [authentication {message-digest | null | text}| authentication-key {encrypted password encrypted_string | password password_string}| message-digest-key key_id md5 [encrypted password encrypted_string | password password_string]}} [dead-interval] [hello-interval] [retransmit-interval] [transmit-delay]
no
Disables/removes configured parameters for the specified OSPF area using specific VRF instance.
ip_address
Specifies the IP address in IPv4 dotted-decimal notation, of the area where authentication will be enabled.
decimal_value
Specifies the identification number of the area where parameters to be configured. This must be an integer from 0 through 4294967295.
message-digest
Sets the OSPF authentication type to use the message digest 5 (MD5) authentication method.
default-cost cost_value
Sets the default cost for an OSPF area.
cost_value is the default cost to be configured for the specified area and must be an integer from 0 through 16777215.
nssa [default-information-originate] [no-redistribution no-summary] [translate-always] [translate-candidate] [translate-never]
Configures and defines an area as an NSSA (Not So Stubby Area) and configures OSPF parameters for it.
default-information-originate: This optional keyword configures the OSPF VRF instances to originate default information to the NSSA area.
no-redistribution: This optional keyword configures the OSPF VRF instance to not to redistribute external routes to the NSSA area.
no-summary: This optional keyword configures the OSPF VRF instance to not to inject the inter-area routes into NSSA.
translate-always: This optional keyword configures the NSSA-ABR always to translate. By default this is disabled.
translate-candidate: This optional keyword configures the NSSA-ABR always to translate election. By default this is enabled.
translate-never: This optional keyword configures the NSSA-ABR never to translate. By default this is disabled.
stub [no-summary]
This keyword specifies an OSPF area as an stub area configures the NSSA-ABR never to translate. By default this is disabled.
no-summary: This optional keyword disables (stops) the ABR from sending summary LSAs into the stub area.
virtual-link router_id
Specifies the router identifier which provides a virtual link between an area that cannot be physically connected to the network backbone and an area that is physically connected to the network backbone.
router_id must be an IP address in IPv4 dotted-decimal notation of the ABR to be linked to.
authentication {message-digest | null | text}
Configures the OSPF authentication method to be used by the virtual link between an area that cannot be physically connected to the network backbone and an area that is physically connected to the network backbone.
message-digest: Set the OSPF authentication type to use the message digest (MD) authentication method.
null: Set the OSPF authentication type to use no authentication, thus disabling either MD or clear text methods.
text: Set the OSPF authentication type to use the clear text authentication method.
authentication-key
Configures the authentication password for the virtual link between an area that cannot be physically connected to the network backbone and an area that is physically connected to the network backbone.
message-digest-key key_id
Specifies the MD key identifier number for virtual link connection.
key_id must be an integer from 1 through 255.
md5
Sets the message digest to MD5 for virtual link connection.
[encrypted] password passwd_string
Specifies the password required for virtual link connection authentications. The keyword password is optional and if specified passwd_string must be from 1 to 63 alpha and/or numeric characters. The password specified must be in an encrypted format if the optional keyword encrypted was specified.
The encrypted keyword is intended only for use by the system while saving configuration scripts. The system displays the encrypted keyword in the configuration file as a flag that the variable following the password keyword is the encrypted version of the plain text password. Only the encrypted password is saved as part of the configuration file.
dead-interval value
Specifies the dead interval, in seconds, that the router should wait, during which time no packets are received and after the router considers a neighboring router to be off-line. value must be an integer from 1 through 65535.
hello-interval value
Specifies the hello interval, in seconds before sending a hello packet. value must be an integer from 1 through 65535.
retransmit-interval value
Specifies the delay between retransmission, in seconds, that router should wait before retransmitting a packet. value must be an integer from 1 through 65535.
transmit-delay value
Specifies the interval, in seconds, that the router should wait before transmitting a packet. value must be an integer from 1 through 65535.
Usage
Use this command to configure/set the various network/connection/authentication parameters of OPSF areas using specific VRF instance.
Example
The following command enables authentication for an OSPF area defined by the IP address 192.168.100.10 and the OSPF authentication type to MD5:
area 192.168.100.10 authentication message-digest
The following command sets the default cost for an OSPF area defined by the IP address 192.168.100.10 to 300:
The following command defines the area designated by the IP address 192.168.100.10 as an NSSA area where translation of NSSA candidate is enabled by default:
area 192.168.100.10 nssa
The following command defines the OSPF area defined by the IP address 192.168.100.10 as a stub area:
area 192.168.100.10 stub
The following command creates a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20:
area 192.168.100.10 virtual-link 192.168.200.20
The following command sets the authentication method for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20 to use no authentication:
area 192.168.100.10 virtual-link 192.168.200.2 null
The following command creates an authentication password of 123456 for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20:
area 192.168.100.10 virtual-link 192.168.200.20 authentication-key password 123456
The following command enables the use of MD5-based OSPF authentication for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20, sets the MD5 Key ID to 25, and the password to 123456:
area 192.168.100.10 virtual-link 192.168.200.20 message-digest-key 25 md5 password 123456
The following command sets the retransmit interval for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20 to 60 seconds:
area 192.168.100.10 virtual-link 192.168.200.20 retransmit-interval 60
 
default-information originate
This command creates a default external route into an OSPF routing domain.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
default-informationoriginate [always] [metricmetric_value] [metric-type {1 | 2}] [route-maproute_map_name]
always
Indicates that the route should always be advertised, regardless of whether the software has a default route or not.
metric metric_value
Sets the OSPF metric used in creating the default route. This must be an integer from 1 through 16777214.
metric-type {1 | 2}
Sets the default route metric type.
1: Sets the OSPF external link type for default routes to Type 1.
2: Sets the OSPF external link type for default routes to Type 2.
route-map route_map_name
Specifies the name of the default route-map to be use. This must be specified as a string of 1 through 79 alphanumeric characters.
Usage
Use this command to set the default external route into an OSPF routing domain.
Example
The following command sets the default external route to originate from the routemap named rmap1:
default-information originate route-map rmap1
 
default metric
This command configures the default metric value for the OSPF routing protocol.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
default-metric metric_value
metric-value
The metric value to set. This must be an integer from 1 through 16777214. The default metric value setting is 26385.
Usage
Use this command to set the default metric for routes.
Example
The following command sets the default metric to 235:
default-metric 235
 
end
Exits the NTP configuration mode and returns to the Exec mode.
Product
All
Privilege
Security Administrator, Administrator
Syntax
end
Usage
Change the mode back to the Exec mode.
 
exit
Exits the NTP configuration mode and returns to the global configuration mode.
Product
All
Privilege
Security Administrator, Administrator
Syntax
exit
Usage
Return to the global configuration mode.
 
neighbor
This command configures OSPF routers that interconnect to non-broadcast networks.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
neighbor ip_address [poll-interval poll_inter_value] [ priority priority_value]
ip_address
The interface IP address of the OSPF neighbor. This must be an IP address entered in dotted-decimal notation.
poll-interval poll_inter_value
Default: 120
Set the number of seconds in the dead neighbor polling interval. This must be an integer from 1 through 65535
priority priority_value
Default: 0
Set the 8-bit number that represents the router priority value of the non-broadcast neighbor associated with the IP address specified. This must be an integer from 0 through 255. This keyword does not apply to point-to-multipoint interfaces.
Usage
Use this command to configure OSPF routers that connect to non-broadcast networks.
Example
The following command specifies an OSPF router neighbor with the IP address of 192.168.100.10:
neighbor 192.168.100.10
 
network area
This command enables OSPF on an interface and defines the OSPF area for that network.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
networkip_address/ip_maskarea {area_id | area_ip_address}
ip_address/ip_mask
The network address and mask that specify the interface on which OSPF will be enabled. This in entered in dotted-decimal notation, followed by the “/” and the mask. Example: 192.168.1.0/24.
area_id
The OSPF area identification number for the specified network. This must be an integer from 0 through 4294967295.
area_ip_address
The IP address of the OSPF area for the specified network. This must be entered in dotted-decimal notation.
Usage
Use this command to specify the IP address of the network interface that the OSPF router will use.
Example
The following command specified that the OSPF router will use the interface at IP address 192.168.1.0 with a netmask of 24:
network 192.168.1.0/24
 
ospf router-id
This command configures the router ID for the OSPF process.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
ospfrouter-idip_address
ip_address
The router ID for the OSPF process. This must be an IP address entered in dotted-decimal notation
Usage
Use this command to set the router ID for the current OSPF router process.
Example
The following command sets the router ID to 192.168.200.1:
ospf router-id 192.168.200.1
 
passive-interface
This command enables the suppression of OSPF routing updates on the specific interface.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
passive-interfaceinterface_name
interface_name
The name assigned to a logical interface within the specific context. An interface name can be from 1 through 79 alphanumeric characters.
Usage
Use this command to suppress router updates on an interface in the current context.
Example
The following command suppresses OSPF routing updates on the interface named Intfc1:
passive-interface Intfc1
 
redistribute
This command redistributes routes into OSPF. This means that any routes from another protocol are redistributed to OSPF neighbors using the OSPF protocol.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
redistribute {bgp | connected | rip | static} [metricvalue] [metric-type {1 | 2} ] [ route-maproute_map_name ]
bgp
Specifies that BGP routes will be redistributed.
Important: BGP routing is only supported for use with the HA.
connected
Specifies that connected routes will be redistributed.
rip
Specifies that RIP routes will be redistributed. (RIP is not supported at this stage.)
static
Specifies that static routes will be redistributed.
metric value
Sets the OSPF metric used in the redistributed route.
value must be an integer from 1 through 16777214.
metric-type {1 | 2}
Default: 2
Sets route metric type that is applied to redistributed routes.
1: Sets the OSPF external link type for routes to Type 1.
2: Sets the OSPF external link type for routes to Type 2.
route-map route_map_name
Filter routes through the specified route map before redistribution. route_map_name specifies the name of the route-map to use and must be specified as a string of 1 through 79 alphanumeric characters.
Usage
Use this command to define what routing protocols should have their routes redistributed into OSPF.
Example
The following command defines that static routes should be redistributed in an OSPF area:
redistribute static
 
refresh timer
This command adjusts the OSPF refresh timer.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
refreshtimervalue
value
Default: 10
The minimum amount of time, in seconds, to wait before refreshing an LSA. This must be an integer from 10 through 1800.
Usage
Use this command to define the amount of time to wait before refreshing an LSA.
Example
The following command sets the refresh timer to 90 seconds:
refresh timer 90
 
router-id
This command configures the router ID for the OSPF process.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
router-idip_address
ip_address
The router ID for the OSPF process. This must be an IP address entered in dotted-decimal notation
Usage
Use this command to set the router ID for the current OSPF router process.
Example
The following command sets the router ID to 192.168.200.1:
router-id 192.168.200.1
 
timers spf
This command adjusts the Shortest Path First (SPF) timers.
Product
PDSN, HA, GGSN
Privilege
Security Administrator, Administrator
Syntax
timersspfdelay_valuehold_time_value
delay_value
Default: 5
The delay time, in seconds, between receiving changes to an SPF calculation. This must be an integer from 0 through 4294967295.
hold_time_value
Default: 10
The hold time, in seconds, between consecutive SPF calculations. This must be an integer from 0 through 4294967295.
Usage
Use this command to set the SPF delay and hold timers for the current OSPF router process.
Example
The following command sets the delay timer to 15 and the hold timer to 15:
timers spf 15 15
 
 

Cisco Systems Inc.
Tel: 408-526-4000
Fax: 408-527-0883