CCNA 2: Routing Protocol and Concepts – Intro to Routing and Packet Forwarding – Basic Router Configuration

Topics:

Naming the router
Setting passwords
Configuring interfaces
Configuring a banner
Saving changes on a router
Verifying basic configuration and router operations

Naming the Router

  1. type “enable” to enter the priveledged exec mode
    hit enter after every command to let the iOS execute it
  2. type “configure terminal” to enter global configuration mode
  3. type “hostname [name of the router]” to name the router and hit enter
  4. see screenshot below
router-hostname

click to enlarge

Setting Enable, Console and Telnet Passwords

Enable

  1. continuing from where we left off, after the # prompt, type “config terminal” again, to enter global config mode
  2. type “enable secret [password]” – the option secret encrypts the password on the config file

Console

  1. type “line con 0″ 
  2. type “password [password]“
  3. type “login” to enable it

Telnet

  1. if you are following this tutorial, you should be at this prompt by now: RT-PH-01(config-line)#
  2. type “exit” to go back to global config mode
  3. type “line vty 0 4″ to add a telnet password to all vty lines
  4. type “password [password]“
  5. type “login”
  6. type “exit” to go back to global config mode

Configuring Interfaces

In this example, we have two interfaces to configure – a LAN interface FastEthernet 0/0 and a WAN interface Serial 0/1/0.

  1. at the global config mode, type “interface fastethernet 0/0″ to enter the interface configuration mode
  2. to set an IP, type “ip address [ip address here, ie: 192.168.1.1] [subnet mask here, ie: 255.255.255.0]“
  3. set a description (for documentation and troubleshooting purposes) by typing “description [LAN description here, up to 250 characters max]“
  4. activate the interface by typing “no shutdown”
  5. type “exit” to go back to global config mode
  6. to configure the WAN interface, type “interface serial 0/1/0″
  7. set an IP, “ip address [ie: 192.168.2.1] [ie: 255.255.255.0]“
  8. set a description, “description [WAN description here]“
  9. if you are configuring a DCE router, type “clock rate [clock rate here, ie: 64000]“
  10. activate the interface by typing “no shutdown”
  11. type “end” to go back to user exec mode
  12. type “show ip interface brief” to verify your configuration

If you are following this tutorial, you should have something like the one below (there are no other devices on the network yet, so you will see status down – but interfaces are already active). You may have more or less interfaces, depending on the type of router and the interfaces you have.

click to enlarge

click to enlarge

Configure a Banner

We are going to add a banner text that users can see before logging into the router.

  1. from the user exec mode, type “config terminal” to go back to the global config mode
  2. type “banner motd #” to start creating a multiline banner text
    note: motd means Message of the Day
    note: # is a delimiting character. After typing your banner text, type # and “enter” to go back to the prompt. This can be different characters, ie: alphabet (a-z), numbers, etc.
  3. type your banner text.
  4. type the delimiting character (in this case “#”) and hit “enter” to go back to the global config mode
  5. log out of the router and log back in, to see the banner.
  6. see my sample below
click to enlarge

click to enlarge

Saving changes on the router

If we reboot the router, all the changes we just made will be lost. Why? The running-config file where the changes were saved, is volatile. Without power, its data gets erased. We have to save it to the startup-config file stored at the NVRAM (non volatile), so even if we reboot the router, our configuration remains intact.

  1. log back into the router using the secret password you configured at the start of this tutorial
  2. type “enable” to go to the user exec mode
  3. type “copy running-config startup-config” to save the changes to the startup-config
  4. you will be asked to confirm this, so hit “enter” again

Verifying basic configuration and router operations

To review your configuration, or verify the commands you have saved, type “show running-config”. To confirm if changes have been made, compare it with your startup-config. Type “show startup-config” to show the startup-config.

Type “show ip router” to view the routing table.

Type “show interfaces” to view each interface configuration.

I hope you learned a lot today, cause I did. :)

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a comment

Your email address will not be published. Required fields are marked *

CommentLuv badge

Notify me of followup comments via e-mail. You can also subscribe without commenting.