Monday, May 23, 2016

CCNA(5th class)

Router:

  • It is a layer-3 device.
  • Stops broadcast by default/ doesnot forward broadcast across itself.
  • Internetwork communication
  • Path Selection
  • Each port of a router is a broadcast domain.
  • One port of a router= 1 broadcast domain= 1 network


Router components:

  • ROM

Stores bootstrap and basic operating system software

  • RAM

Volatile in nature
Loses content when power is down
Stores  running configuration


  • NVRAM

Non volatile RAM
Stores start up configuration


  • Flash

Stores CISCO IOS
Can store multiple version of IOS


  • Console

RS-232 protocol  is used to connect through console
Doesnot require IP for communication
Is used for initial configuration or first time configuration of Cisco device.


  • Interfaces

Supports multiple interface type
E.g. Ethernet, Fast Ethernet, GigaBit Ethernet, field fibre(GBIC/ SFP), serial interface(WIC-1T, WIC-2T, NM-4A/S, etc.)

Boot process of a router

  1. POST(Power On Self Test) Execute diagnostic from ROM on several hardware component
  2. Execute bootstrap after POST is successful
  3. Loads IOS from Flash. (if not , fall down from TFTP)
  4. Looks for valid configuration in NVRAM(NVRAM-> TFTP-> Console)
  5. If configuration is present, loads the configuration. If not, enters into set-up mode.


CISCO IOS mode
Hierarchial instruction each mode is to accomplish particular task
Each mode has specific set of commands,

1. User Exec mode
View only mode
Limited command
Syntax: Router >

2. Privilege Exec mode
File manipulation
Debugging and testing
Certain configuration command
Syntax: Router #

3. Global configuration mode
Entry to other specific configuration mode
Changes made in this mode affects the router globally
Syntax: Router (config) #

Interface configuration mode
Command related configure and interface
Router(config-if) #

Line configuration mode
Commands related to console and vty terminal
Router(config-line) #

Router>  --User exec mode
Router> enable
Router#--Privilege exec mode
Router# configure terminal
Router (config) # ---- Global configuration mode

Setting host name
Router (config) # hostname RTR
RTR (config) #

Setting Clock
RTR (config) # exit
RTR # clock set hh:mm:ss <Day of month> <Month of the year> <Year>

Putting IP address on interface
RTR (config) # interface f0/0
RTR (config) # description ***Connected to LAN***
RTR (config) # IP address 192.168.1.1    255.255.255.0
RTR (config) #no shut down
RTR (config) # exit

Securing console
RTR (config) # line console 0
RTR (config-line) # password console 1
RTR (config-line) # login
RTR (config-line) # logging synchronous
RTR (config-line) # exit

Securing remote access
RTR (config) # line vty 0 4
RTR (config) # password telnet1
RTR (config) # login
RTR (config) # logging synchronous
RTR (config) # exit

Securing privilege exec mode
RTR (config) # enable password laba_ccna
OR
RTR (config) # enable secret laba_ccna1

Encrypting all future and current passwords
RTR (config) # service password- encryption

Banner
RTR (config) # banner motd # Unauthorized access is prohibited #

Enabling timestamp on debug and log message
RTR (config) # service timestamp debug date time msec
RTR (config) #service timestamp log date time msec

Saving configuration
RTR # copy running-config startup
OR
RTR # copy run start
OR
RTR # write memory
Erasing the configuration
RTR # write erase
RTR # reload -> reloading the router

Verify
RTR # show running config
RTR # show startup config
RTR # show clock
RTR # show flash
RTR # show version
RTR # show IP interface brief
RTR # show interface [interface number]

CDP(Cisco Discovery Protocol)

  • It is a Cisco proprietary protocol
  • Works at layer-2
  • Used to find directly connected cisco devices
  • Helpful in documenting network diagram

Verify:
RTR # show CDP neighbours
OR
RTR # show CDP neighbours detail

Tuesday, May 17, 2016

CCNA(4th class)

TCP/IP model
è Model developed by DoD(Department of Defence).
è OSI model was not developed for TCP and IP  but this model solely focus on TCP/IP.
è Basically functions are same but layers are less.


Carrier Sense Multiple Access/Collision Detection(CSMA/CD)
è Listens to one for any signals.
è Jam signal is sent on collision.
è Now, sender invokes random time collapsing
è At the end of random timer, they again start listening from the wire for any data.
è If present, donot send if not start sending.

Cabling Standard
TIA/A
TIA/B
White green
White orange
Green
Orange
White orange
White green
Blue
Blue
White blue
White blue
Orange
Green
White brown
White brown
Brown
Brown

Straight Cable
è Used to connect dissimilar devices.
è Example: PC-switch, Router- switch, etc.
è A-A                        B-B
Cross Cable
è Used to connect similar devices
è Example: PC-PC, Switch-Switch, Router-Router, PC-router, etc.
è A-B                         B-A
Note:
Port with auto MDIX feature automatically detects the required cable connection type and configure the connection appropriately.

Communication:

1.       Half duplex
è Either send or receive at a time
è Example:  Walky Talky

2.       Full duplex
è Both send and receive at the same time
è Example: Telephone

Broadcast
è One to many (all) communication
è Example: ARP broadcast
Multicast
è One to group communication
è Example:  routing protocol
Unicast
è One to one communication


CISCO 3 Hierarchial model

