You are on page 1of 46

CCNA R&S

SUDHEER KUMAR - 8237002678

Index

1. Initial configuration
2. Static Routing
3. Default Routing
4. Floating Static Routing
5. RIP V1 & V2
6. EIGRP
7. OSPF Single Area
8. OSPF Multi Area
9. REDISTRIBUTION – LAB 1
10. REDISTRIBUTION – LAB 2
11. SWITCHING
12. NAT
13. DHCP
14. ACCESS-LIST
15. HDLC & PPP
16. FRAME-RELAY

1
CCNA R&S
SUDHEER KUMAR - 8237002678

1. INITIAL CONFIGURATION

CONFIGURATION ON R1
R1>enable

R1#configure terminal

PUN_RT01(config)#hostname PUN_RT01

PUN_RT01(config)#enable password cisco

PUN_RT01(config)#enable secret ccna

PUN_RT01(config)#line console 0

PUN_RT01(config-line)#login

PUN_RT01(config-line)#password ccna

PUN_RT01(config-line)#logging syncronious

PUN_RT01(config-line)#exec-time 2 0

2
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_RT01(config-line)#exit

PUN_RT01(config)#line vty 0 4

PUN_RT01(config-line)#login

PUN_RT01(config-line)#password ccna

PUN_RT01(config-line)#exit

PUN_RT01(config)#line aux 0

PUN_RT01(config-line)#login

PUN_RT01(config-line)#password ccna

PUN_RT01(config-line)#exit

PUN_RT01(config)#service password-encryption

PUN_RT01(config)#no ip domain-lookup

PUN_RT01(config)#banner motd ^THIS IS CISCO ROUTER^

PUN_RT01(config)#interface fastethernet 0/0

PUN_RT01(config-if)#description [LAN]

PUN_RT01(config-if)#ip address 192.168.10.1 255.255.255.0

PUN_RT01(config-if)#speed 100

PUN_RT01(config-if)#duplex full

PUN_RT01(config-if)#no shutdown

PUN_RT01(config)#interface se 2/0

PUN_RT01(config-if)#description [WAN LINK TO PUN_RT02]

PUN_RT01(config-if)#ip address 1.1.1. 255.255.255.252

PUN_RT01(config-if)#no shutdown

PUN_RT01(config-if)#end

PUN_RT01#copy running-config startup-config

CONFIGURATION ON R2
R2>enable

R2#configure terminal

PUN_RT02(config)#hostname PUN_RT02

3
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_RT02(config)#enable password cisco

PUN_RT02(config)#enable secret ccna

PUN_RT02(config)#line console 0

PUN_RT02(config-line)#login

PUN_RT02(config-line)#password ccna

PUN_RT02(config-line)#logging syncronious

PUN_RT02(config-line)#exec-time 2 0

PUN_RT02(config-line)#exit

PUN_RT02(config)#line vty 0 4

PUN_RT02(config-line)#login

PUN_RT02(config-line)#password ccna

PUN_RT02(config-line)#exit

PUN_RT02(config)#line aux 0

PUN_RT02(config-line)#login

PUN_RT02(config-line)#password ccna

PUN_RT02(config-line)#exit

PUN_RT02(config)#service password-encryption

PUN_RT02(config)#no ip domain-lookup

PUN_RT02(config)#banner motd ^THIS IS CISCO ROUTER^

PUN_RT02(config)#interface fastethernet 0/0

PUN_RT02(config-if)#description [LAN]

PUN_RT02(config-if)#ip address 5.5.5.1 255.255.255.252

PUN_RT02(config-if)#speed 100

PUN_RT02(config-if)#duplex full

PUN_RT02(config-if)#no shutdown

PUN_RT02(config)#interface se 2/0

PUN_RT02(config-if)#description [WAN LINK TO PUN_RT03]

PUN_RT02(config-if)#ip address 1.1.1.9 255.255.255.248

4
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_RT02(config-if)#no shutdown

PUN_RT02(config)#interface se 2/1

PUN_RT02(config-if)#description [WAN LINK TO PUN_RT01]

PUN_RT02(config-if)#ip address 1.1.1.1 255.255.255.252

PUN_RT02(config-if)#no shutdown

PUN_RT02(config)#interface se 2/2

PUN_RT02(config-if)#description [WAN LINK TO PUN_RT04]

PUN_RT02(config-if)#ip address 1.1.1.5 255.255.255.252

PUN_RT02(config-if)#no shutdown

PUN_RT02(config-if)#end

PUN_RT02#copy running-config startup-config

CONFIGURATION ON R3
R3>enable

R3#configure terminal

PUN_RT03(config)#hostname PUN_RT03

PUN_RT03(config)#enable password cisco

PUN_RT03(config)#enable secret ccna

PUN_RT03(config)#line console 0

PUN_RT03(config-line)#login

PUN_RT03(config-line)#password ccna

PUN_RT03(config-line)#logging syncronious

PUN_RT03(config-line)#exec-time 2 0

PUN_RT03(config-line)#exit

PUN_RT03(config)#line vty 0 4

PUN_RT03(config-line)#login

PUN_RT03(config-line)#password ccna

PUN_RT03(config-line)#exit

PUN_RT03(config)#line aux 0

5
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_RT03(config-line)#login

PUN_RT03(config-line)#password ccna

PUN_RT03(config-line)#exit

PUN_RT03(config)#service password-encryption

PUN_RT03(config)#no ip domain-lookup

PUN_RT03(config)#banner motd ^THIS IS CISCO ROUTER^

PUN_RT03(config)#interface fastethernet 0/0

PUN_RT03(config-if)#description [LAN]

PUN_RT03(config-if)#ip address 192.168.30.1 255.255.255.0

PUN_RT03(config-if)#speed 100

PUN_RT03(config-if)#duplex full

PUN_RT03(config-if)#no shutdown

