Router Configurations |
Router
Configuration & Lab
Mode
of Router: -
Router have 05 modes and every mode have different
characteristics. First mode is when we access the device with any line and then
we step by step enter in the remaining modes to check and configure the router.
Which are mentioned below.
1.
User
Execution Mode: -
In this mode only few monitoring commands can be run this is the mode appears just after the completion of boot process of the router. It has limited commands. User mode defined by the > sign with the name of the router. The router cannot be configured from this mode.
2.
Privileges
Mode: -
By typing enable in the user execution mode and hit enter it will enter in the privileges mode of the router. Where we can view and change the configuration of the router. We will write enable on user execution mode to enter in privileges mode. The # sign will be appear with the name of the router, it is the sign of privileges mode.
3.
Global
Configuration Mode: -
In this mode we can do the configuration of the router. All configuration can be done in this mode. We write configure terminal in privileges mode to enter in global configuration mode. We will see Config with the name of the router and it is the sign that we are in global configuration mode.
4.
Interface
Configuration Mode: -
In this mode we will configure the interfaces of the routers. This is also called line mode in this mode we can enter in the specific interface and modify the configuration of the interface.
5.
ROMMON
Mode: -
It is the mode where we enter by interrupt the POST process. We enter in this mode for password recovery or backing up of IOS on devices. It’s a bootstrap program which initialize the hardware and boots the cisco IOS software when we power on or reload the router. If router doesn’t find a valid image file to load then it enters to the ROMMON mode.
Lab:-
Set
Console password and name of router: -
This command is use to set the password on console.
This password will require at the time of enter CLI mode via console cable and
we will see how to change the name of the router.
Commands:
-
thetechnetwork#
Configure Terminal
thetechnetwork
(Config) #Line console 0
thetechnetwork
(Config-Line) #password cisco
thetechnetwork
(Config-Line) #Login
thetechnetwork
(Config-Line) #Exit
thetechnetwork
(Config) #Hostname CCNA
thetechnetwork
(Config) #exit
thetechnetwork
#
Set
banner and save Configuration: -
How to set banner which will prompt on the login
screen of the router. When we will access router via console or telnet this
banner will appear.
Commands:
-
thetechnetwork>
thetechnetwork>enable
thetechnetwork#Configure
terminal
thetechnetwork
(Config) #banner motd #unauthorize access to this device is prohibitted#
thetechnetwork
(Config) #exit
thetechnetwork#Write
Building
Configuration....
[OK]
thetechnetwork#
Set
remote access: -
For access router via telnet/remote on the network.
Don’t need to connect console cable. Router can be accessed on network.
Commands:
-
thetechnetwork#Configure
Terminal
thetechnetwork
(Config) #Line vty 0 4
thetechnetwork
(Config-Line) #password cisco
thetechnetwork
(Config-Line) #Login
thetechnetwork
(Config-Line) #Exit
thetechnetwork
(Config) #exit
thetechnetwork
#
Save
Running Configurations: -
With
this command we can save the all configuration of the router after complete the
configuration. When we will configure anything on the router first it will save
in the NVRAM with the help of this command we will save running configuration
and all startup configuration of the router.
Commands:
-
thetechnetwork
#copy running-config startup-config
overwrite file [startup-config]...(Y/N)Y
Cisco
Show Commands (Enable Mode): -
Show Version: -
With
the help of this command we can see the version of the router and detail
related to the IOS and its images.
Command: -
thetechnetwork
# show version
Show Logs: -
With
the help of this command we can see the logs of the router. Any configuration
change, any port status and all types of logs showed here.
Command: -
thetechnetwork
# show logging
Show Interface: -
With
the help of this command we can see all the interfaces (serial, fast Ethernet
and gigabit) of the routers
Command: -
thetechnetwork
# show interface gi0/0/0
Show Interface Brief: -
With
the help of this command we can see the configuration of the all interfaces.
Command: -
thetechnetwork
# show ip interface brief
Show Flash: -
With
the help of this command we can see the flash of the router.
Command: -
thetechnetwork
# show flash
Show Clock: -
With
the help of this command we can see the time/clock of the router.
Command: -
thetechnetwork
# show clock
Show Hosts: -
With
the help of this command we can specifies the name servers to use for name
resolution.
Command: -
thetechnetwork
# show hosts
Show Users: -
With
this command we can see how many users login into the router and on which line.
Command: -
thetechnetwork
# show users
Show IP Route: -
With
the help of this command we can see the all routes of the routers.
Command: -
thetechnetwork
# show ip route
Show MAC Table: -
With
the help of this command we can see the all MAC addresses of the devices
attached with the router.
Command: -
thetechnetwork
# show mac-address-table
Show CDP Neighbors: -
This
is Cisco Discovery Protocol which helps the cisco router/device to find the
neighbor devices of the router. We can
see the neighbors of the router which are attached in the neighbor.
Command: -
thetechnetwork
# show cdp neighbors
Show Interface Trunk: -
This
command shows the all trunk interfaces of the routers.
Command: -
thetechnetwork
# show interfaces trunk
Show VLAN: -
This
command shows the all configured VLAN’s of the router.
Command: -
thetechnetwork
# show vlan
Show VLAN brief: -
This
command shows the detail of the all VLAN’s (Virtual Local Area Network) configured
in the router.
Command: -
thetechnetwork
# show vlan brief
Show VTP Status: -
With
this command we can see the VTP (VLAN Trunking Protocol) status of the router.
Which VTP mode it has.
Command: -
thetechnetwork
# show vtp status