Professional Documents
Culture Documents
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)#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-if)#description [LAN]
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)#no shutdown
PUN_RT01(config-if)#end
CONFIGURATION ON R2
R2>enable
R2#configure terminal
PUN_RT02(config)#hostname PUN_RT02
3
CCNA R&S
SUDHEER KUMAR - 8237002678
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-if)#description [LAN]
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
4
CCNA R&S
SUDHEER KUMAR - 8237002678
PUN_RT02(config-if)#no shutdown
PUN_RT02(config)#interface se 2/1
PUN_RT02(config-if)#no shutdown
PUN_RT02(config)#interface se 2/2
PUN_RT02(config-if)#no shutdown
PUN_RT02(config-if)#end
CONFIGURATION ON R3
R3>enable
R3#configure terminal
PUN_RT03(config)#hostname PUN_RT03
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-if)#description [LAN]
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)#no shutdown
PUN_RT03(config-if)#end
CONFIGURATION ON R4
R4>enable
R4#configure terminal
PUN_RT04(config)#hostname PUN_RT04
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-if)#description [LAN]
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)#no shutdown
PUN_RT04(config-if)#end
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
CONFIGURATION ON R2
PUN_RT02(config)#ip route 192.168.10.0 255.255.255.0 1.1.1.2
CONFIGURATION ON R3
9
CCNA R&S
SUDHEER KUMAR - 8237002678
CONFIGURATION ON R4
PUN_RT03(config)#ip route 192.168.10.0 255.255.255.0 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
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
CONFIGURATION ON R1
R1(config)#interface serial2/0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial2/1
R1(config-if)#no shutdown
R1(config-if)#exit
13
CCNA R&S
SUDHEER KUMAR - 8237002678
CONFIGURATION ON R2
R2(config)#interface serial2/0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial2/1
R2(config-if)#no shutdown
R2(config-if)#exit
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
15
CCNA R&S
SUDHEER KUMAR - 8237002678
Topology
R1(config)#interface lo 2
R1(config)#interface lo 3
R1(config)#interface lo 4
16
CCNA R&S
SUDHEER KUMAR - 8237002678
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)#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)#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)#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
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
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
20
CCNA R&S
SUDHEER KUMAR - 8237002678
R1(config)#interface lo 2
R1(config)#interface lo 3
R1(config)#interface lo 4
R1(config-router)#network 192.168.10.0
R1(config-router)#network 192.168.50.0
R1(config-router)#end
R1#
R2(config-router)#network 5.0.0.0
R2(config-router)#network 1.0.0.0
R2(config-router)#end
R2#
R3(config-router)#network 192.168.30.0
R3(config-router)#end
21
CCNA R&S
SUDHEER KUMAR - 8237002678
R3#
R4(config-router)#network 192.168.20.0
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
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
23
CCNA R&S
SUDHEER KUMAR - 8237002678
Summarization
Area range – summarization from one area to another
24
CCNA R&S
SUDHEER KUMAR - 8237002678
25
CCNA R&S
SUDHEER KUMAR - 8237002678
R1(config)#interface lo 2
R1(config)#interface lo 3
R1(config)#interface lo 4
26
CCNA R&S
SUDHEER KUMAR - 8237002678
R1(config)#router ospf 1
R1(config-router)#router-id 192.168.10.1
R1(config-router)#exit
R2(config)#router ospf 1
R2(config-router)#router-id 5.5.5.1
R2(config-router)#exit
R3(config)#router ospf 1
R3(config-router)#router-id 192.168.30.1
R3(config-router)#exit
R4(config)#router ospf 1
R4(config-router)#router-id 192.168.20.1
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
28
CCNA R&S
SUDHEER KUMAR - 8237002678
R1(config-router)#end
R1#
R2(config)#router ospf 1
29
CCNA R&S
SUDHEER KUMAR - 8237002678
R2(config-router)#end
R2#
R3(config)#router ospf 1
R3(config-router)#end
R3#
R4(config)#router ospf 1
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
R1(config-router)#end
R1#
R2(config)#router ospf 1
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)#exit
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)#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
R1(config-router)#network 192.168.10.0
R1(config-router)#no auto-summary
R1(config-router)#end
R1#
34
CCNA R&S
SUDHEER KUMAR - 8237002678
R2(config-router)#no auto-summary
R2(config-router)#exit
R2(config-router)#no auto-summary
R2(config-router)#exit
R2(config)#router ospf 1
R2(config-router)#end
R2#
R3(config)#router ospf 1
R3(config-router)#end
R3#
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
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
38
CCNA R&S
SUDHEER KUMAR - 8237002678
Verification:
3) Verify STP:
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.
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)#interface port-channel 2
PUN_SW01(config)#interface fa0/1
PUN_SW01(config-if)#exit
PUN_SW01(config-if-range)#channel-protocol lacp
PUN_SW01(config-if-range)#speed 100
PUN_SW01(config-if-range)#duplex full
PUN_SW01(config-if-range)#channel-protocol lacp
PUN_SW01(config-if-range)#speed 100
PUN_SW01(config-if-range)#duplex full
PUN_SW01(config-if-range)#exit
40
CCNA R&S
SUDHEER KUMAR - 8237002678
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)#interface fa0/11
PUN_SW01(config)#interface fa0/12
CONFIGURATION ON PUN_SW02
Switch>enable
Switch#configure terminal
Switch(config)#hostname PUN_SW02
PUN_SW02(config)#interface port-channel 1
41
CCNA R&S
SUDHEER KUMAR - 8237002678
PUN_SW02(config)#interface port-channel 3
PUN_SW02(config-if)#exit
PUN_SW02(config-if-range)#channel-protocol pagp
PUN_SW02(config-if-range)#speed 100
PUN_SW02(config-if-range)#duplex full
PUN_SW02(config-if-range)#channel-protocol lacp
PUN_SW02(config-if-range)#speed 100
PUN_SW02(config-if-range)#duplex full
PUN_SW02(config-if-range)#exit
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)#interface fa0/11
PUN_SW02(config)#interface fa0/12
PUN_SW02(config-if)#end
CONFIGURATION ON PUN_SW03
Switch>enable
Switch#configure terminal
Switch(config)#hostname PUN_SW03
PUN_SW03(config)#interface port-channel 2
PUN_SW03(config)#interface port-channel 3
43
CCNA R&S
SUDHEER KUMAR - 8237002678
PUN_SW03(config-if)#exit
PUN_SW03(config-if-range)#channel-protocol pagp
PUN_SW03(config-if-range)#speed 100
PUN_SW03(config-if-range)#duplex full
PUN_SW03(config-if-range)#channel-protocol lacp
PUN_SW03(config-if-range)#speed 100
PUN_SW03(config-if-range)#duplex full
PUN_SW03(config-if-range)#exit
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)#interface fa0/11
PUN_SW03(config)#interface fa0/12
PUN_SW03(config-if)#end
Router#configure terminal
Router(config)#hostname PUN_RT01
PUN_RT01(config)#interface fa0/0
PUN_RT01(config-if)#no shutdown
PUN_RT01(config-if)#interface fa0/0.10
PUN_RT01(config-subif)#encapsulation dot1q 10
PUN_RT01(config-if)#interface fa0/0.11
45
CCNA R&S
SUDHEER KUMAR - 8237002678
PUN_RT01(config-subif)#encapsulation dot1q 11
PUN_RT01(config-if)#interface fa0/0.12
PUN_RT01(config-subif)#encapsulation dot1q 12
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