Top Banner

of 27

Ccna Commands and Lab

May 30, 2018

Download

Documents

nanash123
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/14/2019 Ccna Commands and Lab

    1/27

    # "Write erase"and then "Reload".would you like to save initial configuration dialog [ Y/N]:nowould you like to terminate auto-install [Yes]:press return to get started :

    Router > enableRouter # configure terminal,

    Router # hostname delhi,delhi #^Zdelhi # show versiondelhi # show running-configuredelhi # config t

    # banner motd #Enter the text message. End with character #WARNING !!! DO NOT ENTER !!! #

    delhi < config># ^zdelhi # exitPress return to enter [ENTER]"Now you will find the banner appearing on the console."

    delhi >endelhi # config tdelhi < config># line console 0

    " __ line # login" #Password cisco" # exit

    # enable password cisco" #line vty 0 4" __line > # password topgun

    delhi#exitdelhi#exitdelhi exitPress return to enter[Enter]

    WARNING!!! DO NOT ENTER!!!User verificationPassword: ciscodelhi # ip address 172.16.2. X 255.255.255

    " # no shutdown# description " CCNA Department"

    #^zdelhi # show ip int briefdelhi # config tdelhi < config># line console 0

    " ---line> # exec-timeout 3 0# logging synchronous

    # ^zdelhi#Now open a new command prompt in your PC and telnet into delhi router directly b

  • 8/14/2019 Ccna Commands and Lab

    2/27

    y knowing the "Vty'' password.

    >telnet 172.16.2. XUser verificationpassword: topgundelhi> enpassword : topgun

    delhi #Now to load the configurations into NVRAM and have a backup into the TFTP server.delhi # show startup- configYou 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.3delhi # ping 172.16.2.32If it pings, then load config into it. For that

    delhi # copy running - config tftp[ Remote Hostname or IP add] : 172.16.2.32destination file name [ delhi - config]: [ ENTER]!!! files copied.delhi # write eraseerasing nvram filesystem .......................[ confirm]: [ENTER][OK]delhi # reload:::After it boots, againRouter> en

    " # config t

    # 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.32source filename : delhi-configdestination filename [running-config] :Pressdelhi# ^ < Ctrl+Shift+ 6> Xaccess # 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

  • 8/14/2019 Ccna Commands and Lab

    3/27

    on 1900 on 290010 CCNA 1,2 1,220 CCNP 3,4 3,430 CCIE 5,6 10,11

    Vtp domain- topgunVtp password -- cisco

    Task 1 : setup the server switch ( catalyst 1900).

    Step 1: Erase the nvramand then reload the switch.

    Syntax : delete nvram

    LAB:Cat 1900# delete nvramAfter it gers erased, it will ask menu based questions and then select [

    K] to go to CLI.

    Step 2: Setup the hostname for the catalyst.

    Syntax: hostname

    LAB:>enable# config t# hostname Cat 1900

    Step 3: Check out whether some vlans are already existing in the switch.

    Syntax : show vlan

    LAB :Cat 1900#show vlanIf some vlan already exist then you need to erase that. For that check w

    hether your switch is in server mode or not.

    Syntax: show vtp

    LAB:Cat 1900#show vtpIf its in server mode then shift to next step else:

    Syntax: vtp

    LAB:Cat1900(xonfig)#vtp server

    Step 4: clear the existing vlans

    Syntax: no vlan

    LAB:Cat1900#no vlanHere number = vlan id of the existing vlan.

    Repeat this, till all the vlans get erased other than the factory default vlanland default vlans for token ring and fddi.

  • 8/14/2019 Ccna Commands and Lab

    4/27

    Step 5: Check whether the vlans have got erased or not.

    Syntax: show vlan

    LAB:Cat 1900#show vlan

    Step 6: Set up the vtp domain name and password for it.

    Syntax: Vtp,domain-domain name>Vtp password-password>

    LAB:Cat 1900#vtpdomain topgunCat1900#vtp password cisco

    Step 7: Create the new vlans.

    Syntax: vlandname

    LAB: Cat1900#vlan 10 name ccnaCat1900#vlan 20 name ccnpCat1900#vlan 30 name ccieCat1900#exit

    Step 8: Check the newly created vlans.

    Syntax: show vlan

    LAB:Cat1900#show vlan

    Step 9: Set up the vlan membership in each of those required ports.

    Syntax: interface/vlan-membership static

    LAB:Cat1900#int e0/1Cat1900#vlan-membership static 10Cat1900#int e0/2Cat1900#vlan-membership static 10Cat1900#int e0/3Cat1900#vlan-membership static 20Cat1900# int e0/4Cat1900#vlan-membership static 20Cat1900# int e0/5Cat1900#vlan-membership static 30Cat1900# int e0/6Cat1900vlan-membership static 30

    Step 10: Setup the trunk links

    Syntax: interface /trunk

    LAB:

    Cat1900#int f0/26Cat1900#trunk onCat1900#int f0/27

  • 8/14/2019 Ccna Commands and Lab

    5/27

    Cat1900#trunk on

    TASK 2: Setup the client switch.(Cat 2900)

    Step 1 : write erase and reload the client switch

    LAB:

    CAt2900#write eraseThen confirm the erasing of the nvram and then:

    Cat 2900#reload

    Step 2: Set up the hostname for the switch.

    Syntax: hostname

    LAB:Switch>enableSwitch#config tSwitch#hostname Cat 2900

    Cat 2900#

    Step 3: Check if some vlans are already existing.

    Syntax: show vlan

    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.

    Cat2900#show vtp statusIf not in the server mode then :

    Syntax: vlan database

    LAB:Cat2900#vlan database

    Syntax: #apply

    LAB:Cat2900#vtp server

    Syntax : #apply

    LAB:Cat2900#apply

    Now remove all those vlansCat2900#no vlan

    Here vlan-id is the number which you see when "show vlan "is done.

    Now check again if those vlans are erased or not.

    Cat2900#show vlan

    Step 4: set up the vtp domain and the vtp password.

    Syntax: vtp domain password

    LAB:

  • 8/14/2019 Ccna Commands and Lab

    6/27

    Cat2900#vlan databaseCat2900#vtp domain topgun password ciscoCat2900#applys

    Step 5: now change the vtp mode to client mode.

    Syntax: vtp

    LAB:Cat2900#vtp clientCat2900#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.

    Syntax: switchport trunk encapsulation switchport mode trunk

    LAB:

    Cat2900#int f0/23Cat2900#switchport trunk encapsulation islCat2900#switchport mode trunkCat2900#int f0/24Cat2900#switchport trunk encapasulation islCat29003switchport mode trunk

    Step 7: set ip the trunklink physical connectivity between the 2 switches with across-over cable

    Step 8: Check whether the switch got the vlan information from lthe server.

    LAB:

    Cat2900#show vlanYou must be able to see the entire vlan information in the client switch Cat2900.

    Step 9: Assign the ports to the vlans,

    Syntax: interface/switchport access vlan

    LAB:Cat2900#int f0/1Cat2900#switchport access vlan 10Cat2900#int f0/2Cat2900#switchport access vlan 10Cat2900#int f0/3Cat2900#switchport access vlan 20Cat2900#int f0/4Cat2900#switchport access vlan 20Cat2900#int f0/10Cat2900#switchport access vlan 30Cat2900#int f0/11Cat2900#switchport access vlan 30

    Step 10: After configuring this connesct pc 1 and pc 2 to port 1 and 3 of Cat19

    00 and pc 3 to port 1 of Cat2900. Pc1 will ping pc 3 as they belong to same vlanto but pc 2 will not ping pc 3

  • 8/14/2019 Ccna Commands and Lab

    7/27

  • 8/14/2019 Ccna Commands and Lab

    8/27

    Bbone#int e0Bbone#ipx network 20b encapsulation novell-etherBboneno shutdownBbone#int s0Bbone#ipx network 30c encapsulation hdlcBbone#no shutdown

    Step 1 : Enable ipx routing in all the routers of the network.

    Syntax : ipx routing

    LAB :Calcutta#ipx routingBombay#ipx routingBbone#ipx routing

    Step 2 : Set up the network and the encapsulation type ateach interface of therouters.

    Syntax : ipx network [node][encapsulation][]

    LAB:

    Bombay#int e0Bombay#ipx network 10a encapsulation arpaBombay#no shutdownBombay#int s0Bombayipx network 30c encapsulation hdlcBombay#no shut

    Calcutta#int e0/0.1

    Calcutta#ipx network 10a encapsulation arpaCalcutta#int e0/0.2Calcutta#ipx network 20b encapsulation novell-etherCalcutta#exitCalcutta#int e0Calcutta#no shutdown

    Bbone#int e0Bbone#ipx network 20b encapsulation novell-etherBbone#no shutdownBbone#ipx network 30c encapsulation hdlcBbone#no shutdown

    Step 3 : Check the interface are up or not and thereby check the routing table.

    Syntax : show interface briefshow route

    LAB :Calcutta#show ipx interface briefCalcutta#show ipx route

    Bombay#show ipx interface briefBombay#show ipx route

    Bbone#show ipx interface brief

    Bbone#show ipx route

    Step 4 : To generate SAP packets in the network.

  • 8/14/2019 Ccna Commands and Lab

    9/27

    Syntax : ipx sap

    LAB:Bbone#ipx sap 4 File 1 10a 001a.001b.001c 33 4Bbone#ipx sap 7 Print 1 20b 002a.002b.002c 34 5

    Step 5 : To check the sap table .

    Syntax : show ipx servers

    LAB :Bbone#show ipx servers

    Calcutta#show ipx servers

    Bombay #show ipx servers

    Step 6 : To block some sap entries in Bombay router with sap filters. For thatcreate the sap filter in the router by implementing an access-list and then apply than in the required interface.

    Syntax : access-list{permit/deny}

    int ipx

    LAB:Bombay#access-list 1001 deny - 1 4

    [Note : here - 1 implies any network]

    Bombay#int e0Bombay#ipx input-sap-filter 1001Bombay#int s0Bombay#ipx input-sap-filter 1001

    Step 7 : Check the new sap table in the router Bbone

    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.

    Bbone#clear ipx sap*Then again check the sap table, You should not find any entry of service

    type 4.Bbone#show ipx servers.

    ACCESS CONTROL LISTSTOPOLOGY:

  • 8/14/2019 Ccna Commands and Lab

    10/27

    OBJECTIVE:

    Implementing standard and extended access-list to secure your network.

    EXTRA HARDWARE ATTACHMENTS : 4 PCs.

    2 attached to DELHI : 1st PC : Name - AIP address -- 10.0.0.5 /24Default gateway -- 10.0.0.1 /24

    2nd PC : Name - BIPaddress -- 10.0.0.10 /24Default gateway -- 10.0.0.1 /24

    2 attached to BOMBAY : 1st PC: Name --C

    IP address --20.0.0.5 /24Default gateway -- 20.0.0.1 /242nd PC: Name --D

    IP address -- 20.0.0.10 /24Default gateway -- 20.0.0.1 /24

    TASK 1 : Block A from sending any packet out of DELHI.

    Step 1 >Create a standard access-list to deny source A

    Syntax : access -list {permit/deny}

    LAB:

    Delhi#access-list 1 deny 10.0.0.5 0.0.0.0

    Delhi#access-list 1 permit any

    Step 2> Apply the access-list to the serial interface in the outbound direction.

    Syntax : interface ip access-group

    LAB:Delhi#int s0Delhi#ip access-group 1 out

    Step 3>Testing and verification by pinging any interface outside Delhi network.

    LAB:Delhi#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

    Syntax : access-list {permit/deny}

  • 8/14/2019 Ccna Commands and Lab

    11/27

    LAB:Bombay#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.

    Syntax: line vty 0

    loginpassword< password>enable password

    LAB:Bombay#line vty 0.4BombayloginBombay#password ciscoBombay#exitBombay#enable password topgun

    Step 3> Apply the access list to the vty lines.

    Syntax: access-class

    LAB:Bombay #line vty 0 4Bombay #access class in

    Step 4> Test by tring to telnet from any pc of any network other than 20.0.0.0

    Syntax: telnet

    LAB:From pc A or B do:

    telnet 201.0.0.2

    TASK 3: Create an extended access-list to block icmp packets from B to D.

    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.

    Syntax: access-list{permit/deny}

    LAB:Delhi#access-list 100 deny icmp 10.0.0.0. 0.0.0.0 20.0.0.0. ec

    hoDelhi#access-list 100 deny icmp 10.0.0.0. 0.0.0.0 20.0.0.0. e

    cho-replyDelhi#access-list 100 permit ip any any

    Step 2> Apply this access-list to the Ethernet interface of Delhi.

    Syntax: ip access-group s

    LAB:Delhi#int e0Delhi#ip access-group 100 in

    Step 3> Test and verify.

    Syntax: Ping

  • 8/14/2019 Ccna Commands and Lab

    12/27

    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.

    Syntax : access-list < number (100-199)>{permit/deny}< source address>

    LAB :

    Delhi#access-list 101 deny tcp 10.0.0.10.0.0.0.0 20.0.0.10 0.0.0.0 eq21

    Delhi#access-list 101 deny tcp 10.0.0.10.0.0.0.0 20.0.0.10 0.0.0.0 eq

    20 Delhi#access-list 101 permit ip any any

    Step 2>Repeat step2 of TASk 3.

    LAB :

    Delhi#int e0Delhi#ip access-group 101 in

    Step 3>Test and verify.

    LAB :

    From the command prompt of PC B:ftp 20.0.0.10

    ......................................................................X.........

    ..............................................................

    ROUTING --Static, Default, RIP & IGRP

    TOPOLOGY :

    OBJECTIVE :

    To setup the routing in between routers remotely connected to each otherby enabling static or dynamic routing protocols. (Static, default, RIP, IGRP).

    CONFIGURATION PARAMETERS:

    DELHI Router : Ethernet interface - 10.0.0.1 /24

  • 8/14/2019 Ccna Commands and Lab

    13/27

    Serial 0 interface -- 200.0.0.5 /30BBONE Router : Ethernet interface --30.0.0.1 /24

    Serial 1 interface -- 200.0.0.6 /30Serial 0 interface -- 201.0.0.1 /30

    BOMBAY Router : Ethernet interface --20.0.0.1 /24Serial 0 interface -- 201.0.0.2 /30

    BBONE : Serial 0 and Serial 1 are DCE cable ends.

    Autonomous system number for IGRP -- 100

    TASK 1 : General router setup.

    Step 1 > Setting the routers with their hostnames.

    Syntax : hostname < name>

    LAB :Router#hostname DelhiRouter#hostname Bombay

    Router#hostname Bbone

    Step 2 > Giving ip address to all the required interfaces and bring them up.

    Syntax : ip address Syntax : no shutdown

    LAB :

    Delhi#interface Ethernet 0Delhi#ip address 10.0.0.1 255.255.255.0Delhi#no shutDelhi#interface s0

    Delhi#ip address 200.0.0.5 255.255.255.252Delhi#no shut

    Bombay#int e0Bombay#ip address 20.0.0.1 255.255.255.0Bombay#no shutBombay#int s0Bombay#ip address 201.0.0.2 255.255.255.252Bombay#no shut

    Bbone#int e0Bbone#ip address 172.16/20 255.255.255.0Bbone#no shutBbone#int s0Bbone#ip address 201.0.0.1 255.255.255.252Bbone#no shutBbone# int s1Bbone#ip address 200.0.0.6 255.255.255.252Bbone#no shut

    Step 3>Assign clock rate to the DCE interfaces.

    Syntax : clock rate

    LAB :

    Bbone#int s0Bbone#clock rate 64000Bbone#int s1

  • 8/14/2019 Ccna Commands and Lab

    14/27

    TASK 2 :Verify all the interfaces of the routers are administratively up or not.

    Step 1> Check all the interface status.

    Syntax : show ip interface brief.

    LAB :

    Bbone# show ip interface brief

    Bombay#show ip interface brief

    Delhi# show ip interface brief

    TASK 3 : Enable static routing in all the routers.

    Step 1> Check the routing table to see the directly connected networks.

    Syntax : show ip route

    LAB:Bbone#show ip route

    Bombay# show ip route

    Delhi# show ip route

    Step 2> Manually enter routers to the unknown networks.

    Syntax : ip route < subnet mask >

    LAB:

    Bombay# ip route 10.0.0.0. 255.255.255.0 201.0.0.1Bombay# ip route 200.0.0.0.255.255.255.252.201.0.0.1Bombay# ip route 30.0.0.0. 255.255.255. 201.0.0.1

    Delhi# ip route 20.0.0.0 255.255.255. 200.0.0.6Delhi# ip route 201.0.0.0 255.255.255.255 200.0.0.6Delhi# ip route 30.0.0.0 255.255.255. 200.0.0.6

    Step 3 > Recheck the new routing table by repeating step 1 of TASK 3.

    Step 4> Test thhe Connectivity to the remote interfaces.

    Syntax : Ping < host in address >

    LAB :

    Delhi #ping 172.16.2.0.Delhi #ping 20.0.0.1

    Bbone # ping 10.0.0.1Bbone # ping 20.0.0.1

    Bombay # ping 10.0.0.1Bombay # ping 172.16.2.0

  • 8/14/2019 Ccna Commands and Lab

    15/27

    TASK 4: Enable default routing for the stub networks.

    Step1 > Remove the static route entries from the router DELHI and BOMBAY as theyare stubnetworks.

    Syntax:no ip route < destination network ip address > < subnet mask>

    LAB:

    Delhi# no ip route 20.0.0.0 255.255.255.0 200.0.0.6Delhi# no ip route 201.0.0.0 255.255.255.252 200.0.0.6Delhi# no ip route 30.0.0.0 255.255.255.0 200.0.0.6

    Bombay# no ip route 10.0.0.0 255.255.255.0 201.0.0.1

    Bombay# no ip route 200.0.0.0 255.255.255.252 201.0.0.1Bombay# no ip route 30.0.0.0 255.255.255.0 201.0.0.1

    Step 2> Enable default routing in the rounters belonging tgo stub networks (Delhi and Bombay ),

    Syntax: ip route 0.0.0.0.0.0.0.0 < next hop in address>

    LAB:

    Delhi # ip rounte 0.0.0.0 0.0.0.0 200.0.0.6Bombay # ip route 0.0.0.0 0.0.0.0 201.0.0.1

    Bbone route should not be erased it should have route.

    Step 3> Repeat step3 and step4 of TASK 3.

    TASK 5: Enable RIP as the dynamic routing.

    Step 1 > Remove all the existing static and dyanamic routes from the routers inDelhi and Bombay.

    Syntax : no ip rounte 0.0.0.0.0.0.0.0

    LAB:

    Delhi # no ip route 0.0.0.0 0.0.0.0 200.0.0.6

    Bombay# no ip route 0.0.0.0 0.0.0.0 201.0.0.1

    In Bbone:

    Syntax : no ip route < subnet mask >

    LAB:

    Bbone #no ip route 20.0.0.0 255.255.255.0 201.0.0.2Bbone #no ip route 10.0.0.0 255.255.255.0 200.0.0.5

  • 8/14/2019 Ccna Commands and Lab

    16/27

    Step 2 > Enable rip in all the rounters.

    Syntax : rounter rip

    LAB:Delhi#router rip

    Bombay # router ripBbone# router rip

    Step 3> Advertise the directly connected networks.

    Syntax : network < network ip address>

    LAB :

    Delhi < config-router>#network 10.0.0.0Delhi #network 200.0.0.0

    Bombay< config-router>#network 10.0.0.0Bombay< config-router>#network 201.0.0.0

    Bbone < config-router>#network 30.0.0.0Bbone < config-router>#network 200.0.0.0Bbone < config-router>#network 201.0.0.0

    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.

    Bbone#Bbone#Bbone#Sh ip protocaldebug igrp transactions. [ Display IGRP trans table]debug igrp eventsdebug ip igrp events.debug ip igrp trans.

    router rip C Rip configurationevents and trans.flushed after?

    LAB: ISDN AND FRAME-RELAY

    TOPOLOGY:

  • 8/14/2019 Ccna Commands and Lab

    17/27

    OBJECTIVE : To setup your network for isdn connection as well as for the frame-relay.

    CONFIGURATION PARAMETERS:

    ISDN switch type - basic dmx 100

    DELHI Router : Int e0 - 50.0.0.1 /24Int s0 - 200.0.0.1 /24Int bri0 - 100.0.0.1 /24SPID number 5551000001For 200.0.0.2 DLCI --100For 200.0.0.3 DLCI --100

    BOMBAY Router: Int e0 - 60.0.0.1 /24Int s0 - 200.0.0.2 /24

    Int bri0 - 100.0.0.2 /24SPID number: 5552000001For 200.0.0.1 DLCI --200For 200.0.0.3F DLCI --201

    FRSWITCH Router: Int e0 --70.0.0.1 /24Int s0 -- 200.0.0.2 /24For 200.0.0.1 DLCI=300For 200.0.0.2 DLCI= 301

    ISDN LAB:

    Step 1 : Set up all the interfaces of all the routers and check whether they areup or not.

    LAB:

    Delhi#int e0Delhi#ip address 50.0.0.1.255.255.255.0Delhi#no shutDelhi#int soDelhi#ip address 200.0.0.1.255.255.255.0Delhi#no shutDelhi#int bri 0Delhi#ip address 100.0.0.1.255.255.255.0Delhi#no shut

    Bombay#int e0Bombay#ip address 60.0.0.1.255.255.255.0Bombay#no shutBombay#int s0Bombay#ip address 200.0.0.2.255.255.255.0Bombay#no shutBombay#int bri 0Bombay#ip address 100.0.0.2.255.255.255.0Bombay#no shut

    Frswitch#int e0

    Frswitch#ip address 70.0.0.1.255.255.255.0Frswitch#no shutFrswitch#int s0

  • 8/14/2019 Ccna Commands and Lab

    18/27

    Frswitch#ip address 200.0.0.3.255.255.255.0Frswitch#no shut

    Step 2 : Setup routing to all the networks.

    Syntax : ip route < subnet mask>

    LAB:

    Delhi#ip route 60.0.0.0 255.255.255.0 100.0.0.2Delhi#ip route 60.0.0.0 255.255.255.0 200.0.0.2Delhi#ip route 70.0.0.0 255.255.255.0 200.0.0.3

    Bombay#ip route 50.0.0.0 255.255.255.0 100.0.0.1Bombay#ip route 50.0.0.0 255.255.255.0 200.0.0.1Bombay#ip route 60.0.0.0 255.255.255.0 100.0.0.3

    Frswitch#ip route 50.0.0.0 255.255.255.0 200.0.0.1

    Frswitch#ip route 60.0.0.0 255.255.255.0 200.0.0.2

    Step 3 : Configure the isdn switch type and enable encapsulation as ppp in thebri interface and authentication type as chap.

    Syntax : isdn switch-type basic-dms100encapsulation pppppp authentication chap

    LAB :

    Delhi#isdn switch-type basic-dms 100Delhi#int bri0

    Delhi#encapsulation pppDelhi#ppp authentication chap

    Bombay#isdn switch-type basic-dms 100Bombay#int bri0Bombay#encapsulation pppBombay#ppp authentication chap

    Step 4 : set up the username and password for chap authentication

    Syntax : username password

    Note: Username and password is case sensitive Name is the hostname of the router on the other side.

    LAB:Delhi#username Bombay password cisco

    Delhi#username Delhi password cisco

    Step 5: Set up a dialer-list to describe the interesting traffic Apply that in the bri interface.

    Syntax : dialer-list protocol{permit/deny}[list] [access-listnumber]

    int bri 0dialer-group

  • 8/14/2019 Ccna Commands and Lab

    19/27

    LAB:

    Delhi#dialer-list 1 protocol ip permitDelhi#int bri0Delhi#dialer-group 1

    Bombay#dialer-list 1 protocol ip permitBombay#int bri0Bombay#dialer-group 1

    Step 6: Set up a dialer information by declaring your router's spid number and setting a dialer map.

    Syntax: isdn spid1 dialer map ip name

    LAB:

    Delhi#int bri0Delhi#ISDN SPID 1 5551000001Delhi#dialer map ip 100.0.0.2 name Bombay 5552000001Delhi#no shut

    Bombay#int bri0Bombay#ISDN SPID 1 5552000001Bombay#dialer map ip 100.0.0.1 name Bombay 5551000001Bombay#no shut

    Step 7: Check the isdn connection is trough or not.

    Syntax: ping

    LAB:

    Delhi#ping 100.0.0.2Bombay#ping 100.0.0.1

    FRAME-RELAY LAB:

    Step 1 : Enable encapsulation as frame-relay in all the serial interfaces.

    Syntax: encapsulation frame-relay

    LAB:

    Delhi#int s0Delhi#encapsulation frame-relay

    Bombay#int s0Bombay#encapsulation frame-relay

    Step 2 : Set up the frame-relay maps.

    Syntax: frame-relay map ip

  • 8/14/2019 Ccna Commands and Lab

    20/27

    LAB:

    Delhi#int s0Delhi#frame-relay map ip 200.0.0.2 100 broadcastDelhi#frame-relay map ip 200.0.0.3 101 broadcast

    Bombay#int s0Bombay#frame-relay map ip 200.0.0.1 200 broadcastBombay#frame-relay map ip 200.0.0.3 201 broadcast

    Frswitch#int s0Frswitch#frame-relay map ip 200.0.0.1 300 broadcastFrswitch#frame-relay map ip 200.0.0.2 301 broadcast

    Step 3 : Check the connectivity.

    Syntax : pingtrace

    LAB:

    Delhi#ping 60.0.0.1Delhi#ping 70.0.0.1

    Bombay#ping 70.0.0.1Bombay#ping 50.0.01

    Frswitch#ping 50.0.0.1Frswitch#ping 60.0.0.1

    Note : Check the interfaces by giving "show ip int brief" command. If both theinterfaces 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.

  • 8/14/2019 Ccna Commands and Lab

    21/27

  • 8/14/2019 Ccna Commands and Lab

    22/27

  • 8/14/2019 Ccna Commands and Lab

    23/27

  • 8/14/2019 Ccna Commands and Lab

    24/27

  • 8/14/2019 Ccna Commands and Lab

    25/27

  • 8/14/2019 Ccna Commands and Lab

    26/27

  • 8/14/2019 Ccna Commands and Lab

    27/27