0% found this document useful (0 votes)
160 views3 pages

SSH DHCP Cisco

This article explains how to setting SSH and DHCP configuration on cisco router. This experiment was implemented on Packet Tracer 5. Simulator. You can attempt using another simulator, such as GNS3.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
160 views3 pages

SSH DHCP Cisco

This article explains how to setting SSH and DHCP configuration on cisco router. This experiment was implemented on Packet Tracer 5. Simulator. You can attempt using another simulator, such as GNS3.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

GNU Public Licensed 2010

TOPIC :
Basic SSH & DHCP Cisco Configuration

DESCRIPTION :
Explain how to setting SSH & DHCP configuration on Cisco router. These
The is peripherals that will be used in this
article is :

• Cisco 1800 series router or above


• Switch
• 2 client PCs

This experiment was implemented on Packet Tracer 5.3 simulator. You can attempt using another simulator,
such as GNS3.

IMPLEMENTATION :
We’ll start SSH configuration first, I assume that you’ve already familiar with Cisco router command. OK, this is
my network topology :

The router has IP 10.10.10.1/29 on its fa0/0 interface (interface


(interface that connected to fa0/1 on the switch
switch). So, you
must assign this IP to its interface. I wouldn’t explain how to configure it, because this is very basic concept in
Cisco router configuration. To configure SSH connection on Cisco router, just follow these step below :

SSH C ONFIGURATION

1. Configure Privilege Exec Mode with enable secret command

Router>enable

Router#configure terminal

Router(config)#enable secret MyPass

2. Configure SSH via VTY line

We’ll make SSH connection through VTY (Telnet) line. Let’s see my configuration below
GNU Public Licensed 2010
Router(config)#line vty 0 4

Router(config-line)password cisco (this is Telnet password, not SSH!)

Router(config-line)login local (pay attention to this command, this is very crucial part)

Router(config-line)transport input all

There is local parameter after login command, this is to activate password for SSH account. So, we
don’t need using telnet password to login with SSH account. Conversely, if you don’t set local
parameter, you should use telnet password while login via SSH.

3. Create user & password to login via SSH

Router(config)#username admin password adminPass

4. Configure Domain name

Router(config)#ip domain-name mydomain.net

5. Generate RSA key

Router(config)#crypto key generate rsa

The name for the keys will be: R01.lan01.com

Choose the size of the key modulus in the range of 360 to 2048 for your

General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.

How many bits in the modulus [512]:

% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

That’s all about how to configure SSH server on Cisco router. We can try the connection with many SSH
application both on Windows or Unix/Linux. I prefer using PUTTY or SecureCRT as my terminal application. On
linux you can try this command :

user@linux>ssh [email protected]

or

ssh –l admin 10.10.10.1 (I try to connect it from another Cisco router)

Now it’s time to continue our tutorial with DHCP Server Configuration on Cisco router. Follow these step to
activate DHCP server feature.

DHCP SERVER CONFIGURATION

1. Create DHCP Exclude IP list (such as IP of gateway or server)

Router(config)#ip dhcp excluded-address 10.10.10.1 (this is IP of gateway)

You can type range of IP on this command, i.e. :

Router(config)#ip dhcp excluded-address 10.10.10.1 – 10.10.10.100

It consists of low and high IP address. It has function as IP address conflict avoidance on network.
©http://www.oscentre.co.nr
GNU Public Licensed 2010
2. Create DHCP Pool

Router(config)#ip dhcp pool MyLan

Router(dhcp-config)#network 10.10.10.0 255.255.255.248

Router(dhcp-config)#default-router 10.10.10.1

Router(dhcp-config)#dns-server 10.205.1.3

Router(dhcp-config)#exit

Router(config)#

ALL done! It’s very simple, isn’t it? Just try it by yourself. If you have any questions, don’t hesitate to contact me
at my lovely site. Ciao... !!!

REFERENCE :
http://www.blindhog.net

Google

©http://www.oscentre.co.nr

You might also like