Chapter Two

Commands for the
Configuration of the Router
This chapter will walk you through the commands and information about the configuration of a router. You will learn how to set up the names, interfaces, passwords, host tables, and save the configurations. The router mode commands are as under.
Router Modes Commands
There are different router modes that you may experience while you are navigating through the command line. All the commands do not work in all modes. If you type something in a command and you know it is correct but you get an error instead, you should recheck if the mode you are working in is right.
Configuration of the Name of the Router
You can use this command both on switches and routers.
Global Configuration Mode
Commands for the Configuration of Passwords
You can use the following commands both on switches and routers. There is a variety of commands that you can use for the purpose.
The enable secret password is usually encrypted by default. However, the enable password is usually not. The recommended practice should be that you must not use the enable password. You should only make use of the enable password to configure the router. If you do so, you will defeat the usage of encryption. Also, you cannot set the enable password and enable secret password to the same password. This will defeat the encryption.
Password Encryption Commands
The show Commands
There are a bunch of show commands that allow you to see different statistics and numbers in the system.
Interface Names
Remembering the names of the interfaces is one of the biggest problems that administrators might face. Each router has a different interface name. The market is replete with many Cisco devices that are being used in the production networks in the present day. Some administrators get confused due to these interface names. You can use the command router#show ip interface brief to see which type of interface is on your computer.
Router mode: 2501. The slot number or port location is on board. The port or slot type is Ethernet. The slot numbering range is labeled as an interface-type number. An example of this interface is ethernet0(e0).
Router mode: 2501. The slot number or port location is on board. The port or slot type can be Serial. The slot numbering range is labeled as an interface-type number. An example of this interface is serial0 (sO) & s1.
Router mode: 2514. The slot number or port location is on board. The port or slot type is Ethernet. The slot numbering range is labeled as an interface-type number. An example of this interface is e0 & e1.
Router mode: 1721. The slot number or port location is on board. The port or slot type is FastEthernet. The slot numbering range is labeled as an interface-type number. An example of this interface is fastethernet0()(fa0).
Router mode: 2514. The slot number or port location is slot 0. The port or slot type is WAC (WIN Interface Card) (Serial). The slot numbering range is labeled as an interface-type number. An example of this interface is s0 & s1.
Router mode: 1760. The slot number or port location is on board. The port or slot type is Fast Ethernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is fa0/0.
Router mode: 1760. The slot number or port location is slot 0. The port or slot type is WIC/VIC (Voice Interface Card). The slot numbering range is labeled as interface-type 0/port. An example of this interface is s0/0 & s0/1 and v0/0 & v0/1.
Router mode: 1760. The slot number or port location is slot 1. The port or slot type is WIC/VIC. The slot numbering range is labeled as interface-type 1/port. An example of this interface is s1/0 & s1/1 and v1/0 & v1/1.
Router mode: 1760. The slot number or port location is slot 2. The port or slot type is VIC. The slot numbering range is labeled as interface-type 2/port. An example of this interface is v2/0 & v2/1.
Router mode: 1760. The slot number or port location is slot 3. The port or slot type is VIC. The slot numbering range is labeled as interface-type 3/port. An example of this interface is v3/0 & v3/1.
Router mode: 2610. The slot number or port location is on board. The port or slot type is Ethernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is e0/0.
Router mode: 2610. The slot number or port location is slot 0. The port or slot type is WIC (Serial). The slot numbering range is labeled as interface-type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 2611. The slot number or port location is on board. The port or slot type is Ethernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is e0/0 & e0/1.
Router mode: 2611. The slot number or port location is slot 0. The port or slot type is WIC (Serial). The slot numbering range is labeled as interface-type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 2620. The slot number or port location is on board. The port or slot type is FastEthernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is fa0/0.
Router mode: 2620. The slot number or port location is slot 0. The port or slot type is WIC (Serial). The slot numbering range is labeled as interface-type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 2621. The slot number or port location is on board. The port or slot type is FastEthernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is fa0/0 & fa0/1.
Router mode: 2621. The slot number or port location is slot 0. The port or slot type is WIC (Serial). The slot numbering range is labeled as interface-type 0/port. An example of this interface is s0/0 & s0/1.
Router mode: 1841. The slot number or port location is on board. The port or slot type is FastEthernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is fa0/0 & fa0/1.
Router mode: 1841. The slot number or port location is slot 0. The port or slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as interface-type 0/port. An example of this interface is s0/0/0& s0/0/1.
Router mode: 1841. The slot number or port location is slot 1. The port or slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as interface-type 0/port. An example of this interface is s0/1/0& s0/1/1.
Router mode: 2801. The slot number or port location is on board. The port or slot type is FastEthernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is fa0/0& fa0/1.
Router mode: 2801. The slot number or port location is slot 0. The port or slot type is VIC/VWIC(voice only). The slot numbering range is labeled as interface-type 0/slot/port. An example of this interface is voice0/0/0& voice0/0/3.
Router mode: 2801. The slot number or port location is slot 1. The port or slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as interface-type 0/slot/port. The examples of this interface are 0/1/0-0/1/3(this is single-wide HWIC)  and 0/1/1-0/1/7 (this is double-wide HWIC).
Router mode: 2801. The slot number or port location is slot 2. The port or slot type is WIC/VIC/VWIC. The slot numbering range is labeled as interface-type 0/slot/port. An example of this interface is 0/2/0- 0/2/3.
Router mode: 2801. The slot number or port location is slot 3. The port or slot type is HWIC/WIC/VWIC. The slot numbering range is labeled as interface-type 0/slot/port. An example of this interface is 0/3/0- 0/3/3 for single-wide HWIC and o/3/0- 0/3/7 for double-wide HWIC.
Router mode: 2811. The slot number or port location is built into the front of the chassis. The port or slot type is USB. The slot numbering range is labeled as an interface-type port. An example of this interface is usb0& usb1.
Router mode: 2811. The slot number or port location is built into the back of the chassis. The port or slot type is FastEthernet Gigabit Ethernet. The slot numbering range is labeled as interface-type 0/port. An example of this interface is fa0/0& fa0/1 gi0/0& gi0/1.
Router mode: 2811. The slot number or port location is built into slot 0. The port or slot type is HWIC/HWIC-D/WIC/VWIC/VIC. The slot numbering range is labeled as interface-type 0/slot/port. An example of this interface is s0/0/0& s0/0/1 fa0/0/0& 0/0/1.
Router mode: 2811. The slot number or port location is built into slot 1. The port or slot type is HWIC/HWIC-D/WIC/VWIC/VIC. The slot numbering range is labeled as interface-type 0/slot/port. An example of this interface is s0/1/0& s0/1/1 fa0/1/0& 0/1/1.
Router mode: 2811. The slot number or port location is at NME slot. The port or slot type is NM/NME. The slot numbering range is labeled as interface-type 1/port. An example of this interface is gi1/0& gi1/1 s1/0& s1/1.
Navigation Through Interfaces
With the help of a few commands, you can easily navigate through the interfaces. Some commands are as under:
Configuring Interfaces
You can configure any kind of interface with the help of the following commands.
You can use the clock rate command only on the serial interface that possesses a DCE cable that is plugged right into it. There ought to be a clock rate that is set on each serial link in between the routers. It is of least importance as to which router has been plugged with the DCE cable or which interface has got the cable plugged into it. The Serial 0 on the one router can be plugged into Serial 1 on some other router.
Some Miscellaneous Commands
Basic Router Configuration
You can configure your router in a short time by pursuing the following steps.