cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
677
Views
0
Helpful
7
Replies

Setting up routing protocol

amberjcole
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

7 Replies 7

Jon Marshall
Hall of Fame
Hall of Fame

Was there a specific routing protocol you wanted to use eg. EIGRP/OSPF or would static routing do ?

Jon

I believe static routing would do

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

Thanks for your help, but can I do it this way if both of my hosts are on the same network?

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

That is exactly what I meant. The hosts are separated by two routers

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

Review Cisco Networking for a $25 gift card