PUN_RT03(config)#interface se 2/1

PUN_RT03(config-if)#description [WAN LINK TO PUN_RT02]

PUN_RT03(config-if)#ip address 1.1.1.10 255.255.255.248

PUN_RT03(config-if)#no shutdown

PUN_RT03(config-if)#end

PUN_RT03#copy running-config startup-config

CONFIGURATION ON R4
R4>enable

R4#configure terminal

PUN_RT04(config)#hostname PUN_RT04

PUN_RT04(config)#enable password cisco

PUN_RT04(config)#enable secret ccna

PUN_RT04(config)#line console 0

PUN_RT04(config-line)#login

PUN_RT04(config-line)#password ccna

PUN_RT04(config-line)#logging syncronious

6
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_RT04(config-line)#exec-time 2 0

PUN_RT04(config-line)#exit

PUN_RT04(config)#line vty 0 4

PUN_RT04(config-line)#login

PUN_RT04(config-line)#password ccna

PUN_RT04(config-line)#exit

PUN_RT04(config)#line aux 0

PUN_RT04(config-line)#login

PUN_RT04(config-line)#password ccna

PUN_RT04(config-line)#exit

PUN_RT04(config)#service password-encryption

PUN_RT04(config)#no ip domain-lookup

PUN_RT04(config)#banner motd ^THIS IS CISCO ROUTER^

PUN_RT04(config)#interface fastethernet 0/0

PUN_RT04(config-if)#description [LAN]

PUN_RT04(config-if)#ip address 192.168.20.1 255.255.255.0

PUN_RT04(config-if)#speed 100

PUN_RT04(config-if)#duplex full

PUN_RT04(config-if)#no shutdown

PUN_RT04(config)#interface se 2/2

PUN_RT04(config-if)#description [WAN LINK TO PUN_RT02]

PUN_RT04(config-if)#ip address 1.1.1.6 255.255.255.252

PUN_RT04(config-if)#no shutdown

PUN_RT04(config-if)#end

PUN_RT04#copy running-config startup-config

TESTING
1) Check out put of below commands
Show version

7
CCNA R&S
SUDHEER KUMAR - 8237002678

Show flash
Show inventory
Show terminal
Show history size
Show clock
Show ip interface brief
Show interface description
Show ip route

8
CCNA R&S
SUDHEER KUMAR - 8237002678

2. STATIC ROUTING

CONFIGURATION ON R1
PUN_RT01(config)#ip route 192.168.20.0 255.255.255.0 1.1.1.1

PUN_RT01(config)#ip route 192.168.30.0 255.255.255.0 1.1.1.1

PUN_RT01(config)#ip route 1.1.1.4 255.255.255.252 1.1.1.1

PUN_RT01(config)#ip route 1.1.1.8 255.255.255.248 1.1.1.1

PUN_RT01(config)#ip route 5.5.5.0 255.255.255.252 1.1.1.1

CONFIGURATION ON R2
PUN_RT02(config)#ip route 192.168.10.0 255.255.255.0 1.1.1.2

PUN_RT02(config)#ip route 192.168.20.0 255.255.255.0 1.1.1.6

PUN_RT02(config)#ip route 192.168.30.0 255.255.255.0 1.1.1.10

CONFIGURATION ON R3

9
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_RT03(config)#ip route 192.168.10.0 255.255.255.0 1.1.1.9

PUN_RT03(config)#ip route 192.168.20.0 255.255.255.0 1.1.1.9

PUN_RT03(config)#ip route 1.1.1.0 255.255.255.252 1.1.1.9

PUN_RT03(config)#ip route 1.1.1.4 255.255.255.252 1.1.1.9

PUN_RT03(config)#ip route 5.5.5.0 255.255.255.252 1.1.1.9

CONFIGURATION ON R4
PUN_RT03(config)#ip route 192.168.10.0 255.255.255.0 1.1.1.5

PUN_RT03(config)#ip route 192.168.30.0 255.255.255.0 1.1.1.5

PUN_RT03(config)#ip route 1.1.1.0 255.255.255.252 1.1.1.5

PUN_RT03(config)#ip route 1.1.1.8 255.255.255.248 1.1.1.5

PUN_RT03(config)#ip route 5.5.5.0 255.255.255.252 1.1.1.5

TESTING
2) Check reachability to all PCs from PC1
3) Observe routing table of R1, R2, R3 & R4 entry with “ S “

10
CCNA R&S
SUDHEER KUMAR - 8237002678

3. DEFAULT ROUTING

CONFIGURATION ON R1
PUN_RT01(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1

CONFIGURATION ON R2
PUN_RT02(config)#ip route 192.168.10.0 255.255.255.0 1.1.1.2

PUN_RT02(config)#ip route 192.168.20.0 255.255.255.0 1.1.1.6

PUN_RT02(config)#ip route 192.168.30.0 255.255.255.0 1.1.1.10

CONFIGURATION ON R3
PUN_RT03(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.9

CONFIGURATION ON R4
PUN_RT03(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.5

11
CCNA R&S
SUDHEER KUMAR - 8237002678

TESTING
4) Check reachability to all PCs from PC1
5) Observe routing table of R1, R3 & R4 entry with “ S* “

12
CCNA R&S
SUDHEER KUMAR - 8237002678

4. FLOATING STATIC ROUTING

CONFIGURATION ON R1
R1(config)#interface serial2/0

R1(config-if)#description [PRIMARY LINK TO R2]

R1(config-if)#ip address 1.1.1.1 255.255.255.252

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#interface serial2/1

R1(config-if)#description [SECONDARY LINK TO R2]

R1(config-if)#ip address 2.2.2.1 255.255.255.252

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#ip route 192.168.20.0 255.255.255.0 1.1.1.2 5

R1(config)# ip route 192.168.20.0 255.255.255.0 2.2.2.2 10

13
CCNA R&S
SUDHEER KUMAR - 8237002678

CONFIGURATION ON R2
R2(config)#interface serial2/0

R2(config-if)#description [PRIMARY LINK TO R1]

R2(config-if)#ip address 1.1.1.2 255.255.255.252

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#interface serial2/1

R2(config-if)#description [SECONDARY LINK TO R1]

R2(config-if)#ip address 2.2.2.2 255.255.255.252

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#ip route 192.168.10.0 255.255.255.0 1.1.1.1 5

R2(config)# ip route 192.168.10.0 255.255.255.0 2.2.2.1 10

TESTING
1) Check R1 & R2 routing table for gateways of LAN prefixes
2) Do ping and trace to 192.168.20.2 from PC1
3) Observe 2nd hop in the trace
4) Shutdown Serial 2/0 on R1
5) Check R1 & R2 routing table for gateways of LAN prefixes
6) Do ping and trace to 192.168.20.2 from PC1
7) Observe 2nd hop in the trace

