I have a very basic question. Needs your input. If i want to send Static route into OSPF environment. Then which of the following options would work. Unfortunately i cannot test it..so wondering if someone has tested this environment can suggest.
ip route 22.214.171.124 255.255.255.248 126.96.36.199
route ospf xxx
1. redistribute static subnets
2. redistribute static metric-type 1 subnets
3. redistribute static metric-type 1 subnets route-map static-to-ospf.
If I want to redistribute static route to be send into OSPF environment. Then can i use Option # 1, 2 and 3. I know option # 3 needs to have a route-map created for static route. But Option 1 and 2 what's the difference. Why would i need metric-type 1 as mentioned in Option 2. But Option # 1 would work too. Kindly reply ..
It's probably typo - a small correction in your post.
"if i use static route command in ospf with metric-type 1 then the cost will remain the same" -- actual the cost would vary with type 1 as the route traverses more links. With type 2 the metric would remain the same.
To redistribute IBGP routes into another process you need to configure the command 'bgp redistribute-internal' under the BGP process. However, it's not really recommended to use this option due to some problems that might arise out of this.
BTW there's nothing stupid about your questions and I believe they are valid concerns.
By default the IOS will not redistribute a route learned by IBGP, even if there is a route map which is permitting it. It is possible to change the default behavior if you really want to. The command to do this is: