Thursday, 19 December 2013

Configuration of Cisco Switch and Router

Understanding technology, you need a skill. Even if you don't mine, but what are the best skills definition can be summarized in two words: knowledge and duplication of 1000.

In this class, there is no real technical explanation. Instead, you will be familiar with is used to configure our routers and switches with some useful commands. However, this practical exercises to illustrate your skills gained in the previous lesson.

Take a look at our simple topology:


And here is our plan for initial configuration.


  1. Host name configured on the switch and router (SW1 and R1, respectively).
  2. When you type the command in the wrong mode is enabled, IOS tries to resolve the name to IP address. The name resolution is disabled.
  3. Use a plaintext password protection ' privileged exec mode. Use 'cisco_enable' as your password.' Excess commitment ' algorithm encrypts the password.
  4. Protect access to console ports of 0. Use 'cisco_console' as your password.
  5. Configure the console port 0, so it is lazy disconnected after 5 minutes and 30 seconds.
  6. Configure the console port 0 this class, the system sends a message to the screen, and does not interfere with what you are typing.
  7. After careful consideration, decided to use the ' privileged exec mode ' safe access. Disable the previous method, and configure the same passwords passwords are encrypted using the MD5 algorithm.
  8. Assign IP addresses on the exchanger (: 192.168.1.253/24) management interface Vlan 1.
  9. Configure the switch to use default gateway (default gateway address: 192.168.1.254/24) to prevent it from another subnet or network remote management.
  10. FastEthernet1/0 enable router interfaces. Use the 192.168.1.254/24 address.
  11. Facing Internet serial zero-first (we pretend it is the public interface) interface. Use the IP address 172.31.1.1/30.
  12. Enable remote access to your device via Telnet. Use the password 'cisco_remote'.
  13. After careful consideration, decided as a remote access method, use SSH instead of Telnet. Configuration.
  14. Switch and save the configuration on the router, so it's available after heavy/power cycle.

1. The host name configured on the switch and router (SW1 and R1, respectively).
Most of the steps are the same on both switches and routers. That is why I introduced, only the router configuration. You have to repeat them on the exchanger. If the switch configuration is different it is presented (step 9 and step 10).

If your tip is displayed user mode '>' you must first type to enter privileged mode enabled:

Router > enable
Router #

Then, if you want to set on the router host name must be chosen (you abreviate the 'conf t' command) configuration mode:

Router #configure Terminal
Router(config) #

Finally, you type:

Router (config) # #hostname R1
R1(config) #

Please note!
Commands take effect immediately, as long as they are syntactically correct.

2. When you type commands in the wrong mode is enabled, IOS tries to resolve the name to an IP address. The name resolution is disabled.

R1 IP domain lookup (config) #no

3. use clear-text password protection ' privileged exec mode. Use 'cisco_enable' as your password.

R1 (config) #enable password cisco_enable

4. the ' excess commitment ' algorithm encrypts the password.

R1 (config) #service password encryption

5. protect access to console ports of 0. Use 'cisco_console' as your password.

To do this, you must change the context from the console 0' configuration mode to line mode. Note tips! ' Login ' keywords you want to prompt the user to enter a password.

Please note!
' Not logged in ' 0 command will allow the user to access the console does not require a password, even if one of the configuration.

R1 (config) # line console 0
R1(config-line) #password cisco_console
R1(config-line) #login

6. configure the console port 0, and so it is lazy disconnected after 5 minutes and 30 seconds.

So we're still 0 console prompt, we can continue to configure the console 0.

R1 (config-line) 5 #Exec-timeout 30
R1(config-line) #

If you're trying to console 0 has never been disconnected during free time, you will use: exec-timeout 0.

7. Configuration console port 0 this class, the system sends a message to the screen and does not interfere with what you're typing.

By default, all system messages sent to the console 0, they may interfere with the current console you type 0 online. If the device is accessed through a Telnet/SSH (remote), see any messages. If you want to see the vty lines (by Telnet/SSH the remote online), you must type in: ' enabled mode ' to ' terminal monitor. Here is that our design in the command in step 7:

R1 (config-line) #logging sync

8. after careful consideration, decided to use the ' privileged exec mode ' safe access. Disable the previous method, and configure the same passwords passwords are encrypted using the MD5 algorithm.

We are still the line console 0 contexts (see Tips), we next need to return to the configuration mode, and then delete the previous password is enabled. Next we will proceed to the MD5 password configuration. If you did not remove your previous password is enabled, the system will use a more secure anyway.

R1(config-line) #exit
R1 (config) #no enable password
R1 (config) #enable secrets cisco_enable

9. assign IP addresses on the exchanger (: 192.168.1.253/24) management interface Vlan 1.

I assume that you have completed the steps on 1-8 both routers and switches. Exactly the same commands and tips. Now you can assign IP addresses on Vlan 1 interface.

SW1> enabled
SW1 #conf t
SW1 (config) #interface vlan 1
SW1 (config-if) #IP address 192.168.1.253
SW1 (config-if) #no shutdown

10. Configure the switch to use the default gateway (default gateway address: 192.168.1.254/24) to prevent it from another subnet or network remote management.

Step we need to return to the configuration mode from interface Vlan1 mode to complete the task.

SW1(config-if) #exit
SW1 (config) # #IP default gateway 192.168.1.254

11. Enable the interfaces on the router FastEthernet1/0. Use the 192.168.1.254/24 address.

R1 (config) #interface f1/0
R1 (config-if) #IP address 192.168.1.254 255.255.255.0
R1 (config-if) #no shutdown


12. Making faces Internet serial zero-first (we pretend it is the public interface) interface. Use the IP address 172.31.1.1/30.

Even though we are currently in the F1/0 interface (look at the prompt), we can s0/1 jump directly without typing ' exit ' the first time. If you are using a real router (not Dynamips), connect one end of the DCE and DTE cables must be used. They connected back-to-back and DCE interfaces and clock rate must be set.

R1(config-if) #interface s0/1
R1 (config-if) #IP address 172.31.1.1 255.255.255.252
R1 (config-if) #no shutdown

13. Enable remote access to your devices via Telnet. Using the password 'cisco_remote'.

Remote access connection is made by a special virtual line, known as vty service. Here, we will use the vty lines 0 through 4, allowed only five concurrent connections through Telnet.

R1(config-if) #li

How to Configure Navigating in Cisco IOS

Once you are connected to your Cisco switch or router console port and power on the unit, you will see some of the information displayed on the device during the boot process. If ever you are presented with the initial configuration:


Due to its ability to configure devices is not very impressive, you can safely remove this request. Instead, all you have to do all the things professionals do: command after a command.

Following is a group of messages to the screen and hit Enter key when you get something like this (here is a router, but Exchange introduces itself as ... ... Toggle >):

Router >

IOS model (context)

Tips tell you this device, the context of where you are, and more than one with a '>' character called ' user exec mode ' or ' privilege level 1 mode '. You cannot be configured in this mode of operation. It is intended as a ' monitor ' mode is not the ' configuration '. In addition, the monitoring capability is limited. For example, you cannot see a round device configuration.

Type the following command:

Router>enable
Router#

Prompt change to '#' referred to as ' privileged exec mode ', ' enabled mode ' or sometimes ' privilege level 15 mode '. I would like to draw your attention to two things. These two modes of operation (or in the context of, if you like) have two things in common:
They are mainly used for monitoring (you will use show and debug commands in these modes) devices.
They were immediately execute your command context. If the syntax is correct, the system commands are executed immediately.
Those two models and different:
User Exec mode-it's limited what information would be available.
The Exec mode is enabled-to the operator (such as root or administrator accounts on your computer) all of the information.
The question mark

As many of the Properties command, your best friend is a question mark '? '. This description is called the contextual description. This means that depending on your context, while typing a question mark (?), the system lists the commands that can be executed on that particular operating mode. See more in the attached video.
In order to configure Cisco IOS stuff (except for some minor changes), you must first enter global configuration mode is characterized by the following tips:

Router(config) #

By typing the following command in privileged exec mode access this context:

Router #configure Terminal

Whether you configure it as a whole unit (such as the host name, the default gateway on the exchanger) is applied to the device-specific mode.

If you want to enter the interface configuration parameters, such as IP address, speed, duplex, a description of the context, you must enter the interface from below like a global configuration mode:

Router (config) #interface fastethernet1/0

If you don't know what your device interface, in enable mode, type the following command:

Introducing the #show router's IP interface

As you can see, in the global configuration mode, I did the following to access the context interface:
Enter the interface type (here: Fast Ethernet).
Refer to the module number (here: 1)
References module 1 the port number (here: 0)
Please note that router counts start from 0, exchanged between ports starting from 1.

As we pass through many laboratory and video presentation, you will learn additional context.

Abbreviations

You don't have to type the full command, according to the words of some properties of the command. For example, instead of typing:

Router #configure Terminal
Router(config) #

You can type the following:

Router #conf t
Router(config) #

As long as the abbreviation that uniquely describes which commands you want to use, system check, accept it.

Shortcuts and keystrokes

When you type enough characters used to uniquely identify the command that you can use in a given context 'tab' the command key and the system will be completed for you on the screen (like Linux).

I often edit the command by using the following keys:
  • CTRL-z-the cursor to return to the ' exec' mode is enabled from any other contexts
  • CTRL-a-moves the cursor to the beginning of a line
  • CTRL-e-the cursor to end of line
  • CTRL-k-everything to the right of the cursor
  • CTRL-u-everything to the left of the cursor
  • Up or CTRL-P-displays a command from the history buffer
  • Down arrow keys or CTRL-N-displays the next command from the history buffer
System-reserved up to ten (default) commands, type records. You can increase/decrease up to 256 command history buffer.

If you want to check in the history buffer size, type:

Router | #show Terminal including history

You can use the following command in enable mode is successfully changing the buffer size

Router #terminal history size 256

The above command will be increased to 256 of the command history buffer size.

If the buffer if you want to see (what commands are typed) using this command:

Router #show history

Please take a look at what I posted below to see in action, most of the video. They practice until you're sure that this lesson, and then continue to the next.

The next lesson to create the initial configuration of the routers and switches.

Connecting to Cisco Console Port with Minicom

Cisco is easy. If I can learn it, anyone can!

If you are a Linux user you must learn how to connect your Cisco router or switch using a rollover cable (using the cable that came with your device).

Step 1-installing minicomputer

Linux users will use an application called ' pride '. If you are an Ubuntu users can install the following in your terminal window using the package manager or type:

$ sudo apt-get install minicom

Once installed, you must configure the ' dog ' is exchanged with your router's console port to communicate.

2nd step-connect to the console port

You switch power on the router and the rollover cable is connected to your computer's serial port (DB-9) and your router exchanger (RJ-45) Console port.

3rd step-configuring Minicom

Open your terminal window (applications ==> accessories ==> Terminal) and type:

$ minicom -s

Scroll down to 'Serial Port Setup' and hit Enter:


Select 'A' to set up your computer's serial port (the first serial port ttyS0 as referenced here) so it reads as highlighted below. Then press ENTER again to accept the change:


The next step, ' e ', and ' c ' then press to access the transfer speed and will change it to a value of '9600' (without the apostrophies). You should see the values highlighted below:


Then press the Enter key twice to return to the first screen image.

One last thing if you want to save the configuration (you can select the default template or 'dfl' with a number of other names).