Task:
Configure routers so that R2 will only originate default information to R3; if 10.1.1.1 is available
!R1 configuration
interface Loopback0
 ip address 10.1.1.1 255.255.255.255
!
interface Serial0/0
 ip address 1.1.1.1 255.0.0.0
no shut
!
router rip
 version 2
 network 1.0.0.0
 network 10.0.0.0
no auto-summary


!R2 configuration
interface Serial0/0
 ip address 1.1.1.2 255.0.0.0
 no shut
!
interface Serial0/1
 ip address 2.2.2.1 255.0.0.0
no shut
!
router rip
 version 2
 network 1.0.0.0
 network 2.0.0.0
 default-information originate route-map match-10


access-list 10 permit 10.1.1.1

route-map match-10
 match ip address 10
 set interface Serial0/1


!R3 configuration

interface Serial0/0
 ip address 2.2.2.2 255.0.0.0
 no shut
!
router rip
 version 2
 network 2.0.0.0





























This command let us do conditional routing as it matches route map name "match-10".

Created Access List 10

Created Route map 10
if ip address in access list 10 matched then interface will be set.
 
Tasks:
Configure ip addresses as per topology
Configure Rip on all networks

R3 will forward all routes to R5 by adding 10 in metric except network 1.1.1.0
R1 will change metric for 4.4.4.0 to 5 for R4 and 8 for R2
Verify results by:
show ip route
! R1 Configuration
interface Serial0/0
 ip address 1.1.1.1 255.255.255.252
no shut

interface Serial0/1
 ip address 3.3.3.1 255.255.255.252
no shut

interface Serial0/2
 ip address 2.2.2.1 255.255.255.252
no shutdown

router rip
 version 2
 offset-list 1 out 5 Serial0/1



 offset-list 1 out 8 Serial0/2

 network 1.0.0.0
 network 2.0.0.0
 network 3.0.0.0
 no auto-summary

access-list 1 permit 4.4.4.0 0.0.0.255



! R2 Configuration
interface Serial0/0
 ip address 2.2.2.2 255.255.255.252
 no shut

router rip
 version 2
 network 2.0.0.0
 no auto-summary



! R3 Configuration
interface Serial0/0
 ip address 1.1.1.2 255.255.255.252
no shut
!
interface Serial0/1
 ip address 4.4.4.1 255.255.255.252
no shut
!
router rip
 version 2
 offset-list 1 out 10 Serial0/1


 network 1.0.0.0
 network 4.0.0.0
 no auto-summary
!
access-list 1 deny   1.1.1.0 0.0.0.255
access-list 1 permit 0.0.0.0 3.3.3.255


! R4 Configuration
interface Serial0/0
 ip address 3.3.3.2 255.255.255.252
 no shut
!
router rip
 version 2
 network 3.0.0.0
 no auto-summary



! R5 Configuration
interface Serial0/0
 ip address 4.4.4.2 255.255.255.252
 no shut
!
router rip
 version 2
 network 4.0.0.0
 no auto-summary
Explanation
IP addresses configured on interface



IP address configured on interface



IP address configured on interface



Configuring Rip

Manipulating metric by 5 by using access list 1. Offset list is applied when information gets out of an interface


Manipulating metric by 8 by using access list 1. Offset list is applied when information gets out of an interface





Access list 1 created


























Manipulating metric by 10 hops by using access list 1. Offset list is applied when information gets out of an interface





Access list 1 created
 
TASKS:
  1. Configure IP addresses on R1 and R2 as per topology
  2. Configure Loopback interface on R2 10.1.1.1/32
  3. Configure 1.1.1.0 as primary static route
  4. Configure 1.1.2.0 as floating static route
  5. Verify results by shutting down primary route interface of R1, R2 and both.
! Configuration of R1
hostname R1

interface FastEthernet0/0
ip address 1.1.2.1 255.255.255.0
no shut

interface FastEthernet0/1
ip address 1.1.1.1 255.255.255.0
no shut

ip route 10.1.1.1 255.255.255.255 1.1.1.100
ip route 10.1.1.1 255.255.255.255 1.1.2.50 15


! Configuration of R2
hostname R2

interface Loopback0
ip address 10.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 1.1.2.50 255.255.255.0
no shut

interface FastEthernet0/1
ip address 1.1.1.100 255.255.255.0
no shut
Explanation










Primary Static route with default Administrative distance
Floating Static route with administrative distance of 15

Verification

R1#show ip route
     1.0.0.0/24 is subnetted, 2 subnets
C       1.1.1.0 is directly connected, FastEthernet0/1
C       1.1.2.0 is directly connected, FastEthernet0/0
     10.0.0.0/32 is subnetted, 1 subnets
S       10.1.1.1 [1/0] via 1.1.1.100

Shut down R1 primary route interface and check routing table now

R1#show ip interface brief
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            1.1.2.1         YES manual up                    up
FastEthernet0/1            1.1.1.1         YES manual administratively down down

R1#sh ip route

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.2.0 is directly connected, FastEthernet0/0
     10.0.0.0/32 is subnetted, 1 subnets
S       10.1.1.1 [15/0] via 1.1.2.50

 
Picture
TASKS:
1. Configure IP Addresses as per diagram
2. Configure 5 subnet of 20.0.0.0/8 as loopback addresses in R3
3. Look into routing table inter-area routes
4. Configure Area Range command on R2 and see change in Routing table of R1. Area range command summarizes range and only work on Border Routers.
5. See Results by using Show ip route; show ip protocols
6. Dubug ip ospf adj and Debug ip ospf events

! R1 Configuration

hostname R1 !

interface Serial0/0

ip address 1.1.1.1 255.255.255.252

no shut

!

interface Serial0/1

ip address 2.2.2.1 255.255.255.252

no shut

!

router ospf 1

network 1.1.1.0 0.0.0.3 area 0

network 2.2.2.0 0.0.0.3 area 10


! R2 Configuration
hostname R2


interface Serial0/0

ip address 1.1.1.2 255.255.255.252

no shut

!

interface Serial0/1

ip address 3.3.3.1 255.255.255.252

no shut

!

router ospf 1

area 20 range 20.1.1.0 255.255.255.0

network 1.1.1.0 0.0.0.3 area 0

network 3.3.3.0 0.0.0.3 area 20


! R3 Configuration

hostname R3


interface Loopback0

ip address 20.1.1.1 255.255.255.255

interface Loopback1

ip address 20.1.1.2 255.255.255.255

interface Loopback2

ip address 20.1.1.3 255.255.255.255

interface Loopback3

ip address 20.1.1.4 255.255.255.255

interface Loopback4

ip address 20.1.1.5 255.255.255.255

!

interface Serial0/0

ip address 3.3.3.2 255.255.255.252

no shut

!

router ospf 1

network 3.3.3.0 0.0.0.3 area 20

network 20.1.1.1 0.0.0.0 area 20

network 20.1.1.2 0.0.0.0 area 20

network 20.1.1.3 0.0.0.0 area 20

network 20.1.1.4 0.0.0.0 area 20

network 20.1.1.5 0.0.0.0 area 20


! R4 Configuration
hostname R4


interface Serial0/0

ip address 2.2.2.2 255.255.255.252

no shut

!

router ospf 1

network 2.2.2.0 0.0.0.3 area 10