[go: up one dir, main page]

0% found this document useful (0 votes)
23 views13 pages

CH 3 2 Routing

Uploaded by

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

CH 3 2 Routing

Uploaded by

nafyjabesa1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Configuring Dynamic Routing Protocols

–RIP
–IGRP
–EIGRP
–OSPF
–IS-IS
–BGP
30.0.0.0

R2 R3
Configure the
following network
with different
routing protocols

R1
R4
Configuring R1 Interfaces
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-
UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#bandwidth 64
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#exit
Configuring R2 Interfaces
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface serial 0/0
R2(config-if)#ip address 20.0.0.2 255.0.0.0
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0, changed state to up %LINEPROTO-5-
UPDOWN: Line protocol on Interface Serial0/0, changed state to up
R2(config-if)#exit
R2(config)#interface fastethernet 0/0
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
R2(config-if)#exit
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed
state to up
Configuring R3 Interfaces
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#interface fastethernet 0/0
R3(config-if)#ip address 30.0.0.2 255.0.0.0
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-
UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#interface serial 0/0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#clock rate 64000
R3(config-if)#bandwidth 64
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
R3(config-if)#exit %LINK-5-CHANGED: Interface Serial0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Configuring R4 Interfaces
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R4
R3(config)#interface fastethernet 0/0
R3(config-if)#ip address 50.0.0.1 255.0.0.0
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-
UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#interface serial 0/0
R3(config-if)#ip address 40.0.0.2 255.0.0.0
R3(config-if)#clock rate 64000
R3(config-if)#bandwidth 64
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
R3(config-if)#exit %LINK-5-CHANGED: Interface Serial0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Applying Dynamic
Routing Protocols on
R1,R2,R3,R4
RIP 30.0.0.0
 How to configure router
R1 with RIP protocol? R2 R3

20.0.0.0
R1>enable 40.0.0.0

R1#configure terminal
10.0.0.0
R1(config)#router rip 50.0.0.0
R1 R4

R1(config-router)#network 10.0.0.0

R1(config-router)#network 20.0.0.0

R1(config-router)#exit
IGRP 30.0.0.0
 How to configure router
R2 with IGRP protocol? R2 R2

R2>enable
20.0.0.0
40.0.0.0
R2#configure terminal

R2(config)#router rip
10.0.0.0
50.0.0.0
R2(config)#router igrp 100 R1 R3

R2(config-router)#network 20.0.0.0

R2(config-router)#network 30.0.0.0

R2(config-router)#exit

100 is Autonoms System (AS) number


EIGRP 30.0.0.0

 How to configure router


R3 with EIGRP protocol? R2 R3

20.0.0.0
40.0.0.0
R3>enable

R3#configure terminal 10.0.0.0


50.0.0.0
R1 R4
R3(config)#router eigrp 1

R3(config-router)#network 30.0.0.0

R3(config-router)#network 40.0.0.0

R3(config-router)#exit
OSPF
Router(config)# router ospf process_ID

Router(config-router)# network IP_address wildcard_mask area area_#

The process_ID Used to differentiate between OSPF


processes running on the same router.
Your router might be a boundary router between two OSPF
autonomous systems, and to differentiate them on your
router, you will give them unique process IDs.
Note that these numbers do not need to match between
different routers so they have nothing to do with autonomous
system numbers.
30.0.0.0
OSPF
R2 R3
 How to configure router
R2 with OSPF protocol? 20.0.0.0
40.0.0.0

R1 R4

R2>enable

R2#configure terminal

R2(config)#router ospf 2

R2(config-router)#network 20.0.0.0 0.255.255.255 area 0

R2(config-router)#network 30.0.0.0 0.255.255.255 area 0

R2(config-router)#exit
Different Routing Commands
Commands Descriptions

Router(config)#router rip Enables RIP as a routing protocol

w.x.y.z is the network number of the directly connected


Router(config-router)#network w.x.y.z
network you want to advertise.

Router(config)#no router rip Turns off the RIP routing process

Router(config-router)#no network w.x.y.z Removes network w.x.y.z from the RIP routing process.

Router(config-router)#version 2 RIP will now send and receive RIPv2 packets globally.

Router(config-router)#version 1 RIP will now send and receive RIPv1 packets only

RIPv2 summarizes networks at the classful boundary.


Router(config-router)#no auto-summary
This command turns autosummarization off.

Router(config-router)#passive-interface s0/0/0 RIP updates will not be sent out this interface.

Router(config-router)#no ip split-horizon Turns off split horizon (on by default).

Router(config-router)#ip split-horizon Re-enables split horizon

Changes timers in RIP: 30 = Update timer (in seconds)


90 = Invalid timer (in seconds) 180 = Hold-down timer
Router(config-router)#timers basic 30 90 180 270 360
(in seconds) 270 = Flush timer (in seconds) 360 = Sleep
time (in milliseconds)

Router#debug ip rip Displays all RIP activity in real time

You might also like