477
[metric-type {1|2}][route-map<word>][tag<tag-value>]
Function:
Introduce route learnt from other routing protocols into OSPF
Parameter: kernel
introduce from kernel route
connected
introduce from direct route
static
introduce from static route
rip
introduce from the RIP route
isis
introduce from ISIS route
bgp
introduce from BGP route
metric <value>
is the introduced metric value, ranging between 0-16777214
metric-type {1|2}
is the metric value type of the introduced external route, which
can be 1 or 2, and it is 2 by default
route-map <word>
point to the probe of the route map for introducing route
tag<tag-value>
external identification number of the external route, ranging
between 0~4294967295, defaulted at 0
Command Mode: OSPF mode
Usage Guide:
Learn and introduce other routing protocol into OSPF area to generate
AS-external_LSAs
Example:
Switch#config terminal
Switch(config)#router ospf
Switch(config-router)#redistribute bgp metric 12
14.6.3.39 router ospf
Command: [no] router ospf <process_id> <vrf-name>
Function:
This command is for relating the OSPF process and a specific VPN. All
configuration commands will be related to this VPN after the configuration succeeded.
The “
[no] router ospf <process_id> <vrf-name>
“ command deletes the VPN
routing/forwarding instance related OSPF instances.
Parameter: <process_id>
specifies the id of the OSPF process to be created.
<vrf-name>
specifies the name of VPN routing/forwarding instance
Command Mode:
Global mode
Usage Guide:
This command is only used for PE router. A VPN routing/forwarding
instance should be generated with ip vrf command before using this command, then with
this command you can relate OSPF instances to this VPN routing/forwarding instance
Example:
Switch# config terminal
Switch(config)# router ospf 100 VRF1
Switch(config-router)#network 10.1.1.0/24 area 0
14.6.3.40 default-information originate