Cisco is constantly delivering various devices with progressive SDN, cloud and other security advancement. With these advancement Cisco is often the first option for a lot of companies and other organization. Due this popularity of Cisco devices, It’s a must learn device for Networking and IT Teams. Through this blog we are going to have our glance at few of the Basic Cisco Device Configuration.
- Host Name
One of the Basic Configuration command is hostname. hostname are generally used to identify the devices with a name and this reduces the chances of misconfiguration. Also hostname is used while crypto key generation for ssh communication
hostname <name>
eg : hostname Router_Floor_1
- Telnet Access
Telnet is a protocol that allows you to connect to remote devices or intermediate device over TCP/IP network. This Protocol uses the well known port of 23. Accessing device using Telnet generally is considered to be insecure as it doesn’t support basic encryption.
telnet host
eg:
telnet 192.168.1.1
Likewise Telnet can be configured as virtual terminal in Cisco using below mentioned commands.
line vty <start> <end>
password<password>
login
exit
eg:
line vty 0 4
password Insight#Quality
login
exit
Note: For to telnet into your device you should have IP address assigned to your device
ip address <ip address> <subnet mask>
eg:
ip address 192.168.10.1 255.255.255.0
- SSH Access
Generally Telnet is not used due to encryption and security problems, on the other hand SSH provide encryption. This is the main reason to upgrade telnet access to ssh.
SSH ( Secure SHell ) is a remote access protocol.The main difference between telnet and this protocol is SSH uses encryption and is secure. This Protocol uses the TCP port of 22, also it is one of the Cisco Basic Configuration.
hostname <name>
ip domain-name <domain-name>
crypto key generate rsa
username <username> password <password>
line vty <start> <end>
transport input ssh
login local
exit
eg:
hostname hostname Router_Floor_1
ip domain-name insightinfosys.com
crypto key generate rsa
username insight password insight#Quality
line vty 0 4
transport line ssh
login local
exit
In addition to basic configuration we have to configure IP address on your device.
ip address <ip address> <subnet mask>
eg:
ip address 192.168.10.1 255.255.255.0
- DHCP Configuration:
Dynamic Host Configuration Protocol is a client/server protocol that assign IP and other configuration details to its hosts automatically.
ip dhcp pool <pool-name>
default-router <ip>
network <network id> <subnet>
dns <ip>
eg:
ip dhcp pool Floor_1
default-router 192.168.1.1
network 192.168.1.0 255.255.255.0
dns 8.8.8.8
- Static Route
It is one of the most commonly used terms, as well as one of the most commonly used Cisco Basic Configuration. When your architecture employs many networks and you want them to connect with one another, we often employ a router and establish static routing.
In the diagram below, we see two networks: 192.168.1.0/24 and 192.168.2.0/24. If we want these networks to talk to each other. With the code snippets provided, we change our routing table in routers.
ip route <network-id> <subnet> <next-hop>
For Example, to configure Static Routing table in Router-A, we use network id that is the network address of the network you want to access (for this example it’s 192.168.2.0/24). Similarly, for next hop we simply use the IP address of next hop to the router with the previously mentioned network id( for this example it’s 192.168.3.4)
ip route 192.168.2.0 255.255.255.0 192.168.3.4
To check the routing table we use the command:
show ip route
0 Comments