Showing posts with label Cisco Router. Show all posts
Showing posts with label Cisco Router. Show all posts

Wednesday, August 28, 2019

How to Configure Cisco router as DNS Server

Steps below clarify how to configure your cisco router to work as a dns server.

1-Enable DNS Service on the router
R(config)#ip dns server

2-Enable domain-lookup on the router, to be able to resolve name to ip address by lookup the host table that contains list of  ip address and corresponding names.
R(config)#ip domain-lookup

3-Specify the public name servers. When the local client request to solve a name that doesn't exist in the local host table of the router, the router will forward the request to the public dns servers. you can specify more than one name server because if one fails, the ther will take over.
R(config)#ip name-server 8.8.8.8
R(config)#ip name-server 1.1.1.1

4-configure the router with hostname of the local clients and their corresponding ip addresses.
R(config)#ip host john 192.168.1.5
R(config)#ip host john 192.168.1.6

5-Enjoy resloving . If you ping Sara, the router will resolve the name Sara to the ip 192.1681.6 and sara pc will reply.

The following video will show you how to configure, and verify DNS resolving.

To get automatic updates on your facebook, join a facebook group
https://www.facebook.com/groups/netsyshorizon/
To get automatic updates on your youtube guide, subscribe to the channel
http://www.youtube.com/channel/UCl25WPPKY4jnkGf32DnXU5
Related Links:
CUCM UNITY IM and Presence Memory Usage / Utilization command
configure cisco router as ntp server and as ntp client
configure cisco router as dhcp server / cisco ios dhcp configuration
https://youtu.be/a-ajvu86ZGE
Cisco ios dhcp reservation  and Cisco dhcp lease release
https://youtu.be/hTduy8_YDTY
Cisco dhcp lease time hours / Cisco dhcp lease time infinite
https://youtu.be/tpYIe6KSlcI
CUCM IP Phone Registration and Configuration and make a call between two ip phones
https://youtu.be/bXvtDY2O7JM
Make a bootable CUCM image from a non bootable iso file / Cisco bootable iso
https://youtu.be/pfH1HzVYowE
NBMA Network Broadcast Network  Point-to-Point Network
https://youtu.be/yHIkJ-jOJHM
Difference Between Network and Internetwork / Network Types LAN MAN WAN
https://youtu.be/pGIkjYf9wC8
EIGRP Metric Calculation and Configuring different Delay and Bandwidth values
https://youtu.be/zgqaVkQe5Sw
Telnet Vs SSH - Difference betweenTelnet and SSH Configuration
https://youtu.be/15pfENww-dk
Configure DHCP on Cisco router - Cisco router as a DHCP Server
https://youtu.be/YTCgVn9X4ac
SSH from cisco router and switch to another
https://youtu.be/_I-0Vgc8E9s 
Assign ip address to cisco switch / Assign ip address to vlan
https://youtu.be/Q9SUVmyJr80
OSPF Cost Calculation and Configuring Bandwidth/ip ospf cost/reference bandwidth
https://youtu.be/zgqaVkQe5Sw
EIGRP Composite Metric Calculation and Configuring different delay values and Bandwidth values
https://youtu.be/GsnV4Bc3On8
Configure / Assign IP address to Cisco Layer 3 Switch
https://youtu.be/s9DMZCq27Ys
Configuring cisco extended acl / extended named access control list tutorial using packet tracer
https://youtu.be/Tj6H8pg06f0 
Configure Cisco  Extended ACL/ Extended Numbered Access Control List ACL Using Packet Tracer
https://youtu.be/j0CDNAa2Wqg
Port Forwarding and Static Nat on Cisco Routers - Access your private network from the internet
https://youtu.be/8WVWoW86Uhw
Configure Cisco Named Standard Access Control List ACL on Cisco routers
https://youtu.be/u2zmuRZazFw
How Access List works - Numbered Standard Access List configuring
https://youtu.be/rLci6mFg2BA
Cisco router WAN Redundancy/WAN Failover and Change Routing dynamicaly Using IP SLA - Route Tracking
https://youtu.be/x3xZhbrX7Ww
Cisco Named Access Control Lists Editing (add and delete individual lines+resequence)
https://youtu.be/RToV6h2rGeM
Connecting  GNS3 to Vmware

https://youtu.be/WuLf3ESAx94
How to download and install GNS3 1.2 + adding IOS image to GNS3