14
CCNA R&S
SUDHEER KUMAR - 8237002678

5. dynamic ROUTING – rip V1 & V2


 Routing Information Protocol
 It is a family of distance vector internal routing (IGP - Interior Gateway Protocol)
protocols.
 Open standard routing protocol, widely used, stable.
 Uses distance vector algorithm (Bellman-Ford algorithm) to find routes to destination
networks.
 Uses UDP as transport protocols with port no. 520
 Metric is hop. There is hop count limit to 15. Not scalable but good for small
networks in that it is very easy to configure.
 IP RIP updates are sent every 30 seconds (RIPv1 sends updates to broadcast
address 255.255.255.255 where as RIPv2 sends to multicast address 224.0.0.9).
 Timers help regulate performance:
o Update timer - Frequency of routing updates. Every 30 seconds IP RIP
sends a complete copy of its routing table, subject to split horizon.
o Invalid timer - Absence of refreshed content in a routing update. RIP waits
180 seconds to mark a route as invalid and immediately puts it into
holddown.
o Flush timer - RIP waits an additional 240 seconds after holddown before it
actually removes the route from the table.
 Administrative distance is 120.
 Other stability features to assist with routing loops include the following:
o Split horizon - Not useful to send information about a route back in the
direction from which it came.
o Poison reverse - Updates that are sent to invalidate a route and place it in
holddown.
 RIPv2 supports VLSM and summarization but RIPv1 doesn't supports.
 RIPv2 always auto-summarizes at the class boundary.
 RIPv2 Supports Authentication but RIPv1 doesn’t support.

15
CCNA R&S
SUDHEER KUMAR - 8237002678

Topology

Configuration & verification


R1(config)#interface lo 1

qwwaR1(config-if)# des [SUBNET 1]

R1(config-if)#ip address 192.168.50.1 255.255.255.252

R1(config)#interface lo 2

R1(config-if)# des [SUBNET 2]

R1(config-if)#ip address 192.168.50.5 255.255.255.252

R1(config)#interface lo 3

R1(config-if)# des [SUBNET 3]

R1(config-if)#ip address 192.168.50.9 255.255.255.252

R1(config)#interface lo 4

16
CCNA R&S
SUDHEER KUMAR - 8237002678

R1(config-if)# des [SUBNET 4]

R1(config-if)#ip address 192.168.50.13 255.255.255.252

R1(config)#router rip

R1(config-router)#network 192.168.10.0

R1(config-router)#network 192.168.50.0

R1(config-router)#network 1.0.0.0

R1(config-router)#no auto summary

R1(config-router)#version 2

R1(config-router)#end

R1#

R2(config)#router rip

R2(config-router)#network 5.0.0.0

R2(config-router)#network 1.0.0.0

R2(config-router)#no auto summary

R2(config-router)#version 2

R2(config-router)#end

R2#

R3(config)#router rip

R3(config-router)#network 192.168.30.0

R3(config-router)#network 1.0.0.0

R3(config-router)#no auto summary

R3(config-router)#version 2

R3(config-router)#end

R3#

R4(config)#router rip

R4(config-router)#network 192.168.20.0

R4(config-router)#network 1.0.0.0

R4(config-router)#no auto summary

17
CCNA R&S
SUDHEER KUMAR - 8237002678

R4(config-router)#version 2

R4(config-router)#end

R4#

TESTING
1) Check R1, R2, R3 & R4 routing table entries starting with “R”
2) Check reachability of all PCs from PC1
3) Trying to find difference between R1 and R2 routing tables before and after
enabling no auto-summary command on R1 & R2
4) Observe output of below commands
a. Show ip protocols
b. Show ip rip database
c. Show ip route

18
CCNA R&S
SUDHEER KUMAR - 8237002678

6. Dynamic ROUTING – EIGRP


 Enhanced Interior Gateway Routing Protocols
 It is an advanced distance vector protocol, and is open standard.
 It is an AS terminology
 Uses DUAL diffusing update algorithm to find best path to destination prefixes
 Metric is composite which is derived from a formula using bandwidth, delay,
reliability, load, MTU parameters
 Default Hop count limit is 100 you can extend up to 244 hops
 It can do load balance even on unequal metric paths as well. (Variance command)
 EIGRP uses three tables:
o Neighbor table: contains directly connected neighbor list.
o Topology table: contains all possible routes to all destination networks
NOTE: back up routes available in topology table.
o Routing table: Contains best path to destination networks
 Feasible Distance – the cost between the local router and the destination prefix
 Advertised Distance/Reported Distance – next hop router’s cost to the destination
prefix

 Successor router – the best route to destination


 Feasible successor – the second best route
 Feasibility rule – next hop must have AD less (not even equal) than the current FD
of the successor
 Packet types: Hello, Update, Query, Reply, Acknowledge
 Uses RTP to exchange network packets between eigrp neighbors
o Reliable Transport Protocol RTP can send ack to ensure the eigrp packets
delivered
o RTP has 2 timers :

