Professional Documents
Culture Documents
Ccna Commands and Lab
Ccna Commands and Lab
>telnet 172.16.2. X
User verification
password: topgun
delhi> en
password : topgun
delhi #
Now to load the configurations into NVRAM and have a backup into the TFTP server.
delhi # show startup- config
You will not find any config there,
delhi # copy running - config startup - config
# destination filename [ startup-config]: [ENTER]
delhi # sh startup-config
[ You will find the same-configuration as the running - config]
check the ip address of TFTP server. Let it be 172.16.2.3
delhi # ping 172.16.2.32
If it pings, then load config into it. For that
delhi # copy running - config tftp
[ Remote Hostname or IP add] : 172.16.2.32
destination file name [ delhi - config]: [ ENTER]
!!! files copied.
delhi # write erase
erasing nvram filesystem .......................[ confirm]: [ENTER]
[OK]
delhi # reload:
:
:
After it boots, again
Router> en
" # config t
<config> # int e 0
__if > # ip address 172.16.2. X 255.255.255
# no shut
# ^z
Router # 172.16.2.32 [ Tftp server]
of it pings then,
Router # copy tftp running - config
: 172.16.2.32
source filename : delhi-config
destination filename [running-config] :
Press
delhi# ^ < Ctrl+Shift+ 6> X
access # show sessions
" # show users
# disconnect
[ confirm] [ENTER]
# exit
..................................................................
X..........................................................
TOPOLOGY:
OBJECTIVE: To interconnect two different switched and create vlans to check the
flow of data trough it.
CONFIGURATION PARAMETERS:
VLAN-ID NAME PORTS PORTS
on 1900 on 2900
10 CCNA 1,2 1,2
20 CCNP 3,4 3,4
30 CCIE 5,6 10,11
LAB:
Cat 1900# delete nvram
After it gers erased, it will ask menu based questions and then select [K] to
go to CLI.
LAB:
>enable
# config t
<config># hostname Cat 1900
Step 3: Check out whether some vlans are already existing in the switch.
LAB :
Cat 1900#show vlan
If some vlan already exist then you need to erase that. For that check
whether your switch is in server mode or not.
LAB:
Cat 1900#show vtp
If its in server mode then shift to next step else:
LAB:
Cat1900(xonfig)#vtp server
LAB:
Cat1900<config>#no vlan<number>
Here number = vlan id of the existing vlan.
Repeat this, till all the vlans get erased other than the factory default vlanl and
default vlans for token ring and fddi.
LAB:
Cat 1900#show vlan
Step 6: Set up the vtp domain name and password for it.
LAB:
Cat 1900<config>#vtpdomain topgun
Cat1900<config>#vtp password cisco
LAB:
Cat1900<config>#vlan 10 name ccna
Cat1900<config>#vlan 20 name ccnp
Cat1900<config>#vlan 30 name ccie
Cat1900<config>#exit
LAB:
Cat1900#show vlan
LAB:
Cat1900<config>#int e0/1
Cat1900<config-if>#vlan-membership static 10
Cat1900<config>#int e0/2
Cat1900<config-if>#vlan-membership static 10
Cat1900<config>#int e0/3
Cat1900<config-if>#vlan-membership static 20
Cat1900<config># int e0/4
Cat1900<config-if>#vlan-membership static 20
Cat1900<config># int e0/5
Cat1900<config-if>#vlan-membership static 30
Cat1900<config># int e0/6
Cat1900<config-if>vlan-membership static 30
LAB:
Cat1900<config>#int f0/26
Cat1900<config-if>#trunk on
Cat1900<config-if>#int f0/27
Cat1900<config-if>#trunk on
LAB:
CAt2900#write erase
Then confirm the erasing of the nvram and then:
Cat 2900#reload
Syntax: hostname<name>
LAB:
Switch>enable
Switch#config t
Switch<config>#hostname Cat 2900
Cat 2900#
LAB:
Cat2900#show vlan
If some of them are existing apart from lthe factory default vlans, then erase
them. For that check whether your switch is in the server mode or not.
LAB:
Cat2900#vlan database
Syntax: #apply
LAB:
Cat2900<vlan>#vtp server
Syntax : #apply
LAB:
Cat2900<vlan>#apply
Now remove all those vlans
Cat2900<vlan>#no vlan <vlan-id>
Here vlan-id is the number which you see when "show vlan "is done.
Cat2900#show vlan
LAB:
Cat2900#vlan database
Cat2900<vlan>#vtp domain topgun password cisco
Cat2900<vlan>#applys
Syntax: vtp<mode>
LAB:
Cat2900<vlan>#vtp client
Cat2900<vlan>#exit
Step 6: set up the trunk link for the connection between 2 switches to get the vlan
information form the server switch into the client switch.
LAB:
Cat2900<config>#int f0/23
Cat2900<config-if>#switchport trunk encapsulation isl
Cat2900<config-if>#switchport mode trunk
Cat2900<config-if>#int f0/24
Cat2900<config-if>#switchport trunk encapasulation isl
Cat2900<config-if>3switchport mode trunk
Step 7: set ip the trunklink physical connectivity between the 2 switches with a
cross-over cable
Step 8: Check whether the switch got the vlan information from lthe server.
LAB:
Cat2900#show vlan
You must be able to see the entire vlan information in the client switch Cat2900.
LAB:
Cat2900<config>#int f0/1
Cat2900<config-if>#switchport access vlan 10
Cat2900<config-if>#int f0/2
Cat2900<config-if>#switchport access vlan 10
Cat2900<config-if>#int f0/3
Cat2900<config-if>#switchport access vlan 20
Cat2900<config-if>#int f0/4
Cat2900<config-if>#switchport access vlan 20
Cat2900<config-if>#int f0/10
Cat2900<config-if>#switchport access vlan 30
Cat2900<config-if>#int f0/11
Cat2900<config-if>#switchport access vlan 30
Step 10: After configuring this connesct pc 1 and pc 2 to port 1 and 3 of Cat1900
and pc 3 to port 1 of Cat2900. Pc1 will ping pc 3 as they belong to same vlan to
but pc 2 will not ping pc 3
TOPOLOGY:
OBJECTIVE:
To set up the network with ipx as the routing protocol and check the
routing table and sap advertisements through out the network.
CONFIGURATION PARAMETERS:
Network addresses:
CALCUTTA Router: int e0/0.1 - 10a
int e0/0.2 - 20b
BOMBAY Router: int e0 - 10a
int s0 - 30c
BBONE Router : int e0 - 20b
int s0 - 30c
Encapsulation type :
Network 10a - arpa
Network 20b - novell-ether
Network 30c - hdlc
Step 2 : Set up the network and the encapsulation type at each interface of the
routers.
LAB:
Bombay<config>#int e0
Bombay<config-if>#ipx network 10a encapsulation arpa
Bombay<config-if>#no shutdown
Bombay<config-if>#int s0
Bombay<config-if>#ipx network 30c encapsulation hdlc
Bombay<config-if>#no shut
Calcutta<config>#int e0/0.1
Calcutta<config-subif>#ipx network 10a encapsulation arpa
Calcutta<config-subif>#int e0/0.2
Calcutta<config-subif>#ipx network 20b encapsulation novell-ether
Calcutta<config-subif>#exit
Calcutta<config>#int e0/P
Calcutta<config-if>#no shutdown
Bbone<config>#int e0
Bbone<colnfig-if>#ipx network 20b encapsulation novell-ether
Bbone<config-if>no shutdown
Bbone<config-if>#int s0
Bbone<config-if>#ipx network 30c encapsulation hdlc
Bbone<config-if>#no shutdown
LAB :
Calcutta<config>#ipx routing
Bombay<config>#ipx routing
Bbone<config>#ipx routing
Step 2 : Set up the network and the encapsulation type ateach interface of the
routers.
LAB:
Bombay<config>#int e0
Bombay<config-if>#ipx network 10a encapsulation arpa
Bombay<config-if>#no shutdown
Bombay<config-if>#int s0
Bombay<config-if>ipx network 30c encapsulation hdlc
Bombay<config-if>#no shut
Calcutta<config>#int e0/0.1
Calcutta<config-subif>#ipx network 10a encapsulation arpa
Calcutta<config-subif>#int e0/0.2
Calcutta<conifg-subif>#ipx network 20b encapsulation novell-ether
Calcutta<config-subif>#exit
Calcutta<config>#int e0
Calcutta<config-if>#no shutdown
Bbone<config>#int e0
Bbone<config-if>#ipx network 20b encapsulation novell-ether
Bbone<config-if>#no shutdown
Bbone<config-if>#ipx network 30c encapsulation hdlc
Bbone<config-if>#no shutdown
Step 3 : Check the interface are up or not and thereby check the routing table.
Syntax : ipx sap <service type> <server name> <network node><socket number> <hop
count>
LAB:
Bbone<config>#ipx sap 4 File 1 10a 001a.001b.001c 33 4
Bbone<config>#ipx sap 7 Print 1 20b 002a.002b.002c 34 5
LAB :
Bbone#show ipx servers
Step 6 : To block some sap entries in Bombay router with sap filters. For that
create the sap filter in the router by implementing an access-list and then apply
than in the required interface.
int <type><number>
ipx<{input/output}-sap-filter><access-list number>
LAB:
Bombay<config>#access-list 1001 deny - 1 4
[Note : here - 1 implies any network]
Bombay<config>#int e0
Bombay<config>#ipx input-sap-filter 1001
Bombay<config>#int s0
Bombay<config>#ipx input-sap-filter 1001
LAB:
Bbone#show ipx servers ]
[Note: Some times you may see the old sap table so clear the exsisting sap
table and then see the new one which will appear after 60 seconds.
LAB:
Step 2> Apply the access-list to the serial interface in the outbound direction.
LAB:
Delhi<config>#int s0
Delhi<config-if>#ip access-group 1 out
Step 3>Testing and verification by pinging any interface outside Delhi network.
LAB:
Delhi<cinfig>#ping 200.0.0.6
TASK 2 : Block any network other than 20.0.0.0 trying to telnet into Bombay.
Step 1> Create a standard access-list in Bombay to allow only network 20.0.0.0
LAB:
Bombay<config>#access-list 2 permit 20.0.0.0 0.0.0.255
Step 2> Create a telnet session by opening vty lines and set kup vty password and
enable password to open a valid telnet session.
LAB:
Bombay <config>#line vty 0 4
Bombay<config-line> #access class in
Step 4> Test by tring to telnet from any pc of any network other than 20.0.0.0
LAB:
From pc A or B do:
telnet 201.0.0.2
Step 1> Create an access-list in the Delhi router to block icmp packets coming from
B and going to D. Permit rest of the ip traffic.
LAB:
Delhi<config>#access-list 100 deny icmp 10.0.0.0. 0.0.0.0 20.0.0.0. echo
Delhi<config>#access-list 100 deny icmp 10.0.0.0. 0.0.0.0 20.0.0.0. echo-
reply
Delhi<config>#access-list 100 permit ip any any
LAB:
Delhi<config>#int e0
Delhi<config-if>#ip access-group 100 in
Syntax: Ping
LAB:
From pc B,
ping 20.0.0.10
TASK 4: Make D as the FTP server and then block B from doing FTP to D.
Step 1> Create an extended access-list to deny FTP in Delhi router. Permit rest of
the ip traffic.
LAB :
LAB :
Delhi<config>#int e0
Delhi<config-if>#ip access-group 101 in
LAB :
......................................................................X............
...........................................................
TOPOLOGY :
OBJECTIVE :
To setup the routing in between routers remotely connected to each other by
enabling static or dynamic routing protocols. (Static, default, RIP, IGRP).
CONFIGURATION PARAMETERS:
LAB :
Router<config>#hostname Delhi
Router<config>#hostname Bombay
Router<config>#hostname Bbone
Step 2 > Giving ip address to all the required interfaces and bring them up.
LAB :
Delhi<config>#interface Ethernet 0
Delhi<config-if>#ip address 10.0.0.1 255.255.255.0
Delhi<config-if>#no shut
Delhi<config-if>#interface s0
Delhi<config-if>#ip address 200.0.0.5 255.255.255.252
Delhi<config-if>#no shut
Bombay<config>#int e0
Bombay<config-if>#ip address 20.0.0.1 255.255.255.0
Bombay<config-if>#no shut
Bombay<config-if>#int s0
Bombay<config-if>#ip address 201.0.0.2 255.255.255.252
Bombay<config-if>#no shut
Bbone<config>#int e0
Bbone<config-if>#ip address 172.16/20 255.255.255.0
Bbone<config-if>#no shut
Bbone<config-if>#int s0
Bbone<config-if>#ip address 201.0.0.1 255.255.255.252
Bbone<config-if>#no shut
Bbone<config-if># int s1
Bbone<config-if>#ip address 200.0.0.6 255.255.255.252
Bbone<config-if>#no shut
Step 3>Assign clock rate to the DCE interfaces.
LAB :
Bbone<config>#int s0
Bbone<config-if>#clock rate 64000
Bbone<config>#int s1
TASK 2 :Verify all the interfaces of the routers are administratively up or not.
LAB :
Step 1> Check the routing table to see the directly connected networks.
LAB:
Bbone#show ip route
Syntax : ip route <destination network ip address > < subnet mask ><next hop ip
address/ outgoing interface>
LAB:
Step 3 > Recheck the new routing table by repeating step 1 of TASK 3.
Step1 > Remove the static route entries from the router DELHI and BOMBAY as they
are stubnetworks.
Syntax:
no ip route < destination network ip address > < subnet mask> < next
hop ip address/ outgoing interface>
LAB:
Step 2> Enable default routing in the rounters belonging tgo stub networks (Delhi
and Bombay ),
LAB:
Step 1 > Remove all the existing static and dyanamic routes from the routers in
Delhi and Bombay.
LAB:
Syntax : no ip route <destination network in address > < subnet mask > <next hop
in address/ outgoing interface>
LAB:
LAB:
Delhi<config>#router rip
Bombay <config># router rip
Bbone<config># router rip
LAB :
Note : While enabling IGRP in the system we need not remove the rip commands from
the routers as the rip entries will get automatically replaced by the igrp entries
as igrp has lower administrative distance than that of the rip.
OBJECTIVE : To setup your network for isdn connection as well as for the frame-
relay.
CONFIGURATION PARAMETERS:
ISDN LAB:
Step 1 : Set up all the interfaces of all the routers and check whether they are up
or not.
LAB:
Delhi<config>#int e0
Delhi<config-if>#ip address 50.0.0.1.255.255.255.0
Delhi<config-if>#no shut
Delhi<config-if>#int so
Delhi<config-if>#ip address 200.0.0.1.255.255.255.0
Delhi<config-if>#no shut
Delhi<config-if>#int bri 0
Delhi<config-if>#ip address 100.0.0.1.255.255.255.0
Delhi<config-if>#no shut
Bombay<config>#int e0
Bombay<config-if>#ip address 60.0.0.1.255.255.255.0
Bombay<config-if>#no shut
Bombay<config-if>#int s0
Bombay<config-if>#ip address 200.0.0.2.255.255.255.0
Bombay<config-if>#no shut
Bombay<config-if>#int bri 0
Bombay<config-if>#ip address 100.0.0.2.255.255.255.0
Bombay<config-if>#no shut
Frswitch<config>#int e0
Frswitch<config-if>#ip address 70.0.0.1.255.255.255.0
Frswitch<config-if>#no shut
Frswitch<config-if>#int s0
Frswitch<config-if>#ip address 200.0.0.3.255.255.255.0
Frswitch<config-if>#no shut
Syntax : ip route <destination network ip address > < subnet mask> <next Hop ip
address>
LAB:
Step 3 : Configure the isdn switch type and enable encapsulation as ppp in the bri
interface and authentication type as chap.
LAB :
Note: Username and password is case sensitive Name is the hostname of the router
on the other side.
LAB:
Delhi<config>#username Bombay password cisco
Step 5: Set up a dialer-list to describe the interesting traffic Apply that in the
bri interface.
int bri 0
dialer-group <dialer-list number>
LAB:
Step 6: Set up a dialer information by declaring your router's spid number and
setting a dialer map.
LAB:
Delhi<config>#int bri0
Delhi<config-if>#ISDN SPID 1 5551000001
Delhi<config-if>#dialer map ip 100.0.0.2 name Bombay 5552000001
Delhi<config-if>#no shut
Bombay<config>#int bri0
Bombay<config-if>#ISDN SPID 1 5552000001
Bombay<config-if>#dialer map ip 100.0.0.1 name Bombay 5551000001
Bombay<config-if>#no shut
Syntax: ping
LAB:
Delhi#ping 100.0.0.2
Bombay#ping 100.0.0.1
FRAME-RELAY LAB:
LAB:
Delhi<config>#int s0
Delhi<config-if>#encapsulation frame-relay
Bombay<config>#int s0
Bombay<config-if>#encapsulation frame-relay
LAB:
Delhi<config>#int s0
Delhi<config-if>#frame-relay map ip 200.0.0.2 100 broadcast
Delhi<config-if>#frame-relay map ip 200.0.0.3 101 broadcast
Bombay<config>#int s0
Bombay<config-if>#frame-relay map ip 200.0.0.1 200 broadcast
Bombay<config-if>#frame-relay map ip 200.0.0.3 201 broadcast
Frswitch<config>#int s0
Frswitch<config-if>#frame-relay map ip 200.0.0.1 300 broadcast
Frswitch<config-if>#frame-relay map ip 200.0.0.2 301 broadcast
Syntax : ping
trace
LAB:
Delhi#ping 60.0.0.1
Delhi#ping 70.0.0.1
Bombay#ping 70.0.0.1
Bombay#ping 50.0.01
Frswitch#ping 50.0.0.1
Frswitch#ping 60.0.0.1
Note : Check the interfaces by giving "show ip int brief" command. If both
the interfaces bri0 and s0 are up then load sharing will occur when you ping
bombay's network from delhi and vice versa. To stop that happenign shut dowb any
one interface while pinging like shut down bri interface and then kping through
serial interface.