https://youtu.be/CXVNpERIPo4
Mikrotik router PPPoE client configuration - Mikrotik PPPoE client Setup
https://youtu.be/aUGL20rjbVA
Add IOS images to GNS3
https://youtu.be/GjxODWeuC5Y
Connect your PC to GNS3 - connecting GNS3 to local machine
https://youtu.be/c_b_-rGWnJc
Configuration register value - changing the configuration register
https://youtu.be/YVAKerOmJpk
Backup and Restore Cisco Configuration file -  Cisco backup Config
https://youtu.be/YMX1EMPjBC0
Capture telnet password using wireshark - Sniffing telnet password using wireshark
https://youtu.be/xShwyUq-uHk
Clock Rate vs Bandwidth - Configuring clock rate and bandwidth
https://youtu.be/rntsm5bHagI
Configure Default routes on cisco routers
https://youtu.be/E5-kpZt8LU4
Configure cisco router hostname and ip address
https://youtu.be/1OYMlMzQ1dE
Cisco Router Password Recovery
https://youtu.be/6shdtrAx9l0
Static Routing Configuration Using Packet Tracer
https://youtu.be/v05Jm4h-Zms I
NSTALL and FIX CISCO VPN CLIENT ON WINDOWS 10 / FIX REASON 442 FAILED TO ENABLE VIRTUAL ADAPTER

https://youtu.be/9jp2EmiOMwQ
Remote desktop connection error due to credssp encryption oracle remediation
https://youtu.be/LkccEQPUYME
INSTALL and FIX CISCO VPN CLIENT ON WINDOWS 10 / FIX REASON 442 FAILED TO ENABLE VIRTUAL ADAPTER
https://youtu.be/9jp2EmiOMwQ
Connect GNS3 to Vmware 2019 / Adding Virtual Machines to the GNS3 Topology 2019
https://youtu.be/NVom_wG8t3o
How to Add Hibernate Shortcut to the Windows 10 Start Menu
https://youtu.be/umxSphM_VnY
GNS3 Error could not bind with WinError 10049 The requested address is not valid in its context
https://youtu.be/wMmd2_RBLYQ
Assign ip address mikrotik router interface
https://youtu.be/bFTnUCXtGmI
how to block website mikrotik / mikrotik website blocking / mikrotik website filtering
https://youtu.be/dNswOyvLT4w
Mikrotik default password / Mikrotik default ip address / mikrotik default username
https://youtu.be/xMu52KIjsn0

 Keywords:
how to configure cisco router dhcp
how to configure cisco router dns
how to configure cisco router telnet
how to configure cisco router http
how to configure cisco router ssh

Sunday, March 8, 2015

Backup and Restore Configuration files - Cisco routers and switches

This article will show why would we backup the configuration file and how we configure the router to backup and restore the configuration files.

When would you need  backup
  • Migrate the configuration file from an existing router to a new router
  • The configuration file or part of the configuration is  accidently deleted
  • Router hardware failure
Before explaining how to backup and restore the configuration file, you should know that there are two configuration files.

running-config file is stored in the ram which contains the configuration active in the system RAM but not yet saved to NVRAM, this configuration will be lost after a power off. The RAM of the router performs the same functions of the ram of the PC.
Startup-config file is stored in the NVRAM which contains the configurations saved or copied from the running-config file, this configuration will not be lost after a power off.
This article show Backing up the running configuration file to a TFTP server, the TFTP server used in this article and video below is Solarwinds tftp server. Also, you can use another TFTP servers such as tftpd.

Backup the running-config file in the ram to a TFTP server using this command
R1#copy running-config tftp
Backup the startup-config file in the NVRAM to a TFTP server using this command
R1#copy startup-config tftp
Restoring the running config file from TFTP server to the RAM running-config file
R1#copy tftp running-config
Restoring the startup- config file from TFTP server to the NVRAM startup-config file
R1#copy tftp startup-config

The details of how to backup the configuration file from the ram to tftp server, and restore the configuration file to the router, as you show below

1- First  copy the running config file from the ram to the tftp server using the command copy run tftp, the router will ask you about the ip of the tftp server which is 192.168.1.107 in this lab.After that the router will ask you what will be the name of the config file that will be saved in the tftp server, if you press enter means you accept the suggested name r1-config.
                R1#copy run tftp
                Address or name of remote host []? 192.168.1.107
                Destination filename [r1-confg]?
                !!
                1180 bytes copied in 1.200 secs (983 bytes/sec)
                R1#
