Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Policy based routing over OSPF

Dear Expert

I am using cisco 3845 at Head office  and 2801 at Branch with two WAN link over OSPF.

my configuration as follows.

 

Head Office

 

interface Tunnel 1
 ip address 172.24.26.1 255.255.255.252
 ip ospf cost 500
 tunnel source 172.16.1.1
 tunnel destination 172.16.2.1
!
interface Tunnel2
 ip address 172.25.26.1 255.255.255.252
 ip ospf cost 1000
 tunnel source 10.0.1.1
 tunnel destination 10.0.2.1

 

router ospf 50

 log-adjacency-changes
 area 0 stub
 network 172.24.26.0 0.0.0.3 area 0
 network 172.25.26.0 0.0.0.3 area 0
 network 192.168.1.0 0.0.0.255 area 0 ( Local Network) 

 

Branch Office

 

interface Tunnel 1
 ip address 172.24.26.2 255.255.255.252
 ip ospf cost 500
 tunnel source 172.16.2.1
 tunnel destination 172.16.1.1
!
interface Tunnel2
 ip address 172.25.26.2 255.255.255.252
 ip ospf cost 1000
 tunnel source 10.0.2.1
 tunnel destination 10.0.1.1

 

router ospf 50

 log-adjacency-changes
 area 1 stub
 network 172.24.26.0 0.0.0.3 area 1 (Tunnel 1)
 network 172.25.26.0 0.0.0.3 area 1(Tunnel 1)
 network 192.168.26.0 0.0.0.255 area 1 ( Local Network )

 

According to my configuration HO network 192.168.1.0/24 doing communication with 192.168.26.0/24 ( Branch Network) through tunnel 1 and its working fine. when tunnel 1 goes down tunnel 2 up automatically.

 

Now my requirement when branch want to go Ho for some IP and port  like 80  it goes to tunnel 2. all traffic will go tunnel 1 except some ip or port. 

if tunnel 2 goes down it automatically shift to tunnel 1.

my purpose use of  both tunnel but not load balancing.

 

How i do it  ??? please suggest me.

 

Regards

Shahid

 

3 REPLIES
Super Bronze

DisclaimerThe Author of this

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

You could probably accomplish what you want with PBR.  Dealing with link failures, can sometimes be a bit complex, especially using GRE tunnels, which by default, are always up.

Community Member

Another "silly" is to break

Another "silly" is to break the  inside LAN to smaller pieces and use static routes along with track option. Or (extreme option) make BGP neighborship betwwen the router and advertise aggregates from both tunnels and more specific routes from each one as you wish.

Community Member

i can use static route for

i can use static route for specific ip but the problem is when that link fail how to go traffic ???

233
Views
0
Helpful
3
Replies
CreatePlease to create content