0% found this document useful (0 votes)
131 views14 pages

EIGRP and OSPF Router Configuration Guide

The document provides configuration instructions for setting up routing protocols on a network with 7 routers. It includes: 1) Configuring EIGRP on each router with the network statements to advertise routes and using AS 10. 2) Configuring OSPF on each router to be in area 0 and process ID 10. 3) Explaining that the best path between PC1 and PC2 would be through routers R1, R2, and R3 due to having the lowest metric when using either EIGRP or OSPF.

Uploaded by

Haris Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views14 pages

EIGRP and OSPF Router Configuration Guide

The document provides configuration instructions for setting up routing protocols on a network with 7 routers. It includes: 1) Configuring EIGRP on each router with the network statements to advertise routes and using AS 10. 2) Configuring OSPF on each router to be in area 0 and process ID 10. 3) Explaining that the best path between PC1 and PC2 would be through routers R1, R2, and R3 due to having the lowest metric when using either EIGRP or OSPF.

Uploaded by

Haris Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DCCN Lab

Answer No1

We will need to configure routing protocol on all routers, assuming PC have been
configured with IP, subnet mask and default gateway.

A)Routing protocol implemenatation based on EIGRP.

Router 1 commands:(Just writng the commands)(We will use AS 10 for EIGRP)

enable

configure t

router eigrp 10

network [Link] [Link]

network [Link] [Link]


network [Link] [Link]

network [Link] [Link]

Router 2 Commands:

enable

conf t

router eigrp 10

network [Link] [Link]

network [Link] [Link]

Router 3 commands:

enable

conf t

router eigrp 10

network [Link] [Link]


network [Link] [Link]

network [Link] [Link]

network [Link] [Link]

Router 4 commands:

enable

conf t

router eigrp 10

network [Link] [Link]

network [Link] [Link]

Router 5 commands:

enable

conf t
router eigrp 10

network [Link] [Link]

network [Link] [Link]

Router 6 commands:

enable

conf t

router eigrp 10

network [Link] [Link]

network [Link] [Link]

Router 7 commands:

enable

conf t

router eigrp 10
network [Link] [Link]

network [Link] [Link]

Once all the routers configured with EIGRP routing protocol, they will start to
form EIGRP neighborship. Once Neighborship is formed all routers will start
sharing information about the routes they know.

b) Now lets configure OSPF routing protocol. Lets consider all routers are part of
area 0 and has process ID 10

Router 1 commands:

enable

configure t

router ospf 10

network [Link] [Link] area 0

network [Link] [Link] area 0

network [Link] [Link] area 0


network [Link] [Link] area 0

Router 2 Commands:

enable

conf t

router ospf 10

network [Link] [Link] area 0

network [Link] [Link] area 0

Router 3 commands:

enable

conf t

router ospf 10

network [Link] [Link] area 0

network [Link] [Link] area 0


network [Link] [Link] area 0

network [Link] [Link] area 0

Router 4 commands:

enable

conf t

router ospf 10

network [Link] [Link] area 0

network [Link] [Link] area 0

Router 5 commands:

enable

conf t

router ospf 10
network [Link] [Link] area 0

network [Link] [Link] area 0

Router 6 commands:

enable

conf t

router ospf 10

network [Link] [Link] area 0

network [Link] [Link] area 0

Router 7 commands:

enable

conf t

router ospf 10

network [Link] [Link] area 0


network [Link] [Link] area 0

c) Let's understand path taken by PC1 to reach PC2:

EIGRP uses bandwidth and delay to calculate the metric of the path. Here Band
and delay would be same as they have used only serial link. And best route is with
lowest metric. We have three paths to reach from PC1 to PC2, but best route would
be PC1-->R1-->R2-->R3--PC3, because this path only will have lowest metric.

OSPF uses COST to calculate the metric and cost uses bandwidth to calculate the
cost. In OSPF as well, route with lowest cost would become the best route. So for
OSPF routing protocol as well path preferred would be same i.e PC1-->R1-->R2--
>R3--PC3

Hope I was able to answer your question. Please comment below if you have any
doubt, i will try to answer them as soon as possible. Give it a thumbs up if you like
my answer.

Answer No2

Initial IP configuration

Device Interface IP Configuration Connected with


PC0 Fast Ethernet [Link]/8 Router0’s Fa0/1
Router0 Fa0/1 [Link]/8 PC0’s Fast Etherne
Router0 S0/0/1 [Link]/30 Router2’s S0/0/1
Router0 S0/0/0 [Link]/30 Router1’s S0/0/0
Router1 S0/0/0 [Link]/30 Router0’s S0/0/0
Router1 S0/0/1 [Link]/30 Router2’s S0/0/0
Router2 S0/0/0 [Link]/30 Router1’s S0/0/1
Router2 S0/0/1 [Link]/30 Router0’s S0/0/1
Router2 Fa0/1 [Link]/30 PC1’s Fast Etherne
PC1 Fast Ethernet [Link]/30 Router2’s Fa0/1
We need to configure IP address and other parameters on interfaces before we could
actually use them for routing. Interface mode is used to assign IP address and other
parameters. Interface mode can be accessed from global configuration mode. Following
commands are used to access the global configuration mode.

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
From global configuration mode we can enter in interface mode. From there we can
configure the interface. Following commands will assign IP address on FastEthernet0/0.