Now, the backup is done, the image below shows the syslog messages appeared on the tftp server when you make a backup.

2- we want to change the hostname, because i want to make differences between the configuration file before the restore and after the restore.  Since i will restore the backup configuration file in the next step.
                R1#conf t
                R1(config)#hostname cisco1
                cisco1(config)#exit

3- After changing the hostname to cisco1, we want to restore the backup configuration file. After restoring the previous backup configuration file, the host name of the router must be changed to R1 as it was in the backup configuration file  
                cisco1#copy tftp run
                Address or name of remote host [192.168.1.107]? 192.168.1.107
                Source filename [r1-confg]?
                Destination filename [running-config]?
                Accessing tftp://192.168.1.107/r1-confg...
                Loading r1-confg from 192.168.1.107 (via FastEthernet0/0): !
                [OK - 1180 bytes]
                1180 bytes copied in 1.732 secs (681 bytes/sec)
                R1#
A s you see above, after restoring the backup condiguration file from the tftp server, the hostname of the router is changed to R1.


The link below refer to the video that explain how to backup and restore the configuration file and how to use the TFTP server .
For more videos, subscribe the channel
https://www.youtube.com/channel/UCl25WPPKY4jnkGf32DnXU5w
To get automatic updates on your facebook, join a facebook group
www.facebook.com/groups/netsyshorizon/
To follow my articles and videos on google+
www.google.com/+tariqabosallout




Sunday, February 15, 2015

Cisco Router Password Recovery


All Cisco routers have a 16-bit software register thats written into NVRAM. By default,the configuration register is set to load the Cisco IOS from flash memory and to look for and load the startup-config file from NVRAM, and its vlue is 0x2102. You can change the configuration register settings to provide password recovery on your routers.

If there are passwords configured on startup configuration file, you should know the password to login into the router.If you don't know the password you can reset the password without losing the previous configuration.

For more details about boot sequence and configuration register, read this article
Cisco boot sequence

So, you have to change the boot sequence (Configuration register value) to skip the step of loading startup configuration file from nvram to ram to login into the router without writing the passwords that you don't know. After that, copy the startup configuration file into the ram and change passwords.

Steps for resetting the passwords:

  • 1.       Change the value of configuration register to 0x2142 to skip the step of loading startup file into ram, when the router boots up, click CTRL+Break. After that you will login into rommmon mode to change the configuration register value and reboot the router.

                rommon 1 >confreg 0x2142
                You must reset or power cycle for new config to take effect
                rommon 2 >reset        
  • 2.       copy the startup configuration file into the ram and change passwords.

Router#copy start run
Router(config)#enable secret xxxxx

  • 3.       set the configuration register back to the default value

Router(config)#config-register 0x2102

  • 4.       save the new configuration with a copy running-config startup-config and use reload to reload the router

                Router#copy run start
                Router#reload

Note: It's important to remember to enable your interfaces after copying the configuration
from NVRAM to RAM.


To get automatic updates, join a facebook group (netsyshorizon)
https://www.facebook.com/groups/954180217947066/

Cisco Router Boot Sequence


The configuration register value stored in nvram tells the router how to boot. By deafult the configuration register value is 0x2102.

When a router boots up, it performs a series of steps, called the boot sequence, to test the hardware and load the necessary software.

The boot sequence consists of the following steps:

1. The router performs a POST-hardware diagnostic test.

2. The bootstrap then looks for and loads the Cisco IOS software. The bootstrap is a program in ROM. The bootstrap program is responsible for finding where each IOS program is located and then loading the file. By default, the IOS software is loaded from flash memory in all Cisco routers.

3. The IOS software looks for a valid configuration file stored in NVRAM. This file is called startup-config and is present in NVRAM only if an administrator copies the running-config file into NVRAM.

4. If a startup-config file is in NVRAM, the router will copy this file and place it in RAM and then call the file running-config. The router will use this file to run the router. The router should then be operational. If a startup-config file is not present in NVRAM, the router will attempt to locate a TFTP server that may contain this file, and if that fails, it will start the setup mode configuration process.



To get automatic updates, join a facebook group (netsyshorizon)
https://www.facebook.com/groups/954180217947066/

To get automatic updates in your youtube guide, subscribe
https://www.youtube.com/channel/UCl25WPPKY4jnkGf32DnXU5w