19
CCNA R&S
SUDHEER KUMAR - 8237002678

SRTT: smooth round trip time limit time for update travel to neighbor
and waiting ack
RTO: retransmission time out define expire time for waiting ack before
send reliable packet for 16 times then suppose the neighbor dead
 Hello massage send using multicast address 224.0.0.10
 Hello send every 5sec and dead interval is 15sec on Ethernet links
 Hells send every 60sec and dead interval is 180sec on slow speed serial links
 Supports multiple routed (IP, IPX, AppleTalk) protocols using protocol dependent
modules and in this case we will have 9 tables in total ( 3 tables for every protocol)
 It supports Classless routing
 It supports authentication with MD5 and clear text.

Topology

Configuration & verification


R1(config)#interface lo 1

R1(config-if)# des [SUBNET 1]

20
CCNA R&S
SUDHEER KUMAR - 8237002678

R1(config-if)#ip address 192.168.50.1 255.255.255.252

R1(config)#interface lo 2

R1(config-if)# des [SUBNET 2]

R1(config-if)#ip address 192.168.50.5 255.255.255.252

R1(config)#interface lo 3

R1(config-if)# des [SUBNET 3]

R1(config-if)#ip address 192.168.50.9 255.255.255.252

R1(config)#interface lo 4

R1(config-if)# des [SUBNET 4]

R1(config-if)#ip address 192.168.50.13 255.255.255.252

R1(config)#router eigrp 100

R1(config-router)#network 192.168.10.0

R1(config-router)#network 192.168.50.0

R1(config-router)#network 1.1.1.0 0.0.0.3

R1(config-router)#no auto summary

R1(config-router)#end

R1#

R2(config)#router eigrp 100

R2(config-router)#network 5.0.0.0

R2(config-router)#network 1.0.0.0

R2(config-router)#no auto summary

R2(config-router)#end

R2#

R3(config)#router eigrp 100

R3(config-router)#network 192.168.30.0

R3(config-router)#network 1.1.1.8 0.0.0.7

R3(config-router)#no auto summary

R3(config-router)#end

21
CCNA R&S
SUDHEER KUMAR - 8237002678

R3#

R4(config)#router eigrp 100

R4(config-router)#network 192.168.20.0

R4(config-router)#network 1.1.1.4 0.0.0.3

R4(config-router)#no auto summary

R4(config-router)#end

R4#

TESTING
1) Check R1, R2, R3 & R4 routing table entries starting with “D”
2) Check reachability of all PCs from PC1
3) Trying to find difference between R1 and R2 routing tables before and after
enabling no auto-summary command on R1 & R2
4) Observe output of below commands
a. Show ip protocols
b. Show ip eigrp 100 topology
c. Show ip eigrp 100 neighbor
d. Show ip eigrp 100 traffic
e. Show ip route
f. Show ip eigrp 100 interface

22
CCNA R&S
SUDHEER KUMAR - 8237002678

7. dynamic ROUTING – ospf


 Open Shortest Path First Protocols
 It is a Link State internal routing protocol, and is open standard.
 It is an area terminology
 Uses dijkstra's algorithm to find best path to destination prefixes
 Metric is cost which is derived from a formula 10^7/Link BW
 There is no Hop count limit but Cisco recommends 255 routers for area
 Supports classless routing
 Supports authentication
 Administrative Distance 110

OSPF Tables
 Neighbor table: contains directly connected neighbor list.
 database table: contains all possible routes to all destination networks
 Routing table: Contains best path to destination networks

OSPF Packet types


 hello – used to discover neighbors, bring a neighbor relationship to a 2-way state,
and monitor neighbor in case of fail
 Database description – used to exchange brief version of each LSA, typically on
initial topology exchange.
 Link-state request – a packet that identifies one or more LSAs about which the
sending router wants to know
 Link-state update – a response to LSR. A packet that has all LSAs that were
requested
 Link-state acknowledge – a packet sent to confirm a receipt of LSU

OSPF LSA types


 LSA Type 1 – Router LSA. It consists of router’s links and state. Type 1 LSAs are
flooded in the area of origination.
 LSA Type 2 – Network LSA. Generated by the DR – lists all attached routers in
the area. Type 2 LSAs are flooded in the area of origination.
 LSA Type 3 – Network Summary. Generated by ABR. Sent into an area to
advertise prefixes in other areas. Type 3 LSAs are flooded throughout the whole
AS
 LSA Type 4 – ASBR Summary. Generated by ABR. Advertises the ASBR. Type 4
LSAs are flooded throughout whole AS
 LSA Type 5 – AS External. Generated by the ASBR. Advertises external
networks. Type 5 LSAs are flooded throughout the whole AS

23
CCNA R&S
SUDHEER KUMAR - 8237002678

 LSA Type 7 – NSSA External. Generated by the ASBR in a not-so-stubby area.


Advertises external networks

OSPF area types


 Stub area – blocks type 4 and type 5 LSAs, instead one type 3 LSA default route is
injected
 Totally Stuby area – blocks type 3, type 4 and type 5 LSAs, but 1 type 3 LSA with
default route is allowed
 Not so stubby area – allows type 7 LSAs, which are external networks connected to
not so stuby area, then in ABR type 7 LSAs can be changed to Type 5 LSAs and
flooded to AS
 Totally not so stubby area – same as not so stubby area but type 3, type 4 and type
5 LSAs are blocked

Summarization
 Area range – summarization from one area to another

24
CCNA R&S
SUDHEER KUMAR - 8237002678

 Summary address – summarization of external networks

OSPF link types


In order to synchronize LSDB in the area, routers form adjacencies with the help of
Hello packets
 On p2p links – full adjacency
 in LAN – full adjacency is formed only with DR and BDR, all the other routers –
