Sunteți pe pagina 1din 90

Copyright

CTTC Professional DevelopmentProgram.


CCNA Lab Manual (642-902)
Copyright@ CTTC

Published By

CTTC 45-M,
Block-6 P.E.C.H.S Karachi-75400 Pakistan.

All rights reserved. No part of this manual may be reproduced or transmitted in any form or by
any means, electronic or mechanical, including photocopying, recording and information storage
or retrieval system without written permission from the publisher, except for the inclusion of
quotation in a review.

Warning and Disclaimer

This manual is designed to provide information about CCNA (642-902). Every effort has been
made to make this manual as complete and accurate as possible, but no warranty of fitness is
implied. The information is provided on as basis and CTTC shall have neither liability nor
responsibility to any person or entity with respect to any loss or damage Arising from the
information contained in this manual.

Authors

Mr. Muddasar Sharif


(Network Engineer)

Mr. Tharpal Das


(Associate Network Engineer)

Reviewed By
Mr. Ahmed Saeed

(Head of Department-Cisco Division)

1
Table of Contents Page#

Chapter 01
Enhance Interior Gateway Routing Protocol
Basic Eigrp 05
Eigrp Authentication 09
Eigrp Unequal Load Balancing 12
Eigrp Stub 15
Route Summarization in EIGRP 19

Chapter 02
Open Shortest Path First

Basic Ospf 21
Ospf Special Areas 26
Route Summarization in OSPF 30
Ospf Md5 Authentication 32
Ospf DR/BDR Selection 34
Ospf Virtual-Link 38

Chapter 03
Border Gateway Protocol

Configuring External BGP Session 41


Configuring Internal BGP Session 43
EBGP Multi hop 46
BGP Next hop Self 48
BGP Metric Attribute 51
BGP Local Preference 55
LAB: BGP Prefix List 59
LAB: BGP Distribute List 61

IPSLA 65

Chapter 04
Internetnet Protocol Version 6 (IPv6)

2
IPv6 Static Route 68
Configure RIPng on IPv6 69
Configure Eigrp on IPv6 73
Configure Ospf v. 3.0 on IPv6 76

Chapter 05
Re-distribution

Redistribution of multiple protocols 81


Manual Tunneling 84

3
LAB: Basic Eigrp

OBJECTIVE: To implement and show basic EIGRP functionality

