Saturday 25 July 2015

How To configure Cisco Router as a DHCP server


To configure Cisco Router as a DHCP server
DHCP (Dynamic Host Configuration Protocol) is a protocol and service use for dynamic IP addressing. It can assign IP address on the temporary basis, by default for 8 days in wired network. DHCP server will not only assign IP address but also re-allocate the computers and make the connectivity faster, it also make complete configuration of TCP/IP. DHCP is based on BOOTP (Boot Strap Protocol) and can be use on Internet.
IP is a protocol
IP Address is logical address or numerical identification of a computer
IP Addressing is the way to assign IP address.
We have different options for dynamic IP addressing like DHCP, VPN, ICS, Proxy Server, APIPA etc.
APIPA(Automatic Private IP Addressing)  It is default service in all OS , it is part of OS configuration or registry, it can be use within LAN, network ID is always 169.254.0.0 (or 169.254.0.1 to 169.254.255.254) and it is slow.























Types of memory in a router



Types of memory in a router

1.     ROM (Read Only Memory)   It is minimum requirement to boot a router, it have POST                                          program and also rommon mode.
2.     Flash It have IOS image in compress format. It can be upgrade and backup.
3.     NVRAM(Non-Volatile RAM)  It contain startup-config or permanent settings
4.     DRAM (Dynamic RAM)   It contain running-config or temporary settings of a router.





To configure router:











Then we get list of available interface of a router and we have to configure at least one interface during the customize settings. Give full name of interface (not case sensitive) as shown in figure:









Cisco Router IOS , Types of interface or ports or connectors in Router , Router has different prompt or different modes to work

Cisco  Router  IOS (Internetwork Operating System)

Router is networking device  use to connect the different network ID. It is WAN device and it can stop broadcasting. It generally has serial interface card or WIC (WAN Interface Card), memory,  Power button,  Console port (configuration port) and work on layer 3 (Network Layer) of OSI model.  Router has multiple broadcast domains and multiple collision domains.
Router has IOS which is network operating system and it is very friendly.
Some of the characteristics of IOS are :-

1. It can understand partial language
                   en <┘  (enable)
                   sh <┘  (show)
                   conf  <┘  (configure)
2. ?  for help

3. TAB key is use to complete any command.
          en + TAB  (enable)

4. Ctrl + C  (to abort)

5. Ctrl + Z  (^Z to save configuration in volatile memory or DRAM)
6. wr <┘  (Write Memory  is use to save configuration in non-volatile memory or NVRAM)

7. Ctrl + Shift +6   or  Ctrl  + Shift  + x  is Escape Sequence

Types of interface or ports or connectors in Router :-
1. Fixed interface   (Onboard)     Ethernet 1
2. Modular interface  (External card)     Ethernet 1/1

Router connector :-
1. Power 
2. Console port   (Router to computer or Hyperterminal)
3. Ethernet   (Router  to LAN )
NOTE:
Ethernet = 10Mbps,  FastEthernet=100Mbps,  GigaEthernet=1000Mbps

4. Serial or WIC  (Router to Router)
5. BRI or PRI     (Router to ISDN line)
6. AUX  (Router to MODEM)
7. AUI  (Router to transceiver or LAN)

Router has different prompt or different modes to work :-
1.  Usermode  or Console mode        R>   (R is hostname)
It is read only mode and use to check the basic configuration of router.

2. Privilege mode or Hash mode        R#
It is use to see and copy the router configuration.

3. Global Configuration mode       R(config)#
It is use to work on router or to change any configuration.  It has around 20 more modes like  Interface mode   R(config-if)#

NOTE: Router also have rommon mode which is maintenance mode of router.
          rommon 1>     or    >


Command  use for usermode and privilege mode :-
1.  show  ip  interface brief   <┘  (check interface type and IP address)
2.  show interface   <┘   
          or   show interface  serial 1  <┘   (check network prefix, bandwidth, IP address,                                                                                           encapsulation protocol)

3.  show controllers  <┘
                   or  show controllers  serial 1  <┘  (check serial cable)