DROTHERS form partial adjacency. DR and BDR is responsible for informing
DROTHERS about changes. DR or BDR is elected by highest IP or by priority
(default is 1, the higher is better, 0 priority will never become DR or BDR).
DR/BDR election is not preemptive
 In NBMA neighbors must be manually configured with neighbor command.
DR/BDR exists and is elected based on IP/priority
 in P2MP – no DR/BDR because it’s similar to bunch of bundled p2p links
 in P2MP non-broadcast – no broadcast or multicast exists so neighbors must be
configured manually, no DR/BDR exists also
 Loopback – automatically injected /32 route, if we want that to change we have to
change the network type of the loopback

25
CCNA R&S
SUDHEER KUMAR - 8237002678

TOPOLOGY – SINGLE AREA

CONFIGURATION & VERIFICATION


R1(config)#interface lo 1

R1(config-if)# des [SUBNET 1]

R1(config-if)#ip address 192.168.50.1 255.255.255.252

R1(config)#interface lo 2

R1(config-if)# des [SUBNET 2]

R1(config-if)#ip address 192.168.50.5 255.255.255.252

R1(config)#interface lo 3

R1(config-if)# des [SUBNET 3]

R1(config-if)#ip address 192.168.50.9 255.255.255.252

R1(config)#interface lo 4

R1(config-if)# des [SUBNET 4]

26
CCNA R&S
SUDHEER KUMAR - 8237002678

R1(config-if)#ip address 192.168.50.13 255.255.255.252

R1(config)#router ospf 1

R1(config-router)#router-id 192.168.10.1

R1(config-router)#network 192.168.10.0 0.0.0.255 area 0

R1(config-router)#network 192.168.50.0 0.0.0.255 area 0

R1(config-router)#network 1.1.1.0 0.0.0.3 area 0

R1(config-router)#exit

R2(config)#router ospf 1

R2(config-router)#router-id 5.5.5.1

R2(config-router)#network 5.5.5.0 0.0.0.3 area 0

R2(config-router)#network 1.1.1.0 0.0.0.255 area 0

R2(config-router)#exit

R3(config)#router ospf 1

R3(config-router)#router-id 192.168.30.1

R3(config-router)#network 192.168.30.0 0.0.0.255 area 0

R3(config-router)#network 1.1.1.8 0.0.0.7 area 0

R3(config-router)#exit

R4(config)#router ospf 1

R4(config-router)#router-id 192.168.20.1

R4(config-router)#network 192.168.20.0 0.0.0.255 area 0

R4(config-router)#network 1.1.1.4 0.0.0.3 area 0

R4(config-router)#exit

TESTING
1) Check R1, R2, R3 & R4 routing table entries starting with “O”
2) Check reachability of all PCs from PC1

27
CCNA R&S
SUDHEER KUMAR - 8237002678

3) Observe output of below commands


a. Show ip protocols
b. Show ip ospf database
c. Show ip ospf neighbor
d. Show ip ospf interface
e. Show ip route

28
CCNA R&S
SUDHEER KUMAR - 8237002678

8. Dynamic ROUTING – ospf Multi area

CONFIGURATION & VERIFICATION


R1(config)#router ospf 1

R1(config-router)#network 1.1.1.0 0.0.0.3 area 0

R1(config-router)#network 192.168.10.0 0.0.0.255 area 0

R1(config-router)#end

R1#

R2(config)#router ospf 1

R2(config-router)#network 1.1.1.0 0.0.0.3 area 0

R2(config-router)#network 2.2.2.0 0.0.0.255 area 10

R2(config-router)#network 3.3.3.0 0.0.0.255 area 20

R2(config-router)#network 4.4.4.0 0.0.0.255 area 20

29
CCNA R&S
SUDHEER KUMAR - 8237002678

R2(config-router)#end

R2#

R3(config)#router ospf 1

R3(config-router)#network 2.2.2.0 0.0.0.3 area 10

R3(config-router)#network 192.168.20.0 0.0.0.255 area 10

R3(config-router)#end

R3#

R4(config)#router ospf 1

R4(config-router)#network 3.3.3.0 0.0.0.3 area 20

R4(config-router)#network 192.168.30.0 0.0.0.255 area 20

R4(config-router)#end

R4#

TESTING
1) Check R1, R2, R3 & R4 routing table entries starting with “O & O IA”
“O” = Intra Area Routes
“O IA” = Inter Area Routes
2) Check reachability of all PCs from PC1
3) Observe output of below commands
a. Show ip protocols
b. Show ip ospf database
c. Show ip ospf neighbor
d. Show ip ospf interface
e. Show ip route
f. Show ip ospf border-router

30
CCNA R&S
SUDHEER KUMAR - 8237002678

9. Dynamic ROUTING – redistribution #1

CONFIGURATION & VERIFICATION


R1(config)#router ospf 1

R1(config-router)#network 1.1.1.0 0.0.0.3 area 0

R1(config-router)#network 192.168.10.0 0.0.0.255 area 0

R1(config-router)#end

R1#

R2(config)#router ospf 1

R2(config-router)#network 1.1.1.0 0.0.0.3 area 0

R2(config-router)# redistribute rip metric 30 subnets

R2(config-router)# redistribute eigrp 100 metric 30 metric-type 1 subnets

R2(config-router)#exit

31
CCNA R&S
SUDHEER KUMAR - 8237002678

R2(config)#router rip

R2(config-router)#network 2.0.0.0

R2(config-router)#version 2

R2(config-router)#no auto-summary

R2(config-router)# redistribute ospf 1 metric 3

R2(config-router)# redistribute eigrp 100 metric 5

R2(config-router)#exit

R2(config)#router eigrp 100

R2(config-router)#network 3.3.3.0 0.0.0.255

R2(config-router)#network 4.4.4.0 0.0.0.255

R2(config-router)#no auto summary

R2(config-router)# redistribute ospf 1 metric 100000000 10 255 10 1500