Access layer
Where end device ends
Distribution layer
Responsible for routing, filtering, security, network policy, etc.
Core(backbone) layer
Responsible for transporting large amount of data forward the traffic as fast as possible

Collapse layer
è A layer where core and distribution layers functions together.

IPv4 addressing
-          It is a 32- bit addressing scheme represented in dotted decimal format
-          Consists of 4 octets each separated by periods(.)
-          Example: 192. 168.1.19
Classes of IP
Class
First octet
Default subnet mask
N/H ratio
A
1-126
255.0.0.0
N.H.H.H
B
128-191
255.255.0.0
N.N.H.H
C
192-223
255.255.255.0
N.N.N.H
D
224-239
Multicast purpose

E
240-255
Reserved for experimental  purpose

Note:
0.x.x.x is not used and 127.x.x.x is reserved for loopback purpose(virtual interface).

10.0.0.0 to 10.255.255.255
172.16.0.0 to 172.31.255.255                                        private IP range(RFC 1918)

192.168.0.0 to 192.168.255.255

CCNA 3rd class

Some protocols and their uses:
è HTTP
è HyperText Tranfer Protocol
è Provides web access
è Uses TCP port no. 80

è HTTPs
è HyperText Transfer Protocol secure
è Provides secure web access
è Uses TCP port no. 443

è FTP
è File Transfer Protocol
è Used to retieve files.
è Uses TCP port no. 20 for data connection and 21 for control connection.

è SMTP
è Simple Mail Transfer Protocol
è Used to send mail
è Uses TCP port no. 25

è POP3
è Post Office Protocol
è Used to receive mail
è Uses TCP port no. 110

è SNMP
è Simple Network Management Protocol
è It is a watchdog
è Uses TCP port no. 163

è DHCP
è Automatic IP provider
è Provides IP address, Subnet mask, default gateway and DNS server information to users
è Uses UDP port no. 67 and 68

è DNS
è Main purpose is IP to name resolution and vice- versa.
è Uses TCP/UDP port no. 53

è TFTP
è Trivial File Transfer Protocol
è Less features
è No authentication
è Mostly used for IOS(Internetwork Operation System) backup and restore.
è Uses UDP port no. 69

è Telnet
è Used for remote access
è Uses TCP port no. 23

è SSH
è Secure Shell
è Uses TCP port no. 22

è ARP/RARP
è Address Resolution Protocol/ Reverse ARP
è Maps MAC address to an IP addess and vice versa.



CCNA(2nd class)

OSI Model

è It is the model defined by ISO.
è Main idea is to avoid proprietary system.
è Provides framework for creating and implementing network devices standards, etc.
è It is the conceptual blueprint of how communication should take place.
è It is the structured approach for troubleshooting network problems.
è Model itself is divided into 7 layers:

Application
è Provides user interface
     Presentation
è Presents data
è Handles processing such as encryption
       Session
è Keeps different applications` data separate
Transport
è Provides reliable or unreliable delivery
è Performs error correction before retransmit
Network
è Provides logical addressing which routers use for path determination
Data Link
è Combines packets into bytes and bytes into frames
è Provides access to media using MAC address
è Performs error detection not correction
        Physical
è Moves bits between devices
è Specific voltage, wire speed and pin out of cables.

è Application layer, Presentation layer and Session layer is called upper layers
è Other remaining layers are called lower layers.

1.       Physical Layer
è It defines media properties, physical data rates, etc.

2.       Data Link layer
è It defines format for transmission.
è Example: Ethernet, PPP(Point to Point Protocol), frame relay, etc.
è Physical addressing is done in this layer. (MAC address)
è MAC address is a 48- bit addressing scheme.
                24 bits + 24 bits
The first 24 bits is called OUI(Organization Unique Identifier)

3.       Network layer
è It provides connectivity, path selection.
è Routing function and logical addressing (IPv4, IPv6) is done.
è Router is a layer 3 device.

4.       Transport layer
è Responsible for end to end communication and reliability.
è TCP and UDP works here.
è Breaks data into segments.
è TCP: Connection oriented
è UDP: Best effort delivery, real time communication

5.       Session layer
è Keeps session separate or manage session between end hosts.

6.       Presentation layer
è Responsible for data formatting and presenting data in correct format.
è Example: JPEG, Gif, etc.

7.       Application layer
è Ends user interacts here.
è Protocols working at this layer are HTTP, HTTPs, Telnet, SMTP, POP3, SNMP, FTP, TFTP, etc.


è In transport layer,
Transport header (TH)is added to the data coming from session layer. This is called segment.
TH includes source port and destination port.
è In Network layer,
Network header is added to the segment coming from transport layer. This is called Packet.
Network header includes source IP and destination IP.

è In Data link layer,
Source of MAC and destination MAC is added to the output of the network layer. This is called frame.

PDU(Protocol Data Unit) includes segment, packet and frame.

Encapsulation is the process of wrapping data with header.

Port number
è It ranges from 0 to 65535
è 0 to 1023 are well known ports.
è 1024 to 49151 are registered port.
è 49152 to 65535 are dynamic port(random port).

The differences between TCP and UDP are shown below:
TCP
UDP
è Sequenced
è Unsequenced
è Connection- oriented
è Connectionless
è Acknowledgement
è No acknowledgement
è Reliable
è Unreliable