4.  show version   <┘  (check router model, IOS version, config-register number etc.)
5.  show flash  <┘  (check  IOS image name)
6.  show  clock    <┘  (check time)
7.  ping   10.1.1.1   <┘  (check network connection)
8.  telnet   10.1.1.1   <┘  (create remote session)

Command use for privilege mode only :-
1. R# show running-config   <┘  (check DRAM or temporary settings or volatile memory)
2. R# show startup-config   <┘(check NVRAM or permanent settings or non-volatile memory)
3. R# wr  <┘  (Write Memory is use to save configuration in NVRAM)
4. R# reload   <┘  (to restart router)
5. R# copy   startup-config    running-config   <┘
                             (source)     (destination)

6. R# copy  running-config     startup-config     <┘     (   or R#wr  <┘)

NOTE:
We can use  " do " to run usermode and privilege mode commands on Global mode
R(config)# do   show version   <┘



To connect router :-
1.  Hyperterminal or console port
2. Telnet or SSH
3. Web browser or SDM

To start router :-
Open Hyperterminal or Download putty.exe for Hyperterminal
Router>  enable   <┘
Router# configure   terminal    <┘
Router(config)# exit   <┘

NOTE: By default hostname of router is  " Router "

To change hostname :-
R(config)# hostname  XYZ1  <┘

To assign IP address :-
R# show  ip  interface brief  <┘  (check interface type and IP address)
R# configure    terminal    <┘
R(config)# interface   fastethernet  0/0   <┘
R(config-if)# ip address    2.2.2.2     255.0.0.0    <┘
R(config-if)# no   shutdown    <┘(By default all interface are shutdown or disable in router)
                   # ^Z
NOTE: We cannot assign same network ID for different interface of router.



To set clock time :-
R# show   clock   <┘
R# clock   set   16:30:00   6  April   2014   <┘
                       (hh:mm:ss for UTC)


To set banner or message of the day :-
R(config)# banner   motd  %  Hello   %    <┘
                                      (where   %   is delimiting character)









Thursday 23 July 2015

Which isTerms use in networking


Terms use in networking :-

1. Broadcast             It means one to all
2. Multicast               It means one to many
3. Unicast                 It means one to one

4. Simplex                        It is the way of communication or a device which can send                                   signals in one direction only.  Eg:- Keyboard, Radio etc.

5. Half-Duplex          It means a device which can send and receive the signals in both                          directions but not at a time.  Eg:-       Walky-Talky

6. Full-Duplex           It means a device which can send and receive the signals in both                          directions simultaneously.  Eg:-    Phone

7. Attenuation           It is distance of a cable after which signals become weak.
                                Eg:- UTP cable has 100 meter attenuation .

8. Cross-Talk or EMI  (Electro-Magnetic Interference)
    It means interference or overlapping of signals in the bunch of cables.

9. IP Address            It is logical address of a computer.

10.  MAC Address (Media Access Control)  It is physical address of a computer. It is actual address of a computer or NIC address. It is 48 bit in the hexa-decimal format.
It is always broadcast based and can be use within LAN.

11. NetBIOS name            It is short name of a computer or small name of a network (Domain or Workgroup).  It can be use within a particular network  in LAN or WAN.
It is a flat name or without dot and it can be up to 15 characters long.

12. DNS Name (Domain Name System) or FQDN (Fully Qualified Domain Name)
        It is complete name of a computer or a domain or a website.   It can be use in      the multiple networks or Internet.  It can be use in LAN and WAN.  It has       hierarchical structure.  It is maximum up to 255 characters long.
        FQDN        =      Hostname         +      Domain name
        255                     63                            192


Benefits of networking :-
Sharing of data, Sharing of hardware resources, time saving, cost saving etc.


There are 5 types of services in any network :-
File, Print, Application, Web and Mail







Types of Network  (on the basis of physical boundary)   :-
1. LAN (Local Area Network)
2. WAN (Wide Area Network)

1. LAN  is a network within a particular area or building.  There is no use of public property (dialup and Internet), license, permission etc. for connection.  It is a network within private premises. Ethernet is standard for LAN. Eg:- CAN , HAN  etc.

