Configuring a router, at first, seems a complicated task. Over time, learning the commands, functions and setting up, we will realize that it is not at all, quite the opposite, ends up being a simple process, mechanical.
This tutorial only shows the basic configuration of a router, which we always do, regardless of routing protocols or configure services later.
The routers have several modes and sub modes configuration.
User Exec Mode: This mode allows only limited details of the configuration of the router and does not allow any modification of it.
Privileged Exec mode: This mode allows a detailed look at the router settings for diagnosis and testing. It also allows working with router configuration files (Flash - NVRAM).
Global Configuration Mode: This mode allows basic router configuration and allows access to specific configuration sub modes.
NAMING THE ROUTER
router> enable
router # configure terminal
router (config) # hostname RouterA (appointed as a router)
RouterA (config) #
Set Password “ENABLE SECRET” and “ENABLE PASSWORD”
RouterA> enable
RouterA # configure terminal
RouterA (config) # enable secret password * (Enable Secret password set)
RouterA (config) # enable password password (set password, Enable Password)
RouterA (config) #
* Enable Secret should be configured by generating a global key figure in the router.
CONSOLE SET PASSWORD
RouterA> enable
RouterA # config terminal
RouterA (config) # line with 0 (enters Console)
RouterA (config-line) # password password (set password)
RouterA (config-line) # login (password enabled)
RouterA (config-line) # exit
RouterA (config) #
SET PASSWORD VTY (telnet)
RouterA> enable
RouterA # config terminal
RouterA (config) # line vty 0 4 (creates five VTY lines but could be one. For example: line vty 0)
RouterA (config-line) # password password (password for the 5 lines in this case)
RouterA (config-line) # login (password enabled)
RouterA (config-line) # exit
RouterA (config) #
SET ETHERNET or FAST ETHERNET INTERFACES
RouterA> enable
RouterA # config terminal
RouterA (Config) # interface fastethernet 0 / 0 * (enter the interface configuration submode)
RouterA (config-if) # ip address 192.168.0.1 255.255.255.0 (IP configured on the interface)
RouterA (config-if) # no shutdown (interface up)
RouterA (config-if) # description lan (assign a name to the interface)
RouterA (config-if) # exit
RouterA (config) #
* Note that the interface can be Ethernet or Fast Ethernet interface that the number can be 0, 1, 0 / 0 0 / 1, etc. This varies by router.
AS SET DTE SERIAL INTERFACES
RouterA> enable
RouterA # config terminal
RouterA (config) # interface serial 0 / 0 * (enter the interface configuration submode)
RouterA (config-if) # ip address 10.0.0.1 255.0.0.0 (IP configured in the interface)
RouterA (config-if) # no shutdown (interface up)
RouterA (config-if) # description Network (assign a name to the interface)
RouterA (config-if) # exit
RouterA (config) #
* Note that the interface number can be 0, 1, 0 / 0 0 / 1, etc. This varies by router.
HOW TO SET UP SERIAL DCE INTERFACES
RouterB> enable
RouterB # config terminal
RouterB (config) # interface serial 0 / 1 * (enter the interface configuration submode)
RouterB (config-if) # ip address 10.0.0.2 255.0.0.0 (IP configured on the interface)
RouterB (config-if) # clock rate 56 000 (set up synchronization between the links)
RouterB (config-if) # no shutdown (interface up)
RouterB (config-if) # description Network (assign a name to the interface)
RouterB (config-if) # exit
RouterB (config) #
* Note that the interface number can be 0, 1, 0 / 0 0 / 1, etc. This varies by router.