Configuration on cttc-HR
Router(config)#hostname cttc-HR
cttc-HR(config)#int fa0/1
cttc-HR(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-HR(config-if)#no shutdown
cttc-HR(config-if)#exit
cttc-HR(config)#int s0/3/1
cttc-HR(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-HR(config-if)#clock rate 64000
cttc-HR(config-if)#no shutdown
cttc-HR(config-if)#exit
cttc-HR(config)#Router eigrp 10
cttc-HR(config-router)#no auto-summary
cttc-HR(config-Router)#network 10.0.0.0
cttc-HR(config-Router)#network 11.0.0.0

4
cttc-HR#showip route

cttc-HR#showipeigrp topology

cttc-HR#showipeigrp neighbors

5
Configuration on cttc-Finance

Router(config)#hostname cttc-finance
cttc-finance(config)#int fa0/1
cttc-finance(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-finance(config-if)#no shutdown
cttc-finance(config-if)#exit
cttc-finance(config)#int s0/3/1
cttc-finance(config-if)#ip address 12.0.0.1 255.0.0.0
cttc-finance(config-if)#clock rate 64000
cttc-finance(config-if)#no shutdown
cttc-finance(config-if)#exit
cttc-finance(config)#router eigrp 10
cttc-finance(config-router)#no auto-summary
cttc-finance(config-router)#network 12.0.0.0
cttc-finance(config-router)#network 10.0.0.0
cttc-finance(config-router)#exit

Configuration on CTTC-SALES

cttc-sale(config)#hostname ctt-sales
CTTC-SALES(config)#int s0/1
CTTC-SALES(config-if)#ip address 11.0.0.2 255.0.0.0
CTTC-SALES(config-if)#no shutdown
CTTC-SALES(config-if)#exit
CTTC-SALES(config)#int fa0/0
CTTC-SALES(config-if)#ip address 13.0.0.1 255.0.0.0
CTTC-SALES(config-if)#no shutdown
CTTC-SALES(config-if)#exit
CTTC-SALES(config)#router eigrp 10
CTTC-SALES(config-router)#network 11.0.0.0
CTTC-SALES(config-router)#network 13.0.0.0
CTTC-SALES(config-router)#no auto-summary
CTTC-SALES(config-router)#exit

6
Configuration on cttc-MKT
Router(config)#hostname cttc-mkt
cttc-mkt(config)#int s0/2
cttc-mkt(config-if)#ip address 12.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#int fa0/0
cttc-mkt(config-if)#ip address 13.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#router eigrp 10
cttc-mkt(config-router)#network 13.0.0.0
cttc-mkt(config-router)#network 12.0.0.0
cttc-mkt(config-router)#no auto-summary
cttc-mkt(config-router)#exit

7
LAB: EIGRP Authentication

OBJECTIVE: To implement and show how we can configure authentication in EIGRP and
what results we can achieve.

Router(config)#hostname CTTC-SALES

Router(config)#hostname CTTC-SALES
CTTC-SALES(config)#int s0/3/1
CTTC-SALES(config-if)#ip address 10.0.0.2 255.0.0.0
CTTC-SALES(config-if)#clock rate 64000
CTTC-SALES(config-if)#no shutdown
CTTC-SALES(config-if)#exit
CTTC-SALES(config)#int loopback 0
CTTC-SALES(config-if)#ip address 1.1.1.1 255.0.0.0
CTTC-SALES(config-if)#exit
CTTC-SALES(config)#router eigrp 10
CTTC-SALES(config-router)#no auto-summary
CTTC-SALES(config-router)#network 10.0.0.0
CTTC-SALES(config-router)#network 1.1.1.0
CTTC-SALES(config)#key chain sales
CTTC-SALES(config-keychain)#key 1
CTTC-SALES(config-keychain-key)#key-string cisco
CTTC-SALES(config-keychain-key)#exit
CTTC-SALES(config-keychain)#int s0/3/1
CTTC-SALES(config-if)#ip authentication mode eigrp 10

8
CTTC-SALES#shipeigrp 10 interfaces detail

Configuration on cttc-mkt
Router(config)#hostname cttc-mkt
cttc-mkt(config)#int s0/3/0
cttc-mkt(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#int loopback 0
cttc-mkt(config-if)#ip address 2.2.2.2 255.0.0.0
cttc-mkt(config-if)#exit
cttc-mkt(config)#router eigrp 10
cttc-mkt(config-router)#network 10.0.0.0
cttc-mkt(config-router)#network 2.2.2.2
cttc-mkt(config-router)#exit
cttc-mkt(config)#router eigrp 10
cttc-mkt(config-router)#no auto-summary
cttc-mkt(config-router)#exit
cttc-mkt(config)#key chain mkt
cttc-mkt(config-keychain)#key 1
cttc-mkt(config-keychain-key)#key-string cisco
cttc-mkt(config-keychain-key)#exit
cttc-mkt(config-keychain)#int s0/3/0
cttc-mkt(config-if)#ip authentication key-chain eigrp 10 mkt

9
cttc-mkt#showipeigrp 10 interfaces detail

10
LAB: EIGRP Unequal Load Balancing

OBJECTIVE: To show how unequal loadbalancing is achieved in EIGRP

Configuration on cttc-sales
router(config)#hostname cttc-sales
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 12.0.0.2 255.0.0.0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales (config)#int s0/3/1
cttc-sales (config-if)#ip address 10.0.0.2 255.0.0.0
cttc-sales (config-if)#no shutdown
cttc-sales (config)#exit
cttc-sales(config)#router eigrp 10
cttc-sales(config-router)#no auto-summary
cttc-sales(config-router)#network 10.0.0.0
cttc-sales(config-router)#network 12.0.0.0
cttc-sales(config-router)#variance 2

11
cttc-sales#showipeigrp topology

cttc-sales#showip route

12
Configuration on cttc-hr
Router(config)#hostname cttc-HR
cttc-hr#configure terminal
cttc-hr(config)#int s0/2
cttc-hr(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 13.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#router eigrp 10
cttc-hr(config-router)#network 13.0.0.0
cttc-hr(config-router)#network 11.0.0.0
cttc-hr(config-router)#exit

Configuration on cttc-mkt

router(config)#hostname cttc-mkt
cttc-mkt(config)#int s0/3/1
cttc-mkt(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-mkt(config-if)#clock rate 64000
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#int s0/3/0
cttc-mkt(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#interface fa0/0
cttc-mkt(config-if)#ip address 12.0.0.1 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#router eigrp 10
cttc-mkt(config-router)#no auto-summary
cttc-mkt(config-router)#network 11.0.0.0
cttc-mkt(config-router)#network 10.0.0.0
cttc-mkt(config-router)#network 12.0.0.0
cttc-mkt(config-router)#exit

13
LAB: EIGRP Stub

OBJECTIVE: To show how we can limit the query process by implementing EIGRP stub.

Configuration on cttc-mkt
Router(config)#hostname cttc-mkt
cttc-mkt(config)#int s0/3/1
cttc-mkt(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-mkt(config-if)#clock rate 64000
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#int s0/3/0
cttc-mkt(config-if)#ip address 12.0.0.2 255.0.0.0
cttc-mkt(config-if)#clock rate 64000
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#int fa0/0
cttc-mkt(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#router eigrp 10
cttc-mkt(config-router)#no auto-summary
cttc-mkt(config-router)#network 10.0.0.0
cttc-mkt(config-router)#network 11.0.0.0
cttc-mkt(config-router)#network 12.0.0.0
cttc-mkt(config-router)#exit

14
cttc-mkt#debugeigrp packets query

EIGRP Packets debugging is on


(QUERY)
cttc-mkt#
*Jan 7 00:38:18.415: EIGRP: Received QUERY on FastEthernet0/0 nbr 10.0.0.2
*Jan 7 00:38:18.415: AS 10, Flags 0x0, Seq 6/0 idbQ 0/0 iidbQ un/rely 0/0 pee rQ un/rely 0/0
*Jan 7 00:38:18.427: EIGRP: Enqueueing QUERY on Serial0/3/1 iidbQ un/rely 0/1 serno 8-8
*Jan 7 00:38:18.427: EIGRP: Enqueueing QUERY on Serial0/3/0 iidbQ un/rely 0/1 serno 8-8
*Jan 7 00:38:18.427: EIGRP: Enqueueing QUERY on FastEthernet0/0 iidbQ un/rely 0 /1
serno 8-8
*Jan 7 00:38:18.431: EIGRP: Enqueueing QUERY on Serial0/3/1 nbr 12.0.0.1 iidbQ un/rely 0/0 peerQ
un/rely 0/0 serno 8-8
*Jan 7 00:38:18.431: EIGRP: Enqueueing QUERY on Serial0/3/0 nbr 11.0.0.1 iidbQ un/rely 0/0 peerQ
un/rely 0/0 serno 8-8
*Jan 7 00:38:18.431: EIGRP: Sending QUERY on FastEthernet0/0
*Jan 7 00:38:18.431: AS 10, Flags 0x0, Seq 17/0 idbQ 0/0 iidbQ un/rely 0/0 serno 8-8
*Jan 7 00:38:18.431: EIGRP: Sending QUERY on Serial0/3/1 nbr 12.0.0.1
*Jan 7 00:38:18.431: AS 10, Flags 0x0, Seq 15/2 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 8-
8
*Jan 7 00:38:18.431: EIGRP: Sending QUERY on Serial0/3/0 nbr 11.0.0.1
*Jan 7 00:38:18.431: AS 10, Flags 0x0, Seq 16/2 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 8-
8u all
All possible debugging has been turned off

After shutting down loopback 0 on router cttc-finance


cttc-mkt#debugeigrp packets query

EIGRP Packets debugging is on


(QUERY)
cttc-mkt#
*Jan 7 00:40:44.959: EIGRP: Received QUERY on FastEthernet0/0 nbr 10.0.0.2
*Jan 7 00:40:44.959: AS 10, Flags 0x0, Seq 9/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0
*Jan 7 00:40:44.971: EIGRP: Enqueueing QUERY on Serial0/3/1 iidbQ un/rely 0/1 serno 11-11
*Jan 7 00:40:44.971: EIGRP: Enqueueing QUERY on Serial0/3/0 iidbQ un/rely 0/1 serno 11-11
*Jan 7 00:40:44.971: EIGRP: Enqueueing QUERY on FastEthernet0/0 iidbQ un/rely 0/1 serno 11-11
*Jan 7 00:40:44.975: EIGRP: Enqueueing QUERY on Serial0/3/1 nbr 12.0.0.1 iidbQ un/rely 0/0 peerQ
un/rely 0/0 serno 11-11
*Jan 7 00:40:44.975: EIGRP: Enqueueing QUERY on Serial0/3/0 nbr 11.0.0.1 iidbQ un/rely 0/0 peerQ
un/rely 0/0 serno 11-11
*Jan 7 00:40:44.975: EIGRP: Sending QUERY on FastEthernet0/0
*Jan 7 00:40:44.975: AS 10, Flags 0x0, Seq 28/0 idbQ 0/0 iidbQ un/rely 0/0 serno 11-11

15
*Jan 7 00:40:45.047: EIGRP: Received QUERY on Serial0/3/0 nbr 11.0.0.1
*Jan 7 00:40:45.047: AS 10, Flags 0x0, Seq 10/30 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0 /0
*Jan 7 00:40:45.047: EIGRP: Received QUERY on Serial0/3/1 nbr 12.0.0.1
*Jan 7 00:40:45.047: AS 10, Flags 0x0, Seq 7/31 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/ 0u
all
Configuration on cttc-finance
Router(config)#hostname cttc-finance
Cttc-finance#configure terminal
Cttc-finance(config)#int fa0/0
Cttc-finance(config-if)#ip address 10.0.0.2 255.0.0.0
Cttc-finance(config-if)#no shutdown
Cttc-finance(config-if)#exit
Cttc-finance(config)#int loopback 0
Cttc-finance(config-if)#ip address 1.1.1.1 255.0.0.0
Cttc-finance(config-if)#exit
Cttc-finance(config)#router eigrp 10
Cttc-finance(config-router)#no auto-summary
Cttc-finance(config-router)#network 10.0.0.0
Cttc-finance(config-router)#network 1.1.1.0
Cttc-finance(config-router)#exit

Configuration on cttc-sales
router(config)#hostname cttc-sales
cttc-sales#configure terminal
cttc-sales(config)#int s0/3/1
cttc-sales(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales(config)#router eigrp 10
cttc-sales(config-router)#no auto-summary
cttc-sales(config-router)#network 11.0.0.0
cttc-sales(config-router)#exit
cttc-sales(config)router eigrp 10
cttc-sales(config-router)#eigrp stub

16
Configuration on cttc-hr
Router(config)#hostname cttc-hr
Cttc-hr(config)#int s0/1
Cttc-hr(config-if)#ip address 12.0.0.1 255.0.0.0
Cttc-hr(config-if)#no shutdown
Cttc-hr(config-if)#exit
Cttc-hr(config)#router eigrp 10
Cttc-hr(config-router)#no auto-summary
Cttc-hr(config-router)#network 12.0.0.0
Cttc-hr(config-router)#exit
Cttc-hr(config)#router eigrp 10
Cttc-hr(config-router)#eigrp stub

17
LAB:Route Summarization in EIGRP

OBJECTIVE: To show how we can minimize the routing table size by implementing
summarization on per interface basis.

Configuration on router cttc-hr

cttc-hr(config)#interface loopback0
cttc-hr(config-if)# ip address 192.168.24.1 255.255.255.0
cttc-hr(config-if)#interface loopback1
cttc-hr(config-if)# ip address 192.168.25.1 255.255.255.0
cttc-hr(config-if)#interface loopback2
cttc-hr(config-if)# ip address 192.168.26.1 255.255.255.0
cttc-hr(config-if)# interface loopback3
cttc-hr(config-if)# ip address 192.168.27.1 255.255.255.0
cttc-hr(config-if)# interface serial 0
cttc-hr(config-if)# ip address 192.168.27.1 255.255.255.0
cttc-hr(config-if)# no shutdown
cttc-hr(config-if)#router eigrp 100
cttc-hr(config-router)#net 13.0.0.0
cttc-hr(config-router)#net 192.168.24.0
cttc-hr(config-router)#net 192.168.25.0
cttc-hr(config-router)#net 192.168.26.0
cttc-hr(config-router)#net 192.168.27.0

18
Configuration on router cttc-sales

cttc-sales(config-if)#interface serial 1
cttc-sales(config-if)#ip address 13.0.0.2 255.0.0.0
cttc-sales(config-if)#no shutdown
cttc-sales(config)#router eigrp 100
cttc-sales(config-router)#network 13.0.0.0

cttc-sales# show ip route

D 192.168.25.0/24 [90/2297856] via 13.0.0.1, 00:00:12, Serial1


D 192.168.24.0/24 [90/2297856] via 13.0.0.1, 00:00:12, Serial1
D 192.168.27.0/24 [90/2297856] via 13.0.0.1, 00:00:12, Serial1
D 192.168.26.0/24 [90/2297856] via 13.0.0.1, 00:00:12, Serial1
C 13.0.0.0/8 is directly connected, Serial1

WE will configure manual summarization at cttc-hr and disable the auto-summary.

cttc-hr(config-if)# interface s1
cttc-hr(config-if)# ip summary-address 192.168.24.0 255.255.252.0
cttc-hr(config-if)#router eigrp 100
cttc-hr(config-router)# no auto-summary
cttc-sales# show ip route

C 13.0.0.0/8 is directly connected, Serial1


D 192.168.24.0/22 [90/2297856] via 13.0.0.1, 00:00:24, Serial1

19
LAB: Basic OSPF

OBJECTIVE: To implement and show basic multiple areas OSPF functionality

Configuration on cttc-hr

Router(config)#hostname cttc-hr
Cttc-hr(config)#int fa0/0
Cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
Cttc-hr(config-if)#no shutdown
Cttc-hr(config-if)#exit
Cttc-hr(config)#int fa0/1
Cttc-hr(config-if)#ip address 11.0.0.1 255.0.0.0
Cttc-hr(config-if)#no shutdown
Cttc-hr(config-if)#exit
cttc-hr(config)#router ospf 1
cttc-hr(config-router)#network 10.0.0.0 0.255.255.255 area 0
cttc-hr(config-router)#network 11.0.0.0 0.255.255.255 area 1

20
cttc-hr#show ip route

Cttc-hr#show ip ospf neighbor

Cttc-hr#show ip ospf database

21
Configuration on cttc-mkt
Router(config)#hostname cttc-mkt
cttc-mkt(config)#int fa0/0
cttc-mkt(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config)#int fa0/1
cttc-mkt(config-if)#ip address 12.0.0.1 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#router ospf 2
cttc-mkt(config-router)#network 10.0.0.0 0.255.255.255 area 0
cttc-mkt(config-router)#network 12.0.0.0 0.255.255.255 area 2

Configuration on cttc-finance
Router(config)#hostname cttc-finance
cttc-finance(config)#int fa0/0
cttc-finance(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-finance(config-if)#no shutdown
cttc-finance(config-if)#exit
cttc-finance(config)#router ospf 5
cttc-finance(config-router)#network 11.0.0.0 0.255.255.255 area 1
cttc-finance(config-router)#exit

22
Configuration on cttc-sales
Router(config)#hostname cttc-sales
cttc-sales(config)#int f0/0
cttc-sales(config-if)#ip address 12.0.0.2 255.0.0.0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales(config)#router ospf 2
cttc-sales(config-router)#network 12.0.0.0 0.255.255.255 area 2
cttc-sales(config-router)#exit

cttc-sales#show ip route

23
cttc-sales#show ip ospf neighbor

cttc-sales#show ip ospf database

24
LAB: Route Summarization in OSPF

OBJECTIVE: To show how we can minimize the routing table size by implementing
summarization on ABR.

Configuration on cttc-hr

cttc-hr(config)#interface loopback0
cttc-hr(config-if)# ip address 192.168.24.1 255.255.255.0
cttc-hr(config-if)#interface loopback1
cttc-hr(config-if)# ip address 192.168.25.1 255.255.255.0

25
cttc-hr(config-if)#interface loopback2
cttc-hr(config-if)# ip address 192.168.26.1 255.255.255.0
cttc-hr(config-if)# interface loopback3
cttc-hr(config-if)# ip address 192.168.27.1 255.255.255.0
cttc-hr(config-if)# interface serial1
cttc-hr(config-if)# ip address 192.168.27.1 255.255.255.0
cttc-hr(config-if)# no shutdown
cttc-hr(config)#router ospf 100
cttc-hr(config-router)#network 192.168.24.0 0.255.255.255 area 0
cttc-hr(config-router)#network 192.168.25.0 0.255.255.255 area 0
cttc-hr(config-router)#network 192.168.26.0 0.255.255.255 area 0
cttc-hr(config-router)#network 192.168.27.0 0.255.255.255 area 0
cttc-hr(config-router)#network 13.0.0.0 0.255.255.255 area 1

Configuration on cttc-sales

CTTC-SALES(config-if)#interface serial 1
CTTC-SALES(config-if)#ip address 13.0.0.2 255.0.0.0
CTTC-SALES(config-if)#no shutdown
CTTC-SALES(config)#router ospf 100
CTTC-SALES(config-router)#network 13.0.0.0 0.255.255.255 area 0
CTTC-SALES# Show ip route

192.168.25.0/32 is subnetted, 1 subnets


O 192.168.25.1 [110/65] via 13.0.0.1, 00:00:00, Serial1
192.168.24.0/32 is subnetted, 1 subnets
O 192.168.24.1 [110/65] via 13.0.0.1, 00:00:00, Serial1
192.168.27.0/32 is subnetted, 1 subnets
O 192.168.27.1 [110/65] via 13.0.0.1, 00:00:00, Serial1
192.168.26.0/32 is subnetted, 1 subnets
O 192.168.26.1 [110/65] via 13.0.0.1, 00:00:00, Serial1
C 13.0.0.0/8 is directly connected, Serial1

all the four networks are advertised to cttc-sales individually .hence cttc-sales has to store four routes in
its routing table.By summarization we can replace these four contiguous networks with one summarized
route hence reduced size of routing tables .
We will configure summarization on R1 which is the ABR between Area 0 and Area 1.

cttc-hr (config-router)#area 0 range 192.168.24.0 255.255.252.0

now check cttc-sales’s routing table

cttc-sales#sh ip route

C 13.0.0.0/8 is directly connected, Serial1

26
O IA 192.168.24.0/22 [110/65] via 13.0.0.1, 00:00:32, Serial1

Use the show ip ospf command on CTTC-HR to see area ranges

cttc-hr #sh ip ospf

Routing Process "ospf 100" with ID 192.168.27.1


It is an area border router
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Area BACKBONE(0)
Area ranges are
192.168.24.0/22 Active(1) Advertise

LAB: OSPF MD5 AUTHENTICATION

OBJECTIVE: To implement and show how we can configure authentication in OSPF and
what results we can achieve.

Configuration on cttc-hr

cttc-hr (config-if)# interface loopback 0


cttc-hr (config-if)# ip address 11.0.0.1 255.0.0.0
cttc-hr (config-if)# interface s0
cttc-hr (config-if)# ip address 10.0.0.1 255.0.0.0
cttc-hr(config-if)# no shutdown
cttc-hr (config-if)# ip ospf message-digest-key 1 md5 cisco
cttc-hr (config-if)# no shutdown
cttc-hr (config-if)# router ospf 100
cttc-hr (config-if)# area 0 authentication message-digest

27
cttc-hr (config-router)# network 10.0.0.0 0.255.255.255 area 0
cttc-hr (config-router)# network 11.0.0.0 0.255.255.255 area 0

Configuration on CTTC-SALES
R2(config-if)# interface loopback 0
R2(config-if)# ip address 12.0.0.1 255.0.0.0
R2(config-if)# interface s0
R2(config-if)# ip address 10.0.0.2 255.0.0.0
R2(config-if)# ip ospf message-digest-key 1 md5 cttc  the password & keyID 1 must be same
R2(config-if)# no shutdown
R2(config-if)# router ospf 100
R2(config-if)# area 0 authentication message-digest
R2(config-router)# network 10.0.0.0 0.255.255.255 area 0
R2(config-router)# network 12.0.0.0 0.255.255.255 area 0

Initially we had configured different password on both routers.


Using the show ip ospf neighbor command you can verify that no neighbor relation is established
because Hello packets are not authenticated.

Use the debug ip ospf adj command to see the Mismatched Authentication messages.

R1#debug ip ospf adj

OSPF adjacency events debugging is on


00:54:51: OSPF: Rcv pkt from 10.0.0.2, Serial0 : Mismatch Authentication Key - Message
Digest Key 1

Now change the password of R2 to cisco same as on R1


R2(config-if)# interface s0
R2(config-if)# ip ospf message-digest-key 1 md5 cisco

Now observe the Output of the debug ip ospf adj command .

01:00:01: OSPF: Rcv hello from 12.0.0.1 area 0 from Serial1 10.0.0.2
01:00:01: OSPF: 2 Way Communication to 12.0.0.1 on Serial1, state 2WAY
01:00:01: OSPF: Send DBD to 12.0.0.1 on Serial1 seq 0x22C2 opt 0x2 flag 0x7 len32

28
LAB: Ospf DR/BDR Election

OBJECTIVE:To show the process of election of DR and BDR and how we can change the
default behavior.

29
Configuration on cttc-hr
Router(config)#hostname cttc-hr
cttc-hr(config)#int fa0/1
cttc-hr(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit
cttc-hr(config)#router ospf 1
cttc-hr(config-router)#network 11.0.0.0 0.255.255.255 area 0
cttc-hr(config-router)#exit
cttc-hr(config)#int fa0/1
cttc-hr(config-if)#ip ospf priority 7
cttc-hr(config-if)#exit

Configuration oncttc-mkt
Router(config)#hostname cttc-mkt
cttc-mkt(config)#int fa0/1
cttc-mkt(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#router ospf 1
cttc-mkt(config-router)#network 11.0.0.0 0.255.255.255 area 0
cttc-mkt(config-router)#exit
cttc-mkt(config)#int fa0/1
cttc-mkt(config-if)#ip ospf priority 10
cttc-mkt(config-if)#exit
cttc-hr#show ip ospf neighbor

30
cttc-mkt#show ip ospf interface

31
Configuration on cttc-finance
Router(config)#hostname cttc-fainance
cttc-fainance(config)#int fa0/0
cttc-fainance(config-if)#ip address 11.0.0.4 255.0.0.0
cttc-fainance(config-if)#no shutdown
cttc-fainance(config-if)#exit
cttc-fainance(config)#router ospf 1
cttc-fainance(config-router)#network 11.0.0.0 0.255.255.255 area 0
cttc-fainance(config-router)#exit

cttc-finance#show ip ospf neighbor

cttc-finance#show ip ospf interface

Configuration oncttc-sales

32
Cttc-sales (config)#hostname cttc-sales
Cttc-sales(config)#int fa0/0
Cttc-sales(config-if)#ip address 11.0.0.3 255.0.0.0
Cttc-sales(config-if)#no shut
Cttc-sales(config-if)#exit
Cttc-sales(config)#router ospf 2
Cttc-sales(config-router)#network 11.0.0.0 0.255.255.255 area 0

LAB: OSPF Special Areas

OBJECTIVE:To show how we can control the LSU by implementing special commands.

Configuration on cttc-mkt
Router(config)#hostname cttc-mkt
cttc-mkt(config)#int fa0/0
cttc-mkt(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#int loopback 0
cttc-mkt(config-if)#ip address 2.2.2.2 255.0.0.0
cttc-mkt(config-if)#exit
cttc-mkt(config)#router ospf 1
cttc-mkt(config-router)#network 11.0.0.0 0.255.255.255 area 1

33
cttc-mkt(config-router)#network 2.2.2.0 0.255.255.255 area 1
cttc-mkt(config-router)#exit

cttc-mkt(config)#router ospf 1
cttc-mkt(config-router)#area 1 stub

After stub no-summary


cttc-mkt(config-router)#do sh ip route

34
Configuration on cttc-hr
Router(config)#hostname cttc-hr
Cttc-hr(config)#int fa0/1
Cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
Cttc-hr(config-if)#no shutdown
Cttc-hr(config-if)#exit
Cttc-hr(config)#int loopback 0
Cttc-hr(config-if)#ip address 1.1.1.1 255.255.255.0
Cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 2
cttc-hr(config-if)#ip address 1.1.2.1 255.255.255.0
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 3
cttc-hr(config-if)#ip address 1.1.3.1 255.255.255.0
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 5
cttc-hr(config-if)#ip address 1.1.0.1 255.255.255.0
cttc-hr(config-if)#exit
cttc-hr(config)#router ospf 1
cttc-hr(config-router)#network 10.0.0.0 0.255.255.255 area 0
cttc-hr(config-router)#network 1.1.2.0 0.0.0.255 area 0
cttc-hr(config-router)#network 1.1.0.0 0.0.0.255 area 0

35
cttc-hr(config-router)#network 1.1.3.0 0.0.0.255 area 0
cttc-hr(config-router)#network 1.1.1.0 0.0.0.255 area 0
cttc-hr(config-router)#exit

Configuration on cttc-sales
Router(config)#hostname cttc-sales
cttc-sales(config)#int fa0/1
cttc-sales(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit

cttc-sales(config)#int f0/0
cttc-sales(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit

cttc-sales(config)#router ospf 2
cttc-sales(config-router)#network 10.0.0.0 0.255.255.255 area 0
cttc-sales(config-router)#network 11.0.0.0 0.255.255.255 area 1
cttc-sales(config-router)#exit
cttc-sales(config)#router ospf 2
cttc-sales(config-router)#area 1 stub
cttc-sales(config-router)#area 1 stub no-summary

36
LAB: OSPF Virtual Link

OBJECTIVE:To show how we can communicate with remote areas which are not
connected with backbone area 0

37
Configuration on cttc-mkt
Router(config)#hostname cttc-mkt
cttc-mkt(config)#int s0/3/0
cttc-mkt(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-mkt(config-if)#clock rate 64000
cttc-mkt(config-if)#no shutdown
cttc-mkt(config-if)#exit
cttc-mkt(config)#router ospf 1
cttc-mkt(config-router)#network 10.0.0.0 0.255.255.255 area 0
cttc-mkt(config-router)#network 11.0.0.0 0.255.255.255 area 1
cttc-mkt(config-router)#router-id 6.6.6.6
cttc-mkt(config-router)#area 1 virtual-link 5.5.5.5
cttc-mkt(config-router)#do clear ip ospf process
cttc-mkt(config-router)#exit

Cttc-mkt#show ip route

Configuration on cttc-sales
Router(config)#hostname CTTC-SALES
cttc-sales(config)#int s0/1
cttc-sales(config-if)#ip address 11.0.0.1 255.0.0.0

38
cttc-sales(config-if)#clock rate 64000
cttc-sales(config-if)#no shut
cttc-sales(config-if)#int fa0/0
cttc-sales(config-if)#ip address 13.0.0.1 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config)#router ospf 2
cttc-sales(config-router)#network 11.0.0.0 0.255.255.255 area 1
cttc-sales(config-router)#network 13.0.0.0 0.255.255.255 area 2
cttc-sales(config-router)#router-id 5.5.5.5
cttc-sales(config-router)#area 1 virtual-link 6.6.6.6
cttc-sales(config-router)#exit

Configuration on cttc-hr
Router(config)#hostname cttc-hr
cttc-hr(config)#int s0/3/1
cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#int fa0/1
cttc-hr(config-if)#ip address 12.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#router ospf 2
cttc-hr(config-router)#network 12.0.0.0 0.255.255.255 area 0
cttc-hr(config-router)#network 10.0.0.0 0.255.255.255 area 0
cttc-hr(config-router)#exit

cttc-hr(config)#do ship route

39
LAB: Configuring External BGP Session

OBJECTIVE:To show the process of configuring external neighbor Relation- ship with
BGP and how we can advertise network.

Configuration on cttc-hr

40
R6(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#int loopback 0
cttc-hr(config-if)#ip address 2.2.2.2 255.0.0.0
cttc-hr(config)#router bgp 20
cttc-hr(config-router)#neighbor 10.0.0.1 remote-as 10
cttc-hr(config-router)#network 2.0.0.0
cttc-hr(config-router)#exit
cttc-hr#show ip bgp summary

BGP router identifier 2.2.2.2, local AS number 20


BGP table version is 3, main routing table version 3
2 network entries using 240 bytes of memory
2 path entries using 104 bytes of memory
2/2 BGP path/bestpath attribute entries using 248 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 616 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.0.0.1 4 10 5 5 2 0 0 00:00:13 1

cttc-hr#show ip bgp route-map

cttc-hr#show ip bgp

BGP table version is 3, local router ID is 2.2.2.2


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 1.0.0.0 10.0.0.1 0 0 10 i
*> 2.0.0.0 0.0.0.0 0 32768 i
R7(config)#hostname CTTC-SALES

Configuration on cttc-sales

41
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ip address 1.1.1.1 255.0.0.0
cttc-sales(config-if)#exit
cttc-sales(config)#router bgp 10
cttc-sales(config-router)#neighbor 10.0.0.2 remote-as 20
cttc-sales(config-router)#network 1.0.0.0
cttc-sales(config-router)#exit

LAB: Internal BGP Session

OBJECTIVE: To show the configuration of internal BGP neighbor relationship.

Configuration on cttc-hr
Router(config)#hostname cttc-hr
Cttc-hr#configure t

42
Cttc-hr(config)#int fa0/1
Cttc-hr(config-if)#ip address 10.0.0.2 255.0.0.0
Cttc-hr(config-if)#no shutdown
Cttc-hr(config-if)#exit
Cttc-hr(config)#int loopback 0
Cttc-hr(config-if)#ip address 1.1.1.1 255.0.0.0
Cttc-hr(config-if)#exit
Cttc-hr(config)#router bgp 50
Cttc-hr(config-router)#neighbor 10.0.0.1 remote-as 50
Cttc-hr(config-router)#network 1.0.0.0
Cttc-hr(config-router)#exit

Cttc-hr#sh 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

C 1.0.0.0/8 is directly connected, Loopback0


C 10.0.0.0/8 is directly connected, FastEthernet0/1

Cttc-hr(config)#router bgp 50
Cttc-hr(config-router)#no synchronization
CTTC-SALES(config-router)#do clear ip bgp *

Cttc-hr(config)#do sh 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

C 1.0.0.0/8 is directly connected, Loopback0

43
C 10.0.0.0/8 is directly connected, FastEthernet0/1
B 192.168.1.0/24 [200/0] via 10.0.0.1, 00:00:36

Configuration on cttc-sales
router(config)#hostname cttc-sales
cttc-sales#conf t
cttc-sales(config)#int fa0/1
cttc-sales(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ip address 192.168.1.1 255.255.255.0
cttc-sales(config-if)#exit
cttc-sales(config)#router bgp 50
cttc-sales(config-router)#neighbor 10.0.0.2 remote-as 50
cttc-sales(config-router)#network 192.168.1.0

cttc-sales(config)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

44
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

C 10.0.0.0/8 is directly connected, FastEthernet0/1


C 192.168.1.0/24 is directly connected, Loopback0

cttc-sales(config)#router bgp 50
cttc-sales(config-router)#no synchronization
cttc-sales(config-router)#do clear ip bgp *

cttc-sales(config-router)#do 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

B 1.0.0.0/8 [200/0] via 10.0.0.2, 00:00:24


C 10.0.0.0/8 is directly connected, FastEthernet0/1
C 192.168.1.0/24 is directly connected, Loopback0

LAB: EBGP Multi hop

OBJECTIVE:To show if we use loopback address for external neighbor relationship what
changes we have to do.

Configuration on cttc-sales
r2(config)#hostname cttc-sales

45
cttc-sales#conf t
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#int loop 0
cttc-sales(config-if)#ip address
cttc-sales(config-if)#ip address 192.168.1.1 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config)#exit
cttc-sales(config)#router bgp 20
cttc-sales(config-router)#neighbor 1.0.0.1 remote-as 10
cttc-sales(config-router)#neighbor 1.0.0.1 update-source loopback 0
cttc-sales(config-router)#neighbor 1.0.0.1 ebgp-multihop 2
cttc-sales(config)#ip route 1.0.0.0 255.0.0.0 fastethernet 0/0

CTTC-SALES(config)#do show ip bgp sum

BGP router identifier 192.168.1.1, local AS number 20


BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent Tbl Ver InQ OutQ Up/Down State/PfxRcd


1.0.0.1 4 10 4 4 1 0 0 00:00:53 0

Configuration on cttc-hr
r1(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 0
cttc-hr(config-if)#ip address 1.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#router bgp 10
cttc-hr(config-router)#neighbor 192.168.1.1 remote-as 20
cttc-hr(config-router)#neighbor 192.168.1.1 update-source loopback 0
cttc-hr(config-router)#neighbor 192.168.1.1 ebgp-multihop 2
cttc-hr(config)#ip route 2.0.0.0 255.0.0.0 fastethernet 0/0

cttc-hr#show ip bgp summary

46
BGP router identifier 1.0.0.1, local AS number 10
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


192.168.1.1 4 20 4 4 1 0 0 00:00:40 0

LAB: BGP next hopself

OBJECTIVE: To show the configuration changes we have to make when we advertise


network internally.

Configuration on cttc-hr

r1(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0

47
cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 0
cttc-hr(config-if)#ip address 1.1.1.1 255.0.0.0
cttc-hr(config-if)#exit
cttc-hr(config)#router bgp 10
cttc-hr(config-router)#neighbor 10.0.0.2 remote-as 10
cttc-hr(config-router)#network 1.0.0.0
cttc-hr(config-router)#exit

CTTC-HR#show ip bgp summary

BGP router identifier 1.1.1.1, local AS number 10


BGP table version is 3, main routing table version 3
2 network entries using 234 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 734 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.0.0.2 4 10 5 5 3 0 0 00:00:37 1

Configuration on cttc-sales

r2(config)#hostname cttc-sales network next


cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#int fa0/1
cttc-sales(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#router bgp 10
cttc-sales(config-router)#neighbor 11.0.0.2 remote-as 20
cttc-sales(config-router)#neighbor 10.0.0.1 remote-as 10
cttc-sales(config-router)#neighbor 10.0.0.1 next-hop-self

CTTC-SALES#show ip bgp summary

48
BGP router identifier 11.0.0.1, local AS number 10
BGP table version is 3, main routing table version 3
2 network entries using 234 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 734 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.0.0.1 4 10 7 7 3 0 0 00:02:44 1
11.0.0.2 4 20 9 9 3 0 0 00:05:38 1

CTTC-SALES#show ip bgp

BGP table version is 3, local router ID is 11.0.0.1


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*>i1.0.0.0 10.0.0.1 0 100 0 i
*> 2.0.0.0 11.0.0.2 0 0 20 i

Configuration on cttc-mkt
r3(config)#hostname cttc-mkt
cttc-mkt(config)#int fa0/0
cttc-mkt(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#int loopback 0
cttc-mkt(config-if)#ip address 2.2.2.2 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#router bgp 20
cttc-mkt(config-router)#neighbor 11.0.0.1 remote-as 10
cttc-mkt(config-router)#network 2.0.0.0
cttc_mkt(config-router)#exit

49
LAB: BGP Metric Attribute

OBJECTIVE: To show how we can change the BGP attributes to manipulate the data
path.

50
Configuration on cttc-finance
r2(config)#hostname cttc-finance
cttc-finance(config)#int fa0/0
cttc-finance(config-if)#ip address 192.168.12.2 255.255.255.0
cttc-finance(config-if)#no shut
cttc-finance(config-if)#exit
cttc-finance(config)#int fa0/1
cttc-finance(config-if)#ip address 192.168.23.2 255.255.255.0
cttc-finance(config-if)#no shut

CTTC-FINANCE(config-if)#do ping 192.168.23.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 32/56/84 ms

cttc-finance(config-if)#exit
cttc-finance(config)#router bgp 2
cttc-finance(config-router)#neighbor 192.168.12.1 remote-as 1
cttc-finance(config-router)#neighbor 192.168.23.3 remote-as 1
cttc-finance(config-router)#exit

cttc-finance(config)#do show ip bgp

51
BGP table version is 6, local router ID is 192.168.23.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


* 1.1.1.0/24 192.168.12.1 700 01i
*> 192.168.23.3 500 01i

Configuration on cttc-hr
cttc-hr(config)#hostname cttc-hr
cttc-hr(config)#int loopback 0
cttc-hr(config-if)#ip address 1.1.1.1 255.255.255.0
cttc-hr(config-if)#exit
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 192.168.12.1 255.255.255.0

52
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#router bgp 1
cttc-hr(config-router)#neighbor 192.168.12.2 remote-as 2
cttc-hr(config-router)#network 1.1.1.0 mask 255.255.255.0
cttc-hr(config-router)#exit
cttc-hr(config)#route-map med permit 10
cttc-hr(config-route-map)#set metric 700
cttc-hr(config-route-map)#exit
cttc-hr(config)#router bgp 1
cttc-hr(config-router)#neighbor 192.168.12.2 route-map med out
cttc-hr(config-router)#do clear ip bgp *

CTTC-HR(config-router)#do show ip bgp

BGP table version is 2, local router ID is 1.1.1.1


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 1.1.1.0/24 0.0.0.0 0 32768 i

Configuration on cttc-sales
cttc-sales(config)#hostname cttc-sales
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ip address 1.1.1.2 255.255.255.0
cttc-sales(config-if)#exit
cttc-sales(config)#int fa0/1
cttc-sales(config-if)#ip address 192.168.23.3 255.255.255.0

53
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#router bgp 1
cttc-sales(config-router)#neighbor 192.168.23.2 remote-as 2
cttc-sales(config-router)#network 1.1.1.0 mask 255.255.255.0
cttc-sales(config-router)#route-map med permit 10
cttc-sales(config-route-map)#set metric 500
cttc-sales(config-route-map)#exit
cttc-sales(config)#router bgp 1
cttc-sales(config-router)#neighbor 192.168.23.2 route-map med out
cttc-sales(config-router)#exit

cttc-sales(config)#do show ip bgp

BGP table version is 2, local router ID is 1.1.1.2


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 1.1.1.0/24 0.0.0.0 0 32768 i

LAB: BGP Local Preference

OBJECTIVE: To show how we can change the BGP attributes to manipulate the data
path.

54
Configuration on cttc-hr
R7(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 12.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#int fa0/1
cttc-hr(config-if)#ip address 13.0.0.2 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#router eigrp 100
cttc-hr(config-router)#network 12.0.0.0
cttc-hr(config-router)#exit
cttc-hr(config)#router bgp 20
cttc-hr(config-router)#neighbor 12.0.0.2 remote-as 20
cttc-hr(config-router)#neighbor 12.0.0.2 next-hop-self
cttc-hr(config-router)#neighbor 13.0.0.1 remote-as 10
cttc-hr(config-router)#neighbor 14.0.0.1 remote-as 20

Configuration on cttc-sales
R8(config)#hostname cttc-sales
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 14.0.0.1 255.0.0.0
cttc-sales(config-if)#no shut

55
cttc-sales(config-if)#exit
cttc-sales(config)#int fa0/1
cttc-sales(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#router eigrp 100
cttc-sales(config-router)#network 14.0.0.0
cttc-sales(config-router)#exit
cttc-sales(config)#router bgp 20
cttc-sales(config-router)#neighbor 11.0.0.1 remote-as 10
cttc-sales(config-router)#neighbor 12.0.0.1 remote-as 20
cttc-sales(config-router)#neighbor 14.0.0.2 remote-as 20
cttc-sales(config-router)#neighbor 14.0.0.2 next-hop-self
cttc-sales(config-router)#neighbor 14.0.0.2 route-map test out
cttc-sales(config-router)#exit
cttc-sales(config)#access-list 1 permit 1.0.0.0
cttc-sales(config)#route-map test permit 10
cttc-sales(config-route-map)#match ip address 1
cttc-sales(config-route-map)#set local-preference 200
cttc-sales(config-route-map)#exit
cttc-sales(config)#route-map test permit 20
cttc-sales(config-route-map)#exit

Configuration on cttc-mkt
R9(config)#hostname cttc-mkt
cttc-mkt(config)#int fa0/0
cttc-mkt(config-if)#ip address 12.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shut

56
cttc-mkt(config-if)#exit
cttc-mkt(config)#int fa0/1
cttc-mkt(config-if)#ip address 14.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#router eigrp 100
cttc-mkt(config-router)#network 12.0.0.0
cttc-mkt(config-router)#network 12.0.0.0
cttc-mkt(config-router)#network 14.0.0.0
cttc-mkt(config-router)#exit
cttc-mkt(config)#router bgp 20
cttc-mkt(config-router)#neighbor 12.0.0.1 remote-as 20
cttc-mkt(config-router)#neighbor 14.0.0.1 remote-as 20
cttc-mkt(config-router)#exit

cttc-mkt(config)#do show ip bgp

BGP table version is 4, local router ID is 14.0.0.2


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*>i1.0.0.0 14.0.0.1 0 200 0 10 i
*i 12.0.0.1 0 100 0 10 i
* i2.0.0.0 14.0.0.1 0 100 0 10 i
*>i 12.0.0.1 0 100 0 10 i

Configuration on cttc-finance
R10(config)#hostname cttc-finance
cttc-finance(config)#int fa0/1
cttc-finance(config-if)#ip address 13.0.0.1 255.0.0.0
cttc-finance(config-if)#no shut

57
cttc-finance(config-if)#exit
cttc-finance(config)#int fa0/0
cttc-finance(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-finance(config-if)#no shut
cttc-finance(config-if)#exit
cttc-finance(config)#int loopback 0
cttc-finance(config-if)#ip address 1.0.0.1 255.0.0.0
cttc-finance(config-if)#exit
cttc-finance(config)#int loopback 1
cttc-finance(config-if)#ip address 2.0.0.1 255.0.0.0
cttc-finance(config-if)#exit
cttc-finance(config)#router bgp 10
cttc-finance(config-router)#network 1.0.0.0
cttc-finance(config-router)#network 2.0.0.0
cttc-finance(config-router)#neighbor 11.0.0.2 remote-as 20
cttc-finance(config-router)#neighbor 13.0.0.2 remote-as 20

LAB: Prefix List

OBJECTIVE: To show how we can control the routing updates using prefixlist

58
Configuration on cttc-sales
R1(config)#hostname cttc-sales
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#router bgp 200
cttc-sales(config-router)#neighbor 10.0.0.1 remote-as 100
cttc-sales(config-router)#exit

cttc-sales# show ip bgp

BGP table version is 3, local router ID is 10.0.0.2


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 20.20.0.0/19 10.0.0.1 0 0 100 i
*> 192.168.1.0 10.0.0.1 0 0 100 i

cttc-sales(config)#ip prefix-list cisco seq 10 permit 0.0.0.0/0 le 19


cttc-sales(config)#router bgp 200
cttc-sales(config-router)#neighbor 10.0.0.1 prefix-list cisco in
cttc-sales(config-router)#exit
cttc-sales(config)#do clear ip bgp *

cttc-sales(config)#do show ip bgpP table version is 2, local router ID is 10.0.0.2


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? – incomplete

59
BGP table version is 2, local router ID is 10.0.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? – incomplete

*> 20.20.0.0/19 10.0.0.1 0 0 100 i

Network Next Hop


Configuration on cttc-hr
R1(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config-if)#int loop 1
cttc-hr(config-if)#ip address 20.20.0.3 255.255.224.0
cttc-hr(config-if)#int loop 0
cttc-hr(config-if)#ip address 20.20.33.1 255.255.255.0
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 2
cttc-hr(config-if)#ip address 192.168.1.1 255.255.255.0
cttc-hr(config-if)#exit
cttc-hr(config)#router bgp 100
cttc-hr(config-router)#neighbor 10.0.0.2 remote-as 200
cttc-hr(config-router)#network 20.20.0.0 mask 255.255.224.0
cttc-hr(config-router)#network 20.20.30.0 mask 255.255.255.0
cttc-hr(config-router)#network 192.168.1.0
cttc-hr(config-router)#exit

LAB: Distribute List

OBJECTIVE: To show how we can control the routing updates using Distributionlist

60
Configuration on cttc-hr
R1(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config-if)#int loop 0
cttc-hr(config-if)#ip address
cttc-hr(config-if)#ip address 1.0.0.1 255.0.0.0
cttc-hr(config-if)#int loop 1
cttc-hr(config-if)#ip address 2.0.0.1 255.0.0.0
cttc-hr(config-if)#exit
cttc-hr(config)#router bgp 100
cttc-hr(config-router)#neighbor 10.0.0.2 remote-as 200
cttc-hr(config-router)#network 1.0.0.0
cttc-hr(config-router)#network 2.0.0.0
cttc-hr(config-router)#exit

Configuration on cttc-sales
R2(config)#hostname cttc-sales

61
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#router bgp 200
cttc-sales(config-router)#neighbor 10.0.0.1 remote-as 100

cttc-sales(config-router)#do show ip bgp sum

BGP router identifier 10.0.0.2, local AS number 200


BGP table version is 3, main routing table version 3
2 network entries using 234 bytes of memory
2 path entries using 104 bytes of memory
2/1 BGP path/bestpath attribute entries using 248 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 610 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.0.0.1 4 100 4 3 3 0 0 00:00:45 2

cttc-sales(config-router)#do show ip bgp

BGP table version is 3, local router ID is 10.0.0.2


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 1.0.0.0 10.0.0.1 0 0 100 i
*> 2.0.0.0 10.0.0.1 0 0 100 i

cttc-sales(config-router)#exit
cttc-sales(config)#access-list 1 deny 1.0.0.0 0.0.0.255
cttc-sales(config)#access-list 1 permit any

cttc-sales(config)#do show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

62
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

B 1.0.0.0/8 [20/0] via 10.0.0.1, 00:02:17


B 2.0.0.0/8 [20/0] via 10.0.0.1, 00:02:17
C 10.0.0.0/8 is directly connected, FastEthernet0/0

cttc-sales(config)#router bgp 200


cttc-sales(config-router)#neighbor 10.0.0.1 distribute-list 1 in
cttc-sales(config-router)#exit
cttc-sales(config)#do clear ip bgp *

cttc-sales(config)#do show ip bgp sum

BGP router identifier 10.0.0.2, local AS number 200


BGP table version is 2, main routing table version 2
1 network entries using 117 bytes of memory
1 path entries using 52 bytes of memory
2/1 BGP path/bestpath attribute entries using 248 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 441 total bytes of memory
BGP activity 3/2 prefixes, 3/2 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.0.0.1 4 100 12 10 2 0 0 00:00:19 1

cttc-sales(config)#do show ip route

63
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

B 2.0.0.0/8 [20/0] via 10.0.0.1, 00:00:27


C 10.0.0.0/8 is directly connected, FastEthernet0/

cttc-sales(config)#do show ip bgp

BGP table version is 2, local router ID is 10.0.0.2


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 2.0.0.0 10.0.0.1 0 0 100 i

LAB: IP SERVICE LEVEL AGREEMENT

OBJECTIVE: To show how we can use ipsla to control path

64
Configuration on cttc-hr
R1(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 10.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#int fa0/1
cttc-hr(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#ip sla 1
cttc-hr(config-ip-sla)#icmp-echo 10.0.0.2
cttc-hr(config-ip-sla-echo)#frequency 10
cttc-hr(config-ip-sla-echo)#exit
cttc-hr(config)# ip sla schedule 1 life forever start-time now
cttc-hr(config)#track 1 ip sla 1
cttc-hr(config-track)#delay down 10 up 1
cttc-hr(config-track)#ip route 2.2.2.0 255.255.255.0 fa0/0 track 1
cttc-hr(config)#ip route 2.2.2.0 255.255.255.0 fa0/1 10

cttc-hr#show ip sla statistics

IPSLAs Latest Operation Statistics

IPSLA operation id: 1


Type of operation: icmp-echo
Latest RTT: 91 milliseconds
Latest operation start time: *17:35:36.407 UTC Thu Feb 13 2014
Latest operation return code: OK
Number of successes: 30
Number of failures: 2
Operation time to live: Forever

cttc-hr#sh ip sla statistics details

IPSLAs Latest Operation Statistics

65
IPSLA operation id: 1
Type of operation: icmp-echo
Latest RTT: 75 milliseconds
Latest operation start time: *17:35:56.407 UTC Thu Feb 13 2014
Latest operation return code: OK
Over thresholds occurred: FALSE
Number of successes: 31
Number of failures: 3
Operation time to live: Forever
Operational state of entry: Active
Last time this entry was reset: Never

cttc-hr#show ip route

Codes: L - local, 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, + - replicated route

Gateway of last resort is not set

2.0.0.0/24 is subnetted, 1 subnets


S 2.2.2.0 is directly connected, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.0.0/8 is directly connected, FastEthernet0/0
L 10.0.0.1/32 is directly connected, FastEthernet0/0
11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 11.0.0.0/8 is directly connected, FastEthernet0/1
L 11.0.0.1/32 is directly connected, FastEthernet0/1

cttc-hr#show track

Track 1
IP SLA 1 state

66
State is Up, delayed Down (5 secs remaining)
1 change, last change 00:05:54
Delay up 1 sec, down 10 secs
Latest operation return code: OK
Latest RTT (millisecs) 76
Tracked by:
STATIC-IP-ROUTING 0

Configuration on cttc-sales
R14(config)#hostname cttc-sales
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 10.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#int fa0/1
cttc-sales(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ip address 2.2.2.2 255.255.255.0
cttc-sales(config-if)#exit

LAB: IPV6 Static Route

OBJECTIVE: To implement static route in IPV6

67
Configuration on cttc-hr
cttc-hr(config)#hostname cttc-hr
cttc-hr(config)#ipv6 unicast-routing
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ipv6 address 2011::1/64
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#ipv6 route 6000::1/64 2011::2

cttc-hr(config)#do ping 6000::1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 6000::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/60/116 ms

Configuration on cttc-sales
cttc-sales(config)#hostname cttc-sales
cttc-sales(config)#ipv6 unicast-routing
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ipv6 address 2011::2/64
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ipv6 address 6000::1/64
cttc-sales(config-if)#exit

LAB: Configure RIPng on Router

OBJECTIVE: TO Implement RIPng in IPV6

68
Configuration on cttc-hr
cttc-hr(config)#ipv6 unicast-routing
cttc-hr(config)#int s1/0
cttc-hr(config-if)#ipv6 address 2001:abad:5001:1::1/64
cttc-hr(config-if)#ipv6 rip cttc enable
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 10
cttc-hr(config-if)#ipv6 address 1:1:1:1::1/64
cttc-hr(config-if)#ipv6 rip cttc enable
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 20
cttc-hr(config-if)#ipv6 address 1:1:1:2::1/64
cttc-hr(config-if)#ipv6 rip cttc enable
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit

Configuration on CTTC-SALES

cttc-sales(config)#ipv6 unicast-routing
cttc-sales(config)#int s1/0
cttc-sales(config-if)#ipv6 address 2001:abad:5001:1::2/64

69
cttc-sales(config-if)#ipv6 rip cttc enable
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ipv6 address 2:2:2:2::1/64
cttc-sales(config-if)#ipv6 rip cttc enable
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 1
cttc-sales(config-if)#ipv6 address 2:2:2:1::1/64
cttc-sales(config-if)#ipv6 rip cttc enable
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit

Note: In the syntax cttc specified the Process, you can run multiple processes on a Route

Verify RIPng Routes:


cttc-hr#show ipv6 route

70
Verify information about the current IPv6 RIP process

71
Verify the reachability between the routers R1 and R2, use the ping
command:

72
LAB: Configuring IPV6 in EIGRP

73
OBJECTIVE: TO Implement EIGRP in IPV6

Configuration on cttc-hr
cttc-hr(config)#ipv6 unicast-routing
cttc-hr(config)#int s1/0
cttc-hr(config-if)#ipv6 address 2001:abad:5001:1::1/64
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#ipv6 eigrp 100
cttc-hr(config-if)#exit
cttc-hr(config)#ipv6 router eigrp 100
cttc-hr(config-rtr)#eigrp router-id 1.1.1.1
cttc-hr(config-rtr)#exit
cttc-hr(config)#int loopback 10
cttc-hr(config-if)#ipv6 address 1:1:1:1::1/64
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#ipv6 eigrp 100
cttc-hr(config-rtr)#exit
cttc-hr(config)#int loopback 20
cttc-hr(config-if)#ipv6 address 1:1:1:2::1/64
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#ipv6 eigrp 100
cttc-hr(config-if)#exit

Configuration on cttc-sales
cttc-sales(config)#ipv6 unicast-routing

74
cttc-sales(config)#int s1/0
cttc-sales(config-if)#ipv6 address 2001:abad:5001:1::2/64
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#ipv6 eigrp 100
cttc-sales(config-if)#exit
cttc-sales(config)#ipv6 router eigrp 100
cttc-sales(config-rtr)#eigrp router-id 2.2.2.2
cttc-sales(config-rtr)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ipv6 address 2:2:2:2::1/64
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#ipv6 eigrp 100
cttc-sales(config-rtr)#exit
cttc-sales(config)#int loopback 1
cttc-sales(config-if)#ipv6 address 2:2:2:1::1/64
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#ipv6 eigrp 100
cttc-sales(config-if)#exit

verify cttc-hr′s loopback0 network is in the ipv6 routing table of cttc-sales:

cttc-hr#show ipv6 route eigrp:

75
LAB: Configuring OSPF V.3.0

76
OBJECTIVE: TO IMPLEMENT OSPF ROUTING PROTOCOL IN IPV6

Configure cttc-hr:

cttc-hr(confg)#ipv6 unicast-routing
cttc-hr(config)#int s1/0
cttc-hr(config-if)#ipv6 address 2001:abad:5001:1::1/64
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#ipv6 ospf 1 area 0
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 10
cttc-hr(config-if)#ipv6 address 1:1:1:1::1/64
cttc-hr(config-if)#ipv6 ospf 1 area 0
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 20
cttc-hr(config-if)#ipv6 address 1:1:1:2::1/64
cttc-hr(config-if)#ipv6 ospf 1 area 0
cttc-hr(config-if)#no shutdown
cttc-hr(config-if)#exit
cttc-hr(config)#ipv6 router ospf 1
cttc-hr(config-rtr)#router-id 1.1.1.1
cttc-hr(config-if)#exit

Configuring cttc-sales:

77
cttc-sales(confg)#ipv6 unicast-routing
cttc-sales(config)#int s1/0
cttc-sales(config-if)#ipv6 address 2001:abad:5001:1::2/64
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ipv6 address 2:2:2:2::1/64
cttc-sales(config-if)#ipv6 ospf 1 area 0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#ipv6 ospf 1 area 0
cttc-sales(config-if)#exit
cttc-sales(config)#int loopback 1
cttc-sales(config-if)#ipv6 address 2:2:2:1::1/64
cttc-sales(config-if)#ipv6 ospf 1 area 0
cttc-sales(config-if)#no shutdown
cttc-sales(config-if)#exit
cttc-sales(config)#ipv6 router ospf 1
cttc-sales(config-rtr)#router-id 2.2.2.2
cttc-sales(config-rtr)#exit

configure cttc-hr′s loopback 10, 20 and cttc-sales’s loopback 0, 1 interface to participate in ospf
area 0 and ensure that cttc-hr &cttc-sales advertises lo0 as a /64 subnet and not a host route
(/128).

Note: Loopback interfaces have their own OSPF network type in which case OSPF advertises a
host route to the loopback interface and not the configure subnet mask. To change OSPF to
advertise the subnet assigned to the loopback interface you’ll need to change the network type to
point-to-point as shown below:

for cttc-hr:
cttc-hr(config)#interface loopback 10
cttc-hr(config-if)#ipv6 ospf 1 area 0
cttc-hr(config-if)#ipv6 ospf network point-to-point
cttc-hr(config-if)#exit
cttc-hr(config)#interface loopback 20
cttc-hr(config-if)#ipv6 ospf 1 area 0
cttc-hr(config-if)#ipv6 ospf network point-to-point
cttc-hr(config-if)#exit

for cttc-sales:
cttc-sales(config)#interface loopback 0

78
cttc-sales(config-if)#ipv6 ospf 1 area 0
cttc-sales(config-if)#ipv6 ospf network point-to-point
cttc-sales(config-if)#exit
cttc-sales(config)#interface loopback 1
cttc-sales(config-if)#ipv6 ospf 1 area 0
cttc-sales(config-if)#ipv6 ospf network point-to-point
cttc-sales(config-if)#exit

verify cttc-hr′s loopback0 network is in the ipv6 routing table of cttc-sales:


cttc-hr#show ipv6 route ospf

verify cttc-hr′s loopback10 network has ipv6 connectivity to cttc-sales′s


loopback0 network using ping:

79
LAB: Redistribution of Multiple Protocols

80
OBJECTIVE: To implement redistribution of protocols into one another and show its
different results.

Configuration on cttc-hr
R3(config)#hostname cttc-hr
cttc-hr(config)#int fa0/0
cttc-hr(config-if)#ip address 11.0.0.1 255.0.0.0
cttc-hr(config-if)#no shut
cttc-hr(config-if)#exit
cttc-hr(config)#int loopback 0
cttc-hr(config-if)#ip address 13.0.0.1 255.0.0.0
cttc-hr(config-if)#exit
cttc-hr(config)#router rip
cttc-hr(config-router)#network 11.0.0.0
cttc-hr(config-router)#network 13.0.0.0

cttc-hr#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

C 11.0.0.0/8 is directly connected, FastEthernet0/0


R 12.0.0.0/8 [120/5] via 11.0.0.2, 00:00:26, FastEthernet0/0
C 13.0.0.0/8 is directly connected, Loopback0
R 14.0.0.0/8 [120/5] via 11.0.0.2, 00:00:26, FastEthernet0/0
R 15.0.0.0/8 [120/5] via 11.0.0.2, 00:00:26, FastEthernet0/0

Configuration on cttc-sales
R4(config)#hostname cttc-sales

81
cttc-sales(config)#int fa0/0
cttc-sales(config-if)#ip address 11.0.0.2 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#int fa0/1
cttc-sales(config-if)#ip address 14.0.0.1 255.0.0.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#router rip
cttc-sales(config-router)#network 11.0.0.0
cttc-sales(config-router)#redistribute ospf 100 metric 5
cttc-sales(config-router)#exit
cttc-sales(config)#router ospf 100
cttc-sales(config-router)#network 14.0.0.0 0.255.255.255 area 0
cttc-sales(config-router)#redistribute rip metric 20
cttc-sales(config-router)#exit
cttc-sales(config)#
cttc-sales#show ip route

*Mar 1 00:11:02.095: %SYS-5-CONFIG_I: Configured from console by console


cttc-sales#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

C 11.0.0.0/8 is directly connected, FastEthernet0/0


O E2 12.0.0.0/8 [110/36] via 14.0.0.2, 00:03:40, FastEthernet0/1
R 13.0.0.0/8 [120/1] via 11.0.0.1, 00:00:12, FastEthernet0/0
C 14.0.0.0/8 is directly connected, FastEthernet0/1
O E2 15.0.0.0/8 [110/36] via 14.0.0.2, 00:01:01, FastEthernet0/1

Configuration on cttc-mkt
R5(config)#hostname cttc-mkt

82
cttc-mkt(config)#int fa0/0
cttc-mkt(config-if)#ip address 12.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#int fa0/1
cttc-mkt(config-if)#ip address 14.0.0.2 255.0.0.0
cttc-mkt(config-if)#no shut
cttc-mkt(config-if)#exit
cttc-mkt(config)#router ospf 100
cttc-mkt(config-router)#network 14.0.0.0 0.255.255.255 area 0
cttc-mkt(config-router)#redistribute eigrp 100 metric 36 subnets
cttc-mkt(config-router)#exit
cttc-mkt(config)#router eigrp 100
cttc-mkt(config-router)#network 12.0.0.0
cttc-mkt(config-router)#redistribute ospf 100 metric 1000 1 1 1 1500
cttc-mkt(config-router)#exit

cttc-mkt#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

O E2 11.0.0.0/8 [110/20] via 14.0.0.1, 00:03:59, FastEthernet0/1


C 12.0.0.0/8 is directly connected, FastEthernet0/0
O E2 13.0.0.0/8 [110/20] via 14.0.0.1, 00:03:59, FastEthernet0/1
C 14.0.0.0/8 is directly connected, FastEthernet0/1
D 15.0.0.0/8 [90/156160] via 12.0.0.1, 00:01:09, FastEthernet0/0

Configuration on cttc-finance
R6(config)#hostname cttc-finance

83
cttc-finance(config)#int fa0/0
cttc-finance(config-if)#ip add 12.0.0.1 255.0.0.0
cttc-finance(config-if)#no shut
cttc-finance(config-if)#exit
cttc-finance(config)#int loopback 0
cttc-finance(config-if)#ip address 15.0.0.1 255.0.0.0
cttc-finance(config-if)#exit
cttc-finance(config)#router eigrp 100
cttc-finance(config-router)#network 15.0.0.0
cttc-finance(config-router)#network 12.0.0.0

cttc-finance#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

D EX 11.0.0.0/8 [170/2562816] via 12.0.0.2, 00:01:18, FastEthernet0/0


C 12.0.0.0/8 is directly connected, FastEthernet0/0
D EX 13.0.0.0/8 [170/2562816] via 12.0.0.2, 00:01:18, FastEthernet0/0
D EX 14.0.0.0/8 [170/2562816] via 12.0.0.2, 00:01:18, FastEthernet0/0
C 15.0.0.0/8 is directly connected, Loopback0

LAB: Manual Tunnel

OBJECTIVE: To implement manual tunnel so that we can traverse ipv6 in ipv4 network.

84
Configuration on cttc-hr
R1(config)#hostname cttc-hr
Cttc-hr(config)#interface loopback 0
Cttc-hr(config-if)#ipv6 address 2001::1/128
Cttc-hr(config-if)#exit
Cttc-hr(config)#interface fastEthernet 0/0
Cttc-hr(config-if)#ip address 192.168.12.1 255.255.255.0
Cttc-hr(config)#interface loopback 1
Cttc-hr(config-if)#ip address 1.1.1.1 255.255.255.0
Cttc-hr(config-if)#exit
Cttc-hr(config)#router eigrp 123
Cttc-hr(config-router)#no auto-summary
Cttc-hr(config-router)#network 192.168.12.0
Cttc-hr(config-router)#network 1.1.1.0
Cttc-hr(config)#interface tunnel 0
Cttc-hr(config-if)#tunnel source loopback 1
Cttc-hr(config-if)#tunnel destination 3.3.3.3
Cttc-hr(config-if)#tunnel mode ipv6ip
cttc-hr(config)#ipv6 rip
cttc-hr(config)#interface loopback 0
cttc-hr(config-if)#ipv6 rip ripng enable
cttc-hr(config-if)#exit

85
cttc-hr(config)#int tunnel 0
cttc-hr(config-if)#ipv6 enable
cttc-hr(config-if)#ipv6 rip ripng enable

cttc-hr(config-if)#do show ipv6 route rip

IPv6 Routing Table - default - 3 entries


Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
M - MIPv6, R - RIP, I1 - ISIS L1, I2 - ISIS L2
IA - ISIS interarea, IS - ISIS summary, D - EIGRP, EX - EIGRP external
ND - Neighbor Discovery
R 2001::3/128 [120/2]
via FE80::303:303, Tunnel0

cttc-hr#ping 2001::3 source loopback 0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 2001::3, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!C!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 132/143/152 ms

Configuration on cttc-sales
cttc-sales(config)#hostname cttc-sales
cttc-sales(config)#int fa0/1

86
cttc-sales(config-if)#ip address 192.168.23.3 255.255.255.0
cttc-sales(config-if)#no shut
cttc-sales(config-if)#exit
cttc-sales(config)#interface loopback 0
cttc-sales(config-if)#ipv6 address 2001::3/128
cttc-sales(config-if)#exit
cttc-sales(config)#interface loopback 1
cttc-sales(config-if)#ip address 3.3.3.3 255.255.255.0
cttc-sales(config-if)#exit
cttc-sales(config)#router eigrp 123
cttc-sales(config-router)#no auto-summary
cttc-sales(config-router)#network 192.168.23.0
cttc-sales(config-router)#network 3.3.3.0
cttc-sales(config-router)#exit
cttc-sales(config)#interface tunnel 0
cttc-sales(config-if)#tunnel source loopback 1
cttc-sales(config-if)#tunnel destination 1.1.1.1
cttc-sales(config-if)#tunnel mode ipv6ip
cttc-sales(config-if)#exit

cttc-sales(config)#do show inter tunn 0

Tunnel0 is up, line protocol is up


Hardware is Tunnel
MTU 17920 bytes, BW 100 Kbit/sec, DLY 50000 usec,

87
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 3.3.3.3 (Loopback1), destination 1.1.1.1
Tunnel Subblocks:
src-track:
Tunnel0 source tracking subblock associated with Loopback1
Set of tunnels with source Loopback1, 1 member (includes iterators), on interface <OK>
Tunnel protocol/transport IPv6/IP
Tunnel TTL 255
Tunnel transport MTU 1480 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec

cttc-sales(config)#ipv6 unicast-routing
cttc-sales(config)#ipv6 router rip ripng
cttc-sales(config-rtr)#exit
cttc-sales(config)#int loopback 0
cttc-sales(config-if)#ipv6 rip ripng enable
cttc-sales(config-if)#exit
cttc-sales(config)#int tunnel 0
cttc-sales(config-if)#ipv6 enable
cttc-sales(config-if)#ipv6 rip ripng enable
cttc-sales(config-if)#exit

Configuration on cttc-finance
cttc-finance(config)#hostname cttc-finance
cttc-finance(config)#interface fastethernet 0/0
cttc-finance(config-if)#ip address 192.168.12.2 255.255.255.0

88
cttc-finance(config-if)#no shut
cttc-finance(config-if)#exit
cttc-finance(config)#int fa0/1
cttc-finance(config-if)#ip address 192.168.23.2 255.255.255.0
cttc-finance(config-if)#no shut
cttc-finance(config-if)#exit
cttc-finance(config)#router eigrp 123
cttc-finance(config-router)#no auto-summary
cttc-finance(config-router)#network 192.168.12.0
cttc-finance(config-router)#network 192.168.23.0
cttc-finance(config-router)#exit

89

S-ar putea să vă placă și