CCNA Lab

← Back to blog

Published on 2024-09-12 12:30 by Niladri Das

Introduction to Security Features and DHCP

Security features and DHCP are essential components of a network infrastructure. Security features provide authentication and authorization mechanisms to secure access to the network, while DHCP provides dynamic IP address allocation to devices on the network.

Theory

Security features use the following key concepts:

Summary

This lab demonstrates the configuration and verification of security features and DHCP in R1 router. The security features include local login, SSH server, and SDM, while DHCP provides dynamic IP address allocation to devices on the network.

Configuration and Verification

R1

R1 Configuration

Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#username anatto password google@123
R1(config)#line console 0
R1(config-line)#login local
R1(config-line)#exit
R1(config)#line vty 0 15
R1(config-line)#login local
R1(config-line)#exit

R1 Verification

R1# show running-config | include username
R1# show running-config | section line vty

Verify Local Login

Console Login

Router> enable
Password: <enter password>

VTY Login

ssh -l anatto <router-ip-address>

Configure SSH Server

R1(config)#line vty 0 15
R1(config-line)#login local
R1(config-line)#privilege level 15
R1(config-line)#transport input ssh
R1(config-line)#exit
R1(config)#username anatto privilege 15 password google@123
R1(config)#ip domain-name google.com
R1(config)#crypto key generate rsa

Verify SSH Server

Check SSH Configuration

R1# show ip ssh

SSH Login

ssh -l anatto <router-ip-address>

Access From Host

Start -> Run -> CMD
ssh –l admin 192.168.1.254

Configure DHCP

R1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.50
R1(config)#ip dhcp pool lan1
R1(dhcp-config)#network 192.168.1.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.1.1
R1(dhcp-config)#dns-server 8.8.8.8

Verify DHCP

R1# show ip dhcp pool

Check DHCP Pool

R1# show ip dhcp pool

Check DHCP Bindings

R1# show ip dhcp binding

Configure SDM

R1(config)#line vty 0 15
R1(config-line)#login local
R1(config-line)#privilege level 15
R1(config-line)#transport input ssh
R1(config-line)#exit
R1(config)#username anatto privilege 15 password google@123
R1(config)#ip domain-name google.com
R1(config)#crypto key generate rsa
R1(config)#ip http server
R1(config)#ip http authentication local
R1(config)#ip http secure-server

Verify SDM

Check HTTP Server

R1# show ip http server status

Access SDM

https://<router-ip-address>

Written by Niladri Das

← Back to blog