R2(config-router)# redistribute eigrp 100 metric 100000000 20 255 20 1500

R2(config-router)#end

R2#

R3(config)#router rip

R3(config-router)#network 2.0.0.0

R3(config-router)#network 192.168.20.0

R3(config-router)#no auto-summary

R3(config-router)#version 2

R3(config-router)#end

R3#

R4(config)#router eigrp 100

R4(config-router)#network 3.3.3.0 0.0.0.3

R4(config-router)#network 192.168.30.0

R4(config-router)#no auto-summary

R4(config-router)#end

R4#

32
CCNA R&S
SUDHEER KUMAR - 8237002678

TESTING
1) Check R1 routing table entries starting with “O, O E1 & O E2”
“O” = Intra Area Routes
“O E1” = External network type 1
“O E2” = External network type 2
2) Check R3 routing table entries starting with “R”
3) Check R4 routing table entries starting with “D, D EX”
“D” = EIGRP routes
“D EX” = EIGRP External network
4) Check reachability of all PCs from PC1
5) Observe output of below commands
a. Show ip protocols on R1,R2,R3 & R4
b. Show ip ospf database on R1 & R2
c. Show ip ospf neighbor on R1 & R2
d. Show ip ospf interface on R1 & R2
e. Show ip route on R1,R2,R3 & R4
f. Show ip ospf border-router on R1
g. Show ip eigrp 100 topology on R4 & R2
h. Show ip eigrp 100 neighbor on R4 & R2
i. Show ip eigrp 100 interface on R4 & R2
j. Show ip eigrp 100 traffic on R4 & R2
k. Show ip rip database on R3 & R2

33
CCNA R&S
SUDHEER KUMAR - 8237002678

10. Dynamic ROUTING – redistribution #2

CONFIGURATION & VERIFICATION


R1(config)#router eigrp 100

R1(config-router)#network 1.1.1.0 0.0.0.3

R1(config-router)#network 192.168.10.0

R1(config-router)#no auto-summary

R1(config-router)#end

R1#

R2(config)#router eigrp 100

R2(config-router)#network 1.1.1.0 0.0.0.3

R2(config-router)# redistribute eigrp 200 metric 100000000 10 255 10 1500

R2(config-router)# redistribute ospf 1 metric 100000000 20 255 10 1500

34
CCNA R&S
SUDHEER KUMAR - 8237002678

R2(config-router)#no auto-summary

R2(config-router)#exit

R2(config)#router eigrp 200

R2(config-router)#network 3.3.3.0 0.0.0.3

R2(config-router)#network 4.4.4.0 0.0.0.3

R2(config-router)# redistribute eigrp 100 metric 100000000 10 255 10 1500

R2(config-router)# redistribute ospf 1 metric 100000000 20 255 10 1500

R2(config-router)#no auto-summary

R2(config-router)#exit

R2(config)#router ospf 1

R2(config-router)#network 2.2.2.0 0.0.0.255 area 0

R2(config-router)# redistribute eigrp 100 metric 20 subnets

R2(config-router)# redistribute eigrp 200 metric 20 metric-type 1 subnets

R2(config-router)#end

R2#

R3(config)#router ospf 1

R3(config-router)#network 2.2.2.0 0.0.0.3 area 0

R3(config-router)#network 192.168.20.0 0.0.0.3 area 0

R3(config-router)#end

R3#

R4(config)#router eigrp 200

R4(config-router)#network 3.3.3.0 0.0.0.3

R4(config-router)#network 192.168.30.0

R4(config-router)#no auto-summary

R4(config-router)#end

R4#

TESTING
1) Check R1 & R4 routing table entries starting with “D, & D EX”

35
CCNA R&S
SUDHEER KUMAR - 8237002678

“D” = EIGRP Routes


“D EX” = EIGRP External networks
NOTE: find the difference between eigrp internal and external AD values
2) Check R2 & R3 routing table entries starting with “O, O E1 & E2”
“O” = OSPF Intra area routes
“O E1” = OSPF External type 1 networks
“O E2” = OSPF External type 2 network
NOTE: find the difference between OSPF E1 & E2 intra area and and
external metric (E1 & E2) values
3) Check reachability of all PCs from PC1

36
CCNA R&S
SUDHEER KUMAR - 8237002678

11. SWITCHING
 Switch function
o Address learning
o Forwarding and filtering decisions
o Loop avoidance
 STP
o Terminology
 Root Bridge
 Non-Root Bridge
 Bride ID
 Priority
 BPDU
 Cost
o STP port states
 Down
 Blocking state
 Listening state
 Learning state
 Forwarding state
o STP evolution
 CSTP – 802.1D
 RSTP – 802.1w
 PVSTP – CISCO
 PVSTP+ - CISCO
 MSTP – 802.1s
 Switch port types
o Dynamic
o Access
o Trunk
 VTP
o Modes
 Server
 Transparent
 Client
o Advertisement type
 VLAN
 Inter-VLAN routing
 Ether-Channel
o PAGP
o LACP

37
CCNA R&S
SUDHEER KUMAR - 8237002678

LAB - SCENARIO
1) Ether Channel
Port-channel 1 (PAGP)
Between PUN_SW01 & PUN_SW02 ( ports fa0/23 & fa0/24)

Port-channel 2 (LACP)
Between PUN_SW01 & PUN_SW03 ( ports fa0/21 & fa0/22)

Port-channel 3 (PAGP)
Between PUN_SW02 & PUN_SW03 ( ports fa0/19 & fa0/20)

Verification:
Show etherchannel summary
Show etherchannel port-channel
Show int port-channel x

2) Configure port channels between switches as trunk ports

38
CCNA R&S
SUDHEER KUMAR - 8237002678

Verification:

Show interface trunk

3) Verify STP:

PUN_SW01 should be Root Bridge for all vlans

