02-05-2014 10:15 AM - edited 03-07-2019 06:01 PM
Using two 2921 routers connected across ethernet interfaces how do I set up a routing protocol to go from one host on one router to another host on the other router?
Solved! Go to Solution.
02-05-2014 01:59 PM
H1 (192.168.5.2/24) -> (192.168.5.1/24) R1 (192.168.6.1/24) -> (192.168.6.2/24) R2 (192.168.7.1/24) -> (192.168.7.2) H2
R1 config
=======
ip route 192.168.7.0 255.255.255.0 192.168.6.2
R2 config
=======
ip route 192.168.5.0 255.255.255.0 192.168.6.1
Jon
02-05-2014 01:44 PM
Was there a specific routing protocol you wanted to use eg. EIGRP/OSPF or would static routing do ?
Jon
02-05-2014 01:56 PM
I believe static routing would do
02-05-2014 01:59 PM
H1 (192.168.5.2/24) -> (192.168.5.1/24) R1 (192.168.6.1/24) -> (192.168.6.2/24) R2 (192.168.7.1/24) -> (192.168.7.2) H2
R1 config
=======
ip route 192.168.7.0 255.255.255.0 192.168.6.2
R2 config
=======
ip route 192.168.5.0 255.255.255.0 192.168.6.1
Jon
02-06-2014 08:53 AM
Thanks for your help, but can I do it this way if both of my hosts are on the same network?
02-06-2014 08:57 AM
If both your hosts are on the same network then there is no need to route.
Do you mean. using my example above, if H1 and H2 were on the same network separated by two routers ?
If so yes you can use L2TPv3 to do this this but it is only really used when there is no other alternative eg. you need a L2 vlan to extend across a L3 network.
Jon
02-06-2014 08:59 AM
That is exactly what I meant. The hosts are separated by two routers
02-06-2014 09:06 AM
Well you can use L2TPv3 if supported by your routers.
There are other ways of extending a L2 vlan/IP subnet over a L3 network eg. EoMPLS, VPLS which both require an MPLS network to run over, OTV which is really only used in DCs and is not supported on most devices but you wouldn't setup any of these just to connect two hosts over a pair of routers.
Like i said though generally if you can route you should especially in the scenario you describe.
Jon
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide