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.
- Host name configured on the switch and router (SW1 and R1, respectively).
- 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.
- Use a plaintext password protection ' privileged exec mode. Use 'cisco_enable' as your password.' Excess commitment ' algorithm encrypts the password.
- Protect access to console ports of 0. Use 'cisco_console' as your password.
- Configure the console port 0, so it is lazy disconnected after 5 minutes and 30 seconds.
- Configure the console port 0 this class, the system sends a message to the screen, and does not interfere with what you are typing.
- 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.
- Assign IP addresses on the exchanger (: 192.168.1.253/24) management interface Vlan 1.
- 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.
- FastEthernet1/0 enable router interfaces. Use the 192.168.1.254/24 address.
- Facing Internet serial zero-first (we pretend it is the public interface) interface. Use the IP address 172.31.1.1/30.
- Enable remote access to your device via Telnet. Use the password 'cisco_remote'.
- After careful consideration, decided as a remote access method, use SSH instead of Telnet. Configuration.
- 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

No comments:
Post a Comment