Home > BSCI, CCNP, LAB > BSCI – Route Redistribute Lab

BSCI – Route Redistribute Lab

Coming back from a sunny day off (a nice day in Williamsburg) and before my BGP studies (starting tomorrow) – the last big and scary part of this exam, I worked on Route Redistribute theory and lab.

The theory is simple: Sometimes you have to connect networks that use different protocols. Doing so require adjusting the distributed route to the new environment meaning metric, cost and bandwidth should be considered.

It is not always so simple and when adding the fifth or tenth network to the mix or add some extra backup lines it is complicated but the basic idea is simple.

BSCI - Router Redistribute Lab

My lab has three routers: R1RIP has a Serial and four Loopback interfaces and it’s configured with RIPv2, R2OSPF has a Serial and four Loopback interfaces and it’s configured with OSPF. The third router, R3BOTH has two Serial interfaces, each configured with one of the protocols – RIPv2 or OSPF.

Step I:
This step is identical to my EIGRP and OSPF labs: configuring all the interfaces as the diagram show. For the exam it is always good to remember that a no shutdown is required on every interface. Always assume that an interface is administratively down.
The configuration of R1RIP, R2OSPFand R3BOTHis updated to this point.

Step II:
In order to redistribute RIP routes to the OSPF network the following configuration is required on R3BOTH, the meeting point of the two environments:

R3BOTH(config)#router ospf 1
R3BOTH(config-router)#redistribute rip subnets metric 1800 metric-type 1

Using metric-type 1 we make the metric cost incremental – the redistributed route will have the additional metric we configured plus any cost on the way.
This is how you’ll see it on R2OSPF

R2OSPF#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

200.0.1.0/30 is subnetted, 1 subnets
O E1    200.0.1.0 [110/1864] via 200.0.2.2, 00:01:13, Serial0/0
200.0.2.0/30 is subnetted, 1 subnets
C       200.0.2.0 is directly connected, Serial0/0
172.20.0.0/24 is subnetted, 4 subnets
C       172.20.1.0 is directly connected, Loopback0
C       172.20.2.0 is directly connected, Loopback1
C       172.20.3.0 is directly connected, Loopback2
C       172.20.4.0 is directly connected, Loopback3
10.0.0.0/24 is subnetted, 4 subnets
O E1 10.0.2.0 [110/1864] via 200.0.2.2, 00:01:13, Serial0/0
O E1 10.0.3.0 [110/1864] via 200.0.2.2, 00:01:13, Serial0/0
O E1 10.0.1.0 [110/1864] via 200.0.2.2, 00:01:13, Serial0/0
O E1 10.0.4.0 [110/1864] via 200.0.2.2, 00:01:19, Serial0/0

Using metric-type 2 would keep the metric of the route and will not add the cost of any route on the way. This is how it would look on R2OSPF:

R2OSPF#sh ip route

:

10.0.0.0/24 is subnetted, 4 subnets
O E2 10.0.2.0 [110/1800] via 200.0.2.2, 00:00:01, Serial0/0
O E2 10.0.3.0 [110/1800] via 200.0.2.2, 00:00:01, Serial0/0
O E2 10.0.1.0 [110/1800] via 200.0.2.2, 00:00:01, Serial0/0
O E2 10.0.4.0 [110/1800] via 200.0.2.2, 00:00:02, Serial0/0

This is the change I’ve made to get this result:

R3BOTH(config-router)#no redistribute rip subnets metric 1800 metric-type 1
R3BOTH(config-router)#redistribute rip subnets metric 1800 metric-type 2

And the test from R2OSPF to R1RIP Loopback interface

R2OSPF#ping 10.0.2.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.2.1, timeout is 2 seconds:
!!!!!

Step III:
In order to redistribute OSPF routes to the RIP network the following configuration is required on R3BOTH:

R3BOTH(config)#router rip
R3BOTH(config-router)#redistribute ospf 1 match internal metric 5

This is the result on R1RIP:

R1RIP#show ip route
Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

200.0.1.0/30 is subnetted, 1 subnets
C       200.0.1.0 is directly connected, Serial0/0
200.0.2.0/30 is subnetted, 1 subnets
R       200.0.2.0 [120/5] via 200.0.1.2, 00:00:20, Serial0/0
172.20.0.0/32 is subnetted, 4 subnets
R       172.20.1.1 [120/5] via 200.0.1.2, 00:00:20, Serial0/0
R       172.20.3.1 [120/5] via 200.0.1.2, 00:00:20, Serial0/0
R       172.20.2.1 [120/5] via 200.0.1.2, 00:00:20, Serial0/0
R       172.20.4.1 [120/5] via 200.0.1.2, 00:00:20, Serial0/0
10.0.0.0/24 is subnetted, 4 subnets
C       10.0.2.0 is directly connected, Loopback1
C       10.0.3.0 is directly connected, Loopback2
C       10.0.1.0 is directly connected, Loopback0
C       10.0.4.0 is directly connected, Loopback3

And testing the connection from R1RIP to the Loopback interface on R2OSPF

R1RIP#ping 172.20.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.1.1, timeout is 2 seconds:
!!!!!

This is a relatively simple concept with straight forward commands. The route-map concept for traffic filtering is much more complicated but still make sense and use the good old ACLs which CCNA cover and any CCNP candidate should know.

Find more labs here

About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 44 other followers

%d bloggers like this: