cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
307
Views
10
Helpful
4
Replies

Helpp With a route statement

angel-moon
Level 3
Level 3

Hello Everyone,

I need some help with a route statement. On a 2851 with a point to point connection to another 2851 I need a statement that will send all traffic that comes up from the Gigabit interface destined for subnet 10.0.5.0 out serial interface 0/0/0. The IP address on the other end of the point to point is 10.50.10.1

Thanks in advance! Al replies rated!

1 Accepted Solution

Accepted Solutions

Actually, you would add in addition to if the 10.0.5.0 subnet is going to be staying.

Say you have serial0 and serial1:

s0: 10.50.10.2 --> s0: 10.50.10.1

s1: 192.168.2.1 --> s1: 192.168.2.2

The internal network is on G0: 172.15.15.0/24

S0 peers with another router on it's S0 interface with address of 10.50.10.1 and the internal subnet is 10.0.5.0.

S1 peers with a different router on it's S0 interface at 192.168.2.2 and an internal subnet of 172.15.15.0.

On your router with S0 and S1, you would just create two static routes to the two internal subnets on the other side of your links like:

ip route 10.0.5.0 255.255.255.0 10.50.10.1

ip route 172.15.15.0 255.255.255.0 192.168.2.2

The router is smart enough to know which interface to go out of. :) Both static routes can stay.

HTH,

John

HTH, John *** Please rate all useful posts ***

View solution in original post

4 Replies 4

Richard Burts
Hall of Fame
Hall of Fame

Angel

If your requirement is to send traffic destined for subnet 10.0.5.0 over the serial link to next hop 10.50.10.1 then a simple static route will be sufficient. It would look something like this:

ip route 10.0.5.0 255.255.255.0 10.50.10.1

But if the requirement is to send traffic to 10.0.5.0 over the serial only if it comes from the Gigabit interface then you would need either to use VRF-lite or to use Policy Based Routing.

HTH

Rick

HTH

Rick

John Blakley
VIP Alumni
VIP Alumni

If you're just wanting to use a static route, you could try:

ip route 10.0.5.0 10.50.10.1

You said that you wanted any traffic coming from the g0/0 interface to go there though. Is there anything special to this interface that you need to lock it down to being just that interface? If so, you may need a route-map. The above statement would allow any traffic destined for the 10.0.5.0 subnet to go to the 10.50.10.1 interface on the other side.

HTH,

John

HTH, John *** Please rate all useful posts ***

Thanks Guys. For now I think simple is best. I forgot to mention that there will be a second Serial interface on this router with different subnets that it needs to get to. I imagine that all I need to do is change the IP addresses on the statements provided correct?

Actually, you would add in addition to if the 10.0.5.0 subnet is going to be staying.

Say you have serial0 and serial1:

s0: 10.50.10.2 --> s0: 10.50.10.1

s1: 192.168.2.1 --> s1: 192.168.2.2

The internal network is on G0: 172.15.15.0/24

S0 peers with another router on it's S0 interface with address of 10.50.10.1 and the internal subnet is 10.0.5.0.

S1 peers with a different router on it's S0 interface at 192.168.2.2 and an internal subnet of 172.15.15.0.

On your router with S0 and S1, you would just create two static routes to the two internal subnets on the other side of your links like:

ip route 10.0.5.0 255.255.255.0 10.50.10.1

ip route 172.15.15.0 255.255.255.0 192.168.2.2

The router is smart enough to know which interface to go out of. :) Both static routes can stay.

HTH,

John

HTH, John *** Please rate all useful posts ***
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco