Sie sind auf Seite 1von 15

Routing protocols

Rip Version 2
1/31/2013 The content of this exercise will be composed of: Basic Router and Switch Configurations Setting the Rip version 2 as the protocol to exchange data between routers

What is Rip v2? With comparison to Rip v1, Rip version 2 has the ability to read and identify classless networks, meaning, it supports subnetting, and as a result of that, we always need to determine the version to v2 when we use Rip Routing protocol. It is already seen as one of the oldest routing protocol, beside, it can be used in a small environment that consists of three routers maximum, the more router we have, the more our chance of choosing rip as our main routing protocol. It is administrative distance is higher than any other router, 120. This exercise is intended to illustrate how we can run rip version 2 on our small network. Lets start first by looking at the diagram below:

We have three routers we need to set our rip version 2 on, and also, three switches to give the basic configuration. First we will try this trick, we will be using a notepad to write everything down for switch0:

If we copy the commands have and paste them in the switch0, it will run automatically, lets try that now, when we log into the user mode, we will paste the commands and we will see the results, lets try it now:

When we get to the user mode, we should click the right mouse to see the options we have, and since the commands are already copied into the ram, we will get to paste them directly. Lets press paste and see how the switch will respond to the commands:

As you can see, all the commands worked, except the service password encryption because it should be written with a dash in between like password-encryption. We can do it now:

For switch1, and switch2, we can do the same, but we need to change the IP addresses and also, names.

Switch1:

If you notice, we changed the numbers and also the names, we can go to the user mode and just paste these commands, but we need also to make sure the password-encryption command is fixed as it appears in the previous diagram.

as you can see, we didnt get any errors for this one because the command the passwordencryption has been spelled correctly. The same Trick should be done with switch2:

All the switches have their basic configurations; we can certainly do the same trick with routers: Router of network 192.168.3.0/24 and two serials; s0/0/0 and s0/0/1: We will need to notify very important information here; the clock rate needs to be set on the router where the connection was initiated. For example, when you run the mouse over the serial, you will definitely be able to tell which one of the router has the advantage of setting up the clock rate: for example, which one of the routers has the clock rate in the following diagram?

If you see the clock sample, you will know the interface needs a clock rate to be set on it. Here is how: Router Name Router 2 Router 2 Router 3 Router 3 Router 1 Router 1 Serial number S0/0/1 S0/0/0 S0/0/0 S0/0/1 S0/0/0 S0/0/1 Clock Rate 64000 64000 No clock rate 64000 No clock rate No clock rate Destination Router name Router 1 Router 3 Router 2 Router 1 Router 2 Router 3 Serial number S0/0/0 S0/0/0 S0/0/0 S0/0/1 S0/0/1 S0/0/1

Configuring Router 2: From the previous table, we know both serials on this router have the clock rate and need to be set: The basic configuration:

The basic configuration is done, we need to know the networks we are dealing with here. Local Network: 192.168.2.0/24 = FastEthernet 0/0 = 192.168.2.1 S0/0/0: connected to router 3 and we are using /30 network and that is 192.168.4.0/30 and since we have the clock rate, we will give it IP address 192.168.4.1 S0/0/1: connected to router 1 and we are using /30 network and that is 192.168.4.4/30 and since we have the clock rate, we will give it IP address 192.168.4.5 We need to set those information on the router now:

We see interface s0/0/0 and also, s0/0/1 are down still, because the other serials arent activated yet. So, that is perfectly normal. We are done with Router 2, lets move to router 1: Configuration Router 1: The basic configuration:

We need to know the networks we are dealing with: Local network: 192.168.1.0/24 and connected to fastethernet 0/0 and the gateway should be 192.168.1.1 S0/0/0: connected to Router 2 and doesnt need a clock rate and uses the network 192.168.4.4/30 and since the first IP address is used by Router 2, we will set the IP address 192.168.4.6 on this one. When we turn it on, it should establish connectivity with Router 3 since the second one is already on. S0/0/1: connected to Router 3 and doesnt need a clock rate and uses the network 192.168.4.8/30 and since the first IP address will be give to interface s0/0/1 on router 3, the ip address of this interface should be: 192.168.4.10 Lets configure the interfaces now:

If you notice, serial 0/0/0 is in an up state, whereas the s0/0/1 still down, it is because we havent configured the router 3 yet, when we do, all the interfaces will be on. Configuring Router 3: Basic Configuration;

10

We need to know the networks we are dealing with on Router 3: Fa0/0: 192.168.3.0/24 and the gateway should be set to 192.168.3.1 S0/0/0: connected to s0/0/0 on router 2, and doesnt need clock rate and since the first IP of the network 192.168.4.0/30 is already given, we are left with the remaining IP address, and that is 192.168.4.2. S0/0/1: connected to s0/0/1 on router 1 and a clock rate needs to be set on, and should be give the following IP address: 192.168.4.9 Lets do the interfaces configuration now:

11

All the interfaces on all routers have been given IP addresses and clock rates have been successfully set as well.

12

Defining RIP V2 on each Router: Rip version 2 isnt enabled by default on a router, thefore, we need to turn it on. First we will begin with Router 2; what are the networks we need to announce on the updates to the other routers? We do have three networks: 192.168.2.0/24 192.168.4.0/30 192.168.4.4/30

We need to announce those networks, How can we do that on router 2? Lets do it now:

Explanation of the previous command: We accessed the global configuration mode, and then typed router rip; it is letting the router know our used routering protocol will be rip, and then, we specified the version we want to use, not specifying version 2 as it appears above, the router will automatically assume we want version 1 or perhaps version 1.99. Then we typed the networks we need to announce. Now, for each router, we should do the same.

Router 1:

13

Router 3:

We are done with the configurations, how can we make sure if our networks are seeing each other and receiving updates?

The command line: Show ip route:


The command show ip route is what can tell us if our work is right or not. Lets perform that on router 2 first: Router 2:

The letter R stands for RIP Protocol. That information is collected as a result of the updates.

14

Router 3:

Router 1:

End of the lesson ;)

15

Das könnte Ihnen auch gefallen