Router(config)#interface fastEthernet 0/0


Router(config-if)#ip address [Link] [Link]
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
interface fastEthernet 0/0 command is used to enter in interface mode.

ip address [Link] [Link] command will assign IP address to interface.

no shutdown command will bring the interface up.

exit command is used to return in global configuration mode.

Serial interface needs two additional parameters clock rate and bandwidth. Every


serial cable has two ends DTE and DCE. These parameters are always configured at DCE
end.

We can use show controllers interface command from privilege mode to check the


cable’s end.

Router#show controllers serial 0/0/0


Interface Serial0/0/0
Hardware is PowerQUICC MPC860
DCE V.35, clock rate 2000000
[Output omitted]
Fourth line of output confirms that DCE end of serial cable is attached. If you see DTE
here instead of DCE skip these parameters.

Now we have necessary information let’s assign IP address to serial interface.

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/1
Router(config-if)#ip address [Link] [Link]
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#
Router#configure terminal Command is used to enter in global configuration mode.

Router(config)#interface serial 0/0/0 Command is used to enter in interface mode.

Router(config-if)#ip address [Link] [Link] Command assigns IP


address to interface. For serial link we usually use IP address from /30 subnet.

Router(config-if)#clock rate 64000 And Router(config-if)#bandwidth 64 In real


life environment these parameters control the data flow between serial links and need
to be set at service providers end. In lab environment we need not to worry about these
values. We can use these values.

Router(config-if)#no shutdown Command brings interface up.

Router(config-if)#exit Command is used to return in global configuration mode.

We will use same commands to assign IP addresses on interfaces of remaining routers.


We need to provided clock rate and bandwidth only on DCE side of serial interface.
Following command will assign IP addresses on interface of Router1.

Router1
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/1
Router(config-if)#ip address [Link] [Link]
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router(config-if)#exit
Use same commands to assign IP addresses on interfaces of Router2.

Router2
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/1
Router(config-if)#ip address [Link] [Link]
Router(config-if)#no shutdown
Router(config-if)#exit
Great job we have finished our half [Link] be on same page we have uploaded our
practice topology with IP configuration. You can download it form here.

Now routers have information about the networks that they have on their own
interfaces. Routers will not exchange this information between them on their own. We
need to implement RIP routing protocol that will insist them to share this information.

Configure RIP routing protocol

Configuration of RIP protocol is much easier than you think. It requires only two steps to
configure the RIP routing.

 Enable RIP routing protocol from global configuration mode.


 Tell RIP routing protocol which networks you want to advertise.

Let’s configure it in Router0

Router0
Router0(config)#router rip
Router0(config-router)# network [Link]
Router0(config-router)# network [Link]
Router0(config-router)# network [Link]
router rip command tell router to enable the RIP routing protocol.

network command allows us to specify the networks which we want to advertise. We


only need to specify the networks which are directly connected with the router.

That’s all we need to configure the RIP. Follow same steps on remaining routers.

Router1
Router1(config)#router rip
Router1(config-router)# network [Link]
Router1(config-router)# network [Link]
Router2
Router2(config)#router rip
Router2(config-router)# network [Link]
Router2(config-router)# network [Link]
Router2(config-router)# network [Link]
That’s it. Our network is ready to take the advantage of RIP routing. To verify the setup
we will use ping command. ping command is used to test the connectivity between two
devices.

Access the command prompt of PC1 and use ping command to test the connectivity


from PC0

Answer No3
I have used the VLSM technique to allocate IPs

Our total demand for IPs is 180 hosts and allocated from ascending order highest to lowest.

The research department needs 85 hosts who are not in the power of 2^n so to satisfy this demand we
need 2^7=128 hosts means we need 7 zeros in the subnet mask to give this many IPs
11111111.11111111.11111111.10000000 will be subnet mask for the research department same for
other department subnet mask will be calculated.

Name Hosts Needed Hosts Available Unused Hosts Network Address Slash Mask Usable
Range Broadcast
Research Department 85 126 41 [Link] /25 [Link]
[Link] - [Link] [Link]

Sales Department 45 62 17 [Link] /26 [Link]


[Link] - [Link] [Link]

IT Department 25 30 5 [Link] /27 [Link] [Link] -


[Link] [Link]

Administrative Department 15 30 15 [Link] /27 [Link]


[Link] - [Link] [Link]

Finance Department 10 14 4 [Link] /28 [Link]


[Link] - [Link] [Link]

i hope it helps..

If you have any doubts please comment and please don't dislike.

PLEASE GIVE ME A LIKE. ITS VERY IMPORTANT FOR ME

You might also like