4) Configure VTP
PUN_SW01 – VTP server
PUN_SW02 – VTP transparent
PUN_SW03 – VTP Client

Verification:
Show vtp status

5) Configure VLANs
VLAN 10 – SALES
VLAN 11 – ADMIN
VLAN 12 – IT

Verification:
Show vlan

6) Configure switch ports as access port to appropriate vlans where end users connected.

7) Configure inter-vlan routing (router on stick)


On router:
Fa0/0.10 – Gateway for VLAN 10
Fa0/0.11 – Gateway for VLAN 11
Fa0/0.12 – Gateway for VLAN 12

ENABLE ROUTING ON THE ROUTER.

Verification:
Show ip route
Check ping response to all end devices.

CONFIGURATION ON PUN_SW01
Switch>enable

Switch#configure terminal

Switch(config)#hostname PUN_SW01

39
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_SW01(config)#interface port-channel 1

PUN_SW01(config-if)#description [TRUNK LINK BETWEEN PUN_SW01 AND PUN_SW02]

PUN_SW01(config-if)#switchport mode turnk

PUN_SW01(config-if)#switchport trunk allowed vlan 1,10,11,12,1002-1005

PUN_SW01(config)#interface port-channel 2

PUN_SW01(config-if)#description [TRUNK LINK BETWEEN PUN_SW01 AND PUN_SW03]

PUN_SW01(config-if)#switchport mode turnk

PUN_SW01(config-if)#switchport trunk allowed vlan 1,10,11,12,1002-1005

PUN_SW01(config)#interface fa0/1

PUN_SW01(config-if)#description [TRUNK LINK BETWEEN PUN_SW01 AND PUN_RT01 FOR INTER-VLAN


ROUTING]

PUN_SW01(config-if)#switchport mode turnk

PUN_SW01(config-if)#switchport trunk allowed vlan 1,10,11,12,1002-1005

PUN_SW01(config-if)#exit

PUN_SW01(config)#interface range fa0/21 – 22

PUN_SW01(config-if-range)#description [MEMBER IN PORT CHANNEL 2]

PUN_SW01(config-if-range)#channel-protocol lacp

PUN_SW01(config-if-range)#channel-group 1 mode active

PUN_SW01(config-if-range)#speed 100

PUN_SW01(config-if-range)#duplex full

PUN_SW01(config)#int range fa0/23 – 24

PUN_SW01(config-if-range)#description [MEMBER IN PORT CHANNEL 1]

PUN_SW01(config-if-range)#channel-protocol lacp

PUN_SW01(config-if-range)#channel-group 2 mode active

PUN_SW01(config-if-range)#speed 100

PUN_SW01(config-if-range)#duplex full

PUN_SW01(config-if-range)#exit

PUN_SW01(config)#vtp mode server

PUN_SW01(config)#vtp domain cisco

40
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_SW01(config)#vtp password cisco

PUN_SW01(config)#vlan 10

PUN_SW01(config-vlan)#name SALES

PUN_SW01(config-vlan)#exit

PUN_SW01(config)#vlan 11

PUN_SW01(config-vlan)#name MARKETING

PUN_SW01(config-vlan)#exit

PUN_SW01(config)#vlan 12

PUN_SW01(config-vlan)#name FINANCE

PUN_SW01(config-vlan)#exit

PUN_SW01(config)#interface fa0/10

PUN_SW01(config-if)#description [MEMBER IN VLAN 10]

PUN_SW01(config-if)#switchport mode access

PUN_SW01(config-if)#switchport access vlan 10

PUN_SW01(config)#interface fa0/11

PUN_SW01(config-if)#description [MEMBER IN VLAN 11]

PUN_SW01(config-if)#switchport mode access

PUN_SW01(config-if)#switchport access vlan 11

PUN_SW01(config)#interface fa0/12

PUN_SW01(config-if)#description [MEMBER IN VLAN 12]

PUN_SW01(config-if)#switchport mode access

PUN_SW01(config-if)#switchport access vlan 12

CONFIGURATION ON PUN_SW02
Switch>enable

Switch#configure terminal

Switch(config)#hostname PUN_SW02

PUN_SW02(config)#interface port-channel 1

PUN_SW02(config-if)#description [TRUNK LINK BETWEEN PUN_SW02 AND PUN_SW01]

41
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_SW02(config-if)#switchport mode turnk

PUN_SW02(config-if)#switchport trunk allowed vlan 1,10,11,12,1002-1005

PUN_SW02(config)#interface port-channel 3

PUN_SW02(config-if)#description [TRUNK LINK BETWEEN PUN_SW02 AND PUN_SW03]

PUN_SW02(config-if)#switchport mode turnk

PUN_SW02(config-if)#switchport trunk allowed vlan 1,10,11,12,1002-1005

PUN_SW02(config-if)#exit

PUN_SW02(config)#interface range fa0/19 – 20

PUN_SW02(config-if-range)#description [MEMBER IN PORT CHANNEL 3]

PUN_SW02(config-if-range)#channel-protocol pagp

PUN_SW02(config-if-range)#channel-group 3 mode desirable

PUN_SW02(config-if-range)#speed 100

PUN_SW02(config-if-range)#duplex full

PUN_SW02(config)#int range fa0/23 – 24

PUN_SW02(config-if-range)#description [MEMBER IN PORT CHANNEL 1]

PUN_SW02(config-if-range)#channel-protocol lacp

PUN_SW02(config-if-range)#channel-group 1 mode passive

PUN_SW02(config-if-range)#speed 100

PUN_SW02(config-if-range)#duplex full

PUN_SW02(config-if-range)#exit

PUN_SW02(config)#vtp mode transparent

PUN_SW02(config)#vtp domain cisco

PUN_SW02(config)#vtp password cisco

PUN_SW02(config)#vlan 10

PUN_SW02(config-vlan)#name SALES

PUN_SW02(config-vlan)#exit

