Specifications

Table Of Contents
set ospf router-id
MP-421
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
set ospf router-id
To set a separate Open Shortest Path First (OSPF) router ID for each interface or subinterface on a
provider edge (PE) router for each directly attached customer edge (CE) router, use the set ospf
router-id command in route map configuration mode.
set ospf router-id
Syntax Description This command has no arguments or keywords.
Defaults OSPF router ID is not set.
Command Modes Route map configuration
Command History
Usage Guidelines To use this command, you must enable OSPF and
create a routing process.
Examples The following example shows how to match the PE router IP address 192.168.0.0 against the interface
in acc
ess list 1 and set to the OSPF router ID:
router ospf 2 vrfvpn1-site1
redistribute bgp 100 metric-type 1 subnets
network 202.0.0.0 0.0.0.255 area 1
router bgp 100
neighbor 172.19.89. 62 remote-as 100
access-list 1 permit 192.168.0.0
route-map vpn1-site1-map permit 10
match ip address 1
set ospf router-id
Related Commands
Release Modification
12.0(7)T This command was introduced.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX This command is supported in the Cisco IOS Release 12.2SX train.
S
upport in a specific 12.2SX release of this train depends on your
feature set, platform, and platform hardware.
Command Description
router ospf Enables OSPF routing, which places the router in router
con
figuration mode.