2. WAN is collection of multiple LANs.  There is use of public property, license, permission etc. for connection.  It is a network with public interference and we are connected to outside world.  Frame-Relay is standard for WAN.  Eg:- MAN
Types of WAN :-
(a) Internet      It is network of networks. It is public network.
(b) Intranet      It is network of networks within organization. It is private network.


Types of Network (on the basis of logical boundary)   :-
1. Workgroup       It is a network without centralize administration.  It is logical grouping of computers without centralize management.   All the computers will have independent settings.  Server OS is not compulsory in the workgroup network.

2. Domain    It is a network with centralize administration.  It is logical grouping of computers with centralize management.  All the computers will have same policies.
First of all we must need DC (Domain Controller) to configure the domain.


OS (Operating System)
It is interface between user and computer or interface between software and hardware.
Types of OS :-
1. Server OS
It is use for server machine, it can support heavy hardware configuration, it has different services like DNS, VPN, Terminal Service etc.
Eg:-  Windows 2008 server, Windows 2012 server  etc.

2. Client OS
It is use for client machine or for end users. It is use for laptop and desktop machines. It does not support heavy hardware configuration.  It has File service, Print service, Web service(IIS) and Application service only.
Eg: - Windows XP, Windows 7, Windows 8 etc.


NOTE:
1. We can use GUI or CLI
2. We can use Desktop OS or Network OS

NOTE: Network OS will have Security, Quota, Dynamic Disk etc.
Eg:- Windows XP, Windows 2003 and higher versions .





Types of computers in network :-


















































   








CCNA Topics

CCNA - R&S  200-120  (803)
1.   What is Router?
2.   Router IOS
3.   Router Physical Interface or Port
4.   Router Connectors
5.   Router Modes
6.   Commands for User mode and Privilege mode
7.   Commands for Privilege mode only
8.   Change hostname
9.   Assign IP address
10.                 Set  clock time
11.                 Set banner
12.                 POST
13.                 Change config-register number
14.                 Configuration and Initial Configuration dialogue
15.                 Password Settings – Usermode, Enable secret, Enable password, Telnet
16.                 To break password
17.                 DHCP server
18.                 Create users
19.                 Login local , Login and No login
20.                 SSH
21.                 Router to Router connection
22.                 Static Routing
23.                 RIP configuration
24.                 EIGRP configuration
25.                 OSPF configuration
26.                 Frame-Relay configuration
27.                 Security , Access-List
28.                 CDP, Monitoring
29.                 NAT
30.                 Wireless
31.                 Backup and Restore of NVRAM and IOS
32.                 IP version 6 configuration and OSPF version 3
+
Protocols, TCP/IP Ports, IP addressing, Subnetting, Supernetting,  Networking devices, OSI model, TCP/IP model  , SDM, GNS3, Packet Tracer







33.  Switching, STP, VTP, VLAN
Configure, verify and troubleshoot a switch with VLANs and interswitch communications
·         Select the appropriate media, cables, ports, and connectors to connect switches to other network devices and hosts
·         Explain the technology and media access control method for Ethernet networks
·         Explain network segmentation and basic traffic management concepts
·         Explain basic switching concepts and the operation of Cisco switches
·         Perform and verify initial switch configuration tasks including remote access management
·         Verify network status and switch operation using basic utilities (including: ping, traceroute, telnet, SSH, arp, ipconfig), SHOW & DEBUG commands
·         Identify, prescribe, and resolve common switched network media issues, configuration issues, auto negotiation, and switch hardware failures
·         Describe enhanced switching technologies (including: VTP, RSTP, VLAN, PVSTP, 802.1q)
·         Describe how VLANs create logically separate networks and the need for routing between them
·         Configure, verify, and troubleshoot VLANs
·         Configure, verify, and troubleshoot trunking on Cisco switches
·         Configure, verify, and troubleshoot interVLAN routing
·         Configure, verify, and troubleshoot VTP
·         Configure, verify, and troubleshoot RSTP operation
·         Interpret the output of various show and debug commands to verify the operational status of a Cisco switched network.
·         Implement basic switch security (including: port security, trunk access, management vlan other than vlan1, etc.)