This is a tutorial showing you how to configure switch for various task.In this article you will learn how to assign hostname to a switch,how to setup motd banner on switch,DNSLOOKUP for switch along with some more configuration related tips and tweaks on cisco switches.This tutorial will help you to understand witch configuration and will be helpful for networking related jobs and interviews.It will also helps you a lot if you are preparing for CCNA Certification exam.

Learn howto Configure a hostname for a Cisco Switch

Now i am going to run commands on switches:

switch>enable
switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#hostname shivangi
shivangi(config)#exit
shivangi#

Now Learn How to Configure a MOTD(Message of the day) Banner for Cisco Switch.

Users will be presented with a MOTD (Message of the DAY) banner every time they attempt a connection via the console port, auxiliary port, SSH or a telnet session to Cisco switch.

Use the following commands to configure a MOTD message.

Note: Here the “#” character is known as a delimiting character.

Also keep in mind that the banner message should be sorrounded by delimiting character and the message should not contain the delimiting character.

Now i am going to switch to configure motd.

shivangi>enable
shivangi#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
shivangi(config)#banner motd #Welcome to ETHICAL HACKING TUITION CENTER JAIPUR.#
shivangi(config)#exit

Learn to enable DNS lookup for a Cisco Switch

shivangi>enable
shivangi#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
shivangi(config)#ip name-server 192.168.1.1
shivangi(config)#exit

Learn to turn off the automatic name resolution for a Cisco Switch
The Cisco switch is set by default to try to resolve any word that is not a command to a DNS server at address 255.255.255.255. We can turn off this by using the following command.

shivangi>enable
shivangi#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
shivangi(config)#no ip domain-lookup
shivangi(config)#exit

Learn to assign a Local Name to an IP address

Following command assigns a host name to an IP address. Once this is completed, we can use the configured host name for telnet or ping.

shivangi>enable
shivangi#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
shivangi(config)#ip host shivangi 192.168.1.1
shivangi(config)#exit

Learn to Turn on synchronous logging:

If the Cisco Switch IOS sends a message to the console while you’re entering a command, by default the switch will interrupt your work to show the message.
If you want the information sent to console not interrupt the command you are typing, turn on synchronous logging.

shivangi>enable
shivangi#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
shivangi(config)#line console 0
shivangi(config-line)#logging synchronous
shivangi(config-line)#exit
shivangi(config)#exit

How to configure an inactivity time-out for automatic log-off
Sets time limit when console automatically logs off.

Set to 0 0 (minutes seconds) means console never logs off.

shivangi>enable
shivangi#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
shivangi(config)#line console 0
shivangi(config-line)#exec-timeout 3 0
shivangi(config-line)#exit
shivangi(config)#exit

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s