How to configure OSPF and EIGRP protocol together

kane69kane69 Member Posts: 10 ■□□□□□□□□□
Hi there, Could someone tell me how to configure OSPF and EIGRP together? For example, There are 3 routers, R1 and R2 use OSPF and R3 uses EIGRP for its routing tables. So, after configuring everything, how to communicate EIGRP router and OSPF routers? I don't knw this point.
Thanks so much.

Comments

  • bighornsheepbighornsheep Member Posts: 1,506
    Sounds like you might need to do a bit more reading. Even though the router "runs" the routing protocol ie. EIGRP or OSPF, when you configure the routing, you are actually configuring an interface of the router for the routing protocol. That's how you can get EIGRP & OSPF to "talk" with each other, because one or more routers will run both protocols. The same router will also need to redistribute for the routes to be injected from one protocol to another.

    EIGRP OSPF

    OSPF Redistribution
    Jack of all trades, master of none
  • kryollakryolla Member Posts: 785
    you need to configure one router to support both protocols i.e 1 interface of that router will run ospf and the other will interface will run eigrp and then you can redistribute between the two so both routing domains have each other networks if they need reachability. HTH
    Studying for CCIE and drinking Home Brew
  • Mrock4Mrock4 Banned Posts: 2,359 ■■■■■■■■□□
    Both posters are correct. I was about to post a config, but it's better for you to read up on it, and figure it out. You will truly learn it then....you have the fishing pole..go fish..

    Just read up on route redistribution, and seed metrics. I will say once you add the redistribute commands, be sure to specify the metrics.
  • kane69kane69 Member Posts: 10 ■□□□□□□□□□
    Thanks u all, i m trying
  • Mrock4Mrock4 Banned Posts: 2,359 ■■■■■■■■□□
    Once you read up on it, give it a shot, and if you have questions let us know. Everyone is more than happy to help, but we all want you to learn the material, not just copy and paste. Good luck man. Let us know how it goes.
  • kane69kane69 Member Posts: 10 ■□□□□□□□□□
    Sorry, it is not OSPF and EIGRP, It is RIPv2 and EIGRP. My bad i read the instruction wrong.
    Could someone help me, I m real in need for it. :'(
    All the configuration are finished except to combine these two protocols.

    I m getting this error.
    A_R2(config-router)#redistribute static
    A_R2(config-router)#redistribute eigrp 1
    A_R2(config-router)#passive-interface fastethernet 0/0
    A_R2(config-router)#default-metric 10
                                ^
    % Invalid input detected at '^' marker.
    

    This is the topology, EIGRP and RIPv2 are in different network.
    THANKS SO MUCH FOR YOUR HELPS.
    network.jpg
  • miller811miller811 Member Posts: 897
    Rip operates on hop count
    Eigrp uses a complex matrix
    When you redistribute the two, they have to have a way to understand each other, they need a seed metric.

    For this two work you need the routing protocols properly configured on the middle router, and then you need the proper default metric command entered under each protocol

    router eigrp 1
    redistribute connected
    redistribute rip
    default-metric 10000 10 255 1 1500 (Where 10000 = Bandwidth, 10 = Delay, 255 = Reliability, 1 = Loading, and 1500 = Maximum Transmission Unit)
    !

    router rip
    version 2
    redistribute connected
    redistribute eigrp 1 metric 1 (where 1 is the eigrp number and the second 1 is telling rip how many hops so RIP can understand how to judge the route)
    I don't claim to be an expert, but I sure would like to become one someday.

    Quest for 11K pages read in 2011
    Page Count total to date - 1283
  • kane69kane69 Member Posts: 10 ■□□□□□□□□□
    Thanks so much. It works now. But I used this -
    router rip
    version 2
    redistribute connected
    redistribute eigrp 1 metric 1
    exit
    router eigrp 1
    redistribute connected
    redistribute rip metric 1000 250 255 1 1500
    exit
    

    Still getting error with this one, I don't knw why.
    router eigrp 1
    redistribute connected
    redistribute rip
    default-metric 10000 10 255 1 1500
            ^
    % Invalid input detected at '^' marker. 
    

    Anyway Thanks so ur helps. [/code]
  • bighornsheepbighornsheep Member Posts: 1,506
    kane69 wrote:
    Still getting error with this one, I don't knw why.
    router eigrp 1
    redistribute connected
    redistribute rip
    default-metric 10000 10 255 1 1500
            ^
    % Invalid input detected at '^' marker. 
    

    Anyway Thanks so ur helps. [/code]

    Looks like an IOS version issue, default-metric command doesn't seem to appear in anything older than 12.2
    IOS 12.2 Config Guide

    You can always use the command
    redistribute <protocol> <AS #/process #> metric <metric-parameters>
    

    For myself, I've always used the above passing the metric-parameters trailing the redistribute command.
    Jack of all trades, master of none
  • Mrock4Mrock4 Banned Posts: 2,359 ■■■■■■■■□□
    ditto. If you specify the metric under redistribute, you don't need to use the default-metric command. I like bundling it with the redistro command for neatness.
  • kane69kane69 Member Posts: 10 ■□□□□□□□□□
    Thanks u all for ur helps :)
  • RacidRacid Registered Users Posts: 3 ■□□□□□□□□□
    there's a command or syntax in configuring the RIPv2, EIGRP and OSPF together?
  • fsanyeefsanyee Member Posts: 171
    No, there isn't. You have to configure each protocol individually.
  • RacidRacid Registered Users Posts: 3 ■□□□□□□□□□
    hmmm..
    there`s a 3 lan network the 1st is RIPv2, 2nd lan network use EIGRP then the last one use OSPF how will you connect each lan to each other? is there any possible thing to do ?
  • fsanyeefsanyee Member Posts: 171
    You can use redistribution. Google it.
  • RacidRacid Registered Users Posts: 3 ■□□□□□□□□□
  • martell1000martell1000 Member Posts: 389
    Racid wrote: »
    hmmm..
    there`s a 3 lan network the 1st is RIPv2, 2nd lan network use EIGRP then the last one use OSPF how will you connect each lan to each other? is there any possible thing to do ?

    you can enable redistribution under the routing processes to get everything into anything, but be aware that redistribution can cause problems like routing loops etc.

    best practise is to keep redistribution to a minimum.
    And then, I started a blog ...
Sign In or Register to comment.