PUN_SW02(config)#vlan 11

PUN_SW02(config-vlan)#name MARKETING

42
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_SW02(config-vlan)#exit

PUN_SW02(config)#vlan 12

PUN_SW02(config-vlan)#name FINANCE

PUN_SW02(config-vlan)#exit

PUN_SW02(config)#interface fa0/10

PUN_SW02(config-if)#description [MEMBER IN VLAN 10]

PUN_SW02(config-if)#switchport mode access

PUN_SW02(config-if)#switchport access vlan 10

PUN_SW02(config)#interface fa0/11

PUN_SW02(config-if)#description [MEMBER IN VLAN 11]

PUN_SW02(config-if)#switchport mode access

PUN_SW02(config-if)#switchport access vlan 11

PUN_SW02(config)#interface fa0/12

PUN_SW02(config-if)#description [MEMBER IN VLAN 12]

PUN_SW02(config-if)#switchport mode access

PUN_SW02(config-if)#switchport access vlan 12

PUN_SW02(config-if)#end

PUN_SW02#copy running-config starting-config

CONFIGURATION ON PUN_SW03
Switch>enable

Switch#configure terminal

Switch(config)#hostname PUN_SW03

PUN_SW03(config)#interface port-channel 2

PUN_SW03(config-if)#description [TRUNK LINK BETWEEN PUN_SW03 AND PUN_SW01]

PUN_SW03(config-if)#switchport mode turnk

PUN_SW03(config-if)#switchport trunk allowed vlan 1,10,11,12,1002-1005

PUN_SW03(config)#interface port-channel 3

PUN_SW03(config-if)#description [TRUNK LINK BETWEEN PUN_SW03 AND PUN_SW02]

43
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_SW03(config-if)#switchport mode turnk

PUN_SW03(config-if)#switchport trunk allowed vlan 1,10,11,12,1002-1005

PUN_SW03(config-if)#exit

PUN_SW03(config)#interface range fa0/21 – 22

PUN_SW03(config-if-range)#description [MEMBER IN PORT CHANNEL 2]

PUN_SW03(config-if-range)#channel-protocol pagp

PUN_SW03(config-if-range)#channel-group 3 mode desirable

PUN_SW03(config-if-range)#speed 100

PUN_SW03(config-if-range)#duplex full

PUN_SW03(config)#int range fa0/19 – 20

PUN_SW03(config-if-range)#description [MEMBER IN PORT CHANNEL 3]

PUN_SW03(config-if-range)#channel-protocol lacp

PUN_SW03(config-if-range)#channel-group 1 mode passive

PUN_SW03(config-if-range)#speed 100

PUN_SW03(config-if-range)#duplex full

PUN_SW03(config-if-range)#exit

PUN_SW03(config)#vtp mode client

PUN_SW03(config)#vtp domain cisco

PUN_SW03(config)#vtp password cisco

PUN_SW03(config)#vlan 10

PUN_SW03(config-vlan)#name SALES

PUN_SW03(config-vlan)#exit

PUN_SW03(config)#vlan 11

PUN_SW03(config-vlan)#name MARKETING

PUN_SW03(config-vlan)#exit

PUN_SW03(config)#vlan 12

PUN_SW03(config-vlan)#name FINANCE

PUN_SW03(config-vlan)#exit

44
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_SW03(config)#interface fa0/10

PUN_SW03(config-if)#description [MEMBER IN VLAN 10]

PUN_SW03(config-if)#switchport mode access

PUN_SW03(config-if)#switchport access vlan 10

PUN_SW03(config)#interface fa0/11

PUN_SW03(config-if)#description [MEMBER IN VLAN 11]

PUN_SW03(config-if)#switchport mode access

PUN_SW03(config-if)#switchport access vlan 11

PUN_SW03(config)#interface fa0/12

PUN_SW03(config-if)#description [MEMBER IN VLAN 12]

PUN_SW03(config-if)#switchport mode access

PUN_SW03(config-if)#switchport access vlan 12

PUN_SW03(config-if)#end

PUN_SW03#copy running-config starting-config

CONFIGURATION ON PUN_RT01 FOR INTER-VLAN


ROUTING
Router>enable

Router#configure terminal

Router(config)#hostname PUN_RT01

PUN_RT01(config)#interface fa0/0

PUN_RT01(config-if)#description [INTER-VLAN ROUTING]

PUN_RT01(config-if)#no shutdown

PUN_RT01(config-if)#interface fa0/0.10

PUN_RT01(config-subif)#description [GATEWAY FOR VLAN 10]

PUN_RT01(config-subif)#encapsulation dot1q 10

PUN_RT01(config-subif)#ip address 10.0.0.1 255.0.0.0

PUN_RT01(config-if)#interface fa0/0.11

45
CCNA R&S
SUDHEER KUMAR - 8237002678

PUN_RT01(config-subif)#description [GATEWAY FOR VLAN 11]

PUN_RT01(config-subif)#encapsulation dot1q 11

PUN_RT01(config-subif)#ip address 11.0.0.1 255.0.0.0

PUN_RT01(config-if)#interface fa0/0.12

PUN_RT01(config-subif)#description [GATEWAY FOR VLAN 12]

PUN_RT01(config-subif)#encapsulation dot1q 12

PUN_RT01(config-subif)#ip address 12.0.0.1 255.0.0.0

PUN_RT01(config-subif)#end

PUN_RT01#write

TESTING
1) Check inter-vlan routing on PUN_RT01
Check reachability from 10.0.0.10 to all PCs
2) Check STP
a. PUN_SW01 is root bridge for all vlans remaining switches are non-
root bridges
b. Enable port-fast on access-list
c. Enable back bone fast and uplink fast on trunk link
3) Check ether-channel status between switches
4) Check VTP status on all switches
5) Check VLAN configuration on all switches
6) Check trunk links status on all switches

46

You might also like