Basic Router Configurations: Khawar Butt Ccie # 12353 (R/S, Security, SP, DC, Voice, Storage & Ccde)
Basic Router Configurations: Khawar Butt Ccie # 12353 (R/S, Security, SP, DC, Voice, Storage & Ccde)
Switch Switch
c
192.168.1.0/24 192.168.2.0/24
Ethernet 0/0 Ethernet 0/0
Serial 1/0 Serial 1/0
Console R1 192.168.12.0/24 R2
MGMT
PC
Stepping thru Configuration Modes
1. As you load the router for the first time, it will be at the following prompt:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
c
2. This is called the Initial Configuration Wizard. It asks questions to configure the router for
you. We will be configuring the router manually. Type “No” to exit the Wizard.
3. You will be at the “router>” prompt. “router” is the default hostname of the router. The “>” sign
indicates that you are in the User Exec Mode.
4. As discussed earlier, the User Exec mode gives you limited verification commands. You can see
all the commands that can be executed in this mode by typing “?”. Type “?”.
5. You should see all the commands available in this mode. Press the “spacebar” to process.
Stepping thru Configuration Modes
6. The next mode that you can move upto is the Privilege Exec Mode. You have access to all the verification
commands in this mode. You can also do basic configuration commands in this mode like setting the clock for the
Router.
7. To move to the Privilege Exec Mode from the User Execc Mode, you type the “enable” command. This command
will move you into the Privilege Exec Mode. Your prompt now should look like “router#”.
8. To move back into the User Exec Mode from Privilege Exec Mode, you type the “disable” command. Your prompot
should now should look like “router>”.
9. Cisco’s operating system called the IOS, allows you to abbreviate the commands as long as the command is
unique within the mode. For example, you could type “en” instead to “enable” in User Exec Mode to move into
Privilege Exec Mode as there is no other command that starts with “en” in User Exec Mode. Type “en” to move from
User Exec to Privilege Exec Mode.
10. Similarly, you can type “disa” to move from Privilege Exec to User Exec. Type “disa” to move back to User Exec.
Stepping thru Configuration Modes
11. If you want to exit out completely, you can either type logout or exit command at the User
Exec Mode “>” prompt. Logout will log you out of the router. Type “Exit” to logout. You
should see the prompt asking you press Enter to get started.
c
12. Press “Enter” to log back in.
13. Move back to the Privilege Exec Mode from the User Exec Mode, by typing “en”.
14. The 3rd important mode of the Cisco IOS is the Global Configuration Mode or “Config”
mode. To move into the Config mode, you need to be in Privilege Exec Mode and type the
“Configure Terminal” command. You can also abbreviate it and type “Conf t” instead.
15. Type “Conf t” to move into Global Configuration Mode. The prompt should look like
“router(config)#”.
Stepping thru Configuration Modes
16. If you want to exit out from Global Configuration mode, you can either type “end” or
“exit”. Type “Exit” to move back into the privilege exec Mode. You should see the prompt
changing to “router#” indicating that you are in the Privilege Exec Mode.
c
17. If you would like to logout directly from the Privilege Exec Mode, you can type in “Exit” at
the Privilege Exec Mode. Type “exit” to logout from the Console.
User Exec Mode
Enable or en
Disable or disa
Exit or End
Configuration Mode
Configuring Interfaces
1. To Configure an Interface, you need to go into the Interface Configuration mode for that interface. To jump into the
Interface configuration mode, you need to be in the Global Configuration Mode.
c
Router>enable
Router#configure Terminal
Router(config)#
3. To configure an Interface, you need 3 components to identify the interface. They are Type (Ethernet/Serial), Slot# on the
Router and Port#.
Slot 1 Slot 0 To identify the Ethernet slot, we use the word Ethernet or “E”
following by Slot #/Port#.
Power Button
So we have 2 Ethernet ports, E0/0 & E0/1.
S0 S1 E1 E0
Similarly we identify the Serial ports using S 1/0 & S1/1 as
they are in Slot 1.
Configuring Interfaces
4. The command that will allow you to go into the Ethernet/Serial Interface configuration mode and enable it :
Note: Although I exited the first interface before going into the other, the router is intelligent enough to know if you type “Interface S 1/0” under the
Ethernet0/0 mode that you want to switch to the Serial Interface configuration mode. The interface configuration mode does not display the actual
interface you are configuring. It just displays that you are under the Interface configuration mode.
5. Let’s try bringing the E 0/0 and S1/0 interfaces up without exiting the Interface Configuration mode.
Router(config)#Interface Ethernet 0/0
Router(config-if)#no shutdown
Router(config)#Interface Serial 1/0
Router(config-if)#no shutdown
Router(config-if)#exit
Note: This sequence would have accomplished exactly what Step 4 would have.
Configuring Interfaces
5. Let’s configure the interfaces based on the following table / Previous Network Diagram:
R1 R2
Ethernet 0/0 192.168.1.1/24 Ethernet 0/0 192.168.2.1/24
Serial 1/0 192.168.12.1/24 Serial 1/0
c 192.168.12.2/24
R1 R2
Router#config t Router#config t
Router(config)#Interface E 0/0 Router(config)#Interface E 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut Router(config-if)#no shut
Router(config-if)#Interface S 1/0 Router(config)#Interface S 1/0
Router(config-if)#ip address 192.168.12.1 255.255.255.0 Router(config-if)#ip address 192.168.12.2
Router(config-if)#no shut 255.255.255.0
Router(config-if)#no shut
Verifying the Configuration
1. The verification commands are executed in either the User Exec Mode (>) or the Privilege Exec Mode (>). All verification
commands are available in the Privilege Exec Mode whereas a limited number of commands are available in the User Exec
Mode. Let exit to the Privilege Exec Mode by typing “End” from the Interface Configuration Mode.
Router(config-if)#end c
Router#
2. To verify the configuration and status of all my interfaces, type the “Show ip interface brief” command.
Router#show ip interface brief
3. Although the show commands work only under the User or Privilege Exec Modes, Cisco has given a workaround is case
you are in the Global configuration or the Interface configuration modes to execute it. The workaround is to use the word
“do” in front of the command. For example, you would type “do show ip interface brief” to execute the verification
command from the Interface configuration mode.
Verifying the Configuration
4. Another verification is to check the connectivity of the 2 routers. This is done by using the Ping
command. The ping command sends a dummy packet to the specified destination and expects a
response. If you receive a response as “!”, the ping is successful. If you receive a “.”, the ping is
unsuccessful. c
As we haven’t enabled full routing yet on the router, we will ping the directly connected interface
between R1 and R2.
R1
Router#Ping 192.168.12.2
R2
Router#Ping 192.168.12.1
Editing Keys
Press CTRL – P – It will show you the Previous Command.
Press CTRL – N – It will show you the Next Command.
To change something at the beginning c of the line, rather then using the
arrow keys to scroll to the beginning of the line, you can accomplish the same
by pressing CTRL – A. Similarly, if you want to go to the End of the line to
edit something, press CTRL-E.
Press CTRL – A – Takes the cursor should be at the beginning of the line.
Press CTRL – E – Takes the cursor to the end of the line.
___________
2. What command moves you from Privilege Exec Mode to Global Configuration Mode?
___________ c
3. What command moves you from Global Configuration Mode to Privilege Exec Mode ?
___________
4. Write the command sequence to configure the ip address 192.168.12.1/24 on the Serial 1/0
Interface?
5. What shortcuts will take the cursor to the beginning and end of line?
Whiteboard