Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Hom e

A bout Us

Privacy Policy

Knowledge Base

Support Us

Contact Us

Home Knowledgebase Cisco Certified Network Associate (CCNA) Basic Cisco Swit
Commands

Tutorials

Basic Cisco Switch Configuration Commands

Basic Networking
TCP/IP

How to Configure a hostname for a Cisco


Switch
To configure a name for router, use "hostname" command

IPv 6

from Global Configuration m ode .

CCNA
CCNA Security
Security
Windows 2003
Windows 2008
GNU/Linux

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

End

How to Configure a MOTD 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.

http://www.omnisecu.com/cisco-certified-network-associate-ccna/basic...

Here the "#" character is known as a delimiting character. The


banner message should be sorrounded by delimiting
character and the message should not contain the delimiting
character.
omnisecu.com.sw01>enable
omnisecu.com.sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
omnisecu.com.sw01(config)#banner motd #Welcome to
omnisecu.com.sw01.#
omnisecu.com.sw01(config)#exit
omnisecu.com.sw01#

How to enable DNS lookup for a Cisco


Switch
omnisecu.com.sw01>enable
omnisecu.com.sw01#configure terminal
Enter configuration commands, one per line.
with CNTL/Z.
omnisecu.com.sw01(config)#ip name-server
192.168.100.10
omnisecu.com.sw01(config)#exit
omnisecu.com.sw01#

End

How 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.
omnisecu.com.sw01>enable
omnisecu.com.sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
omnisecu.com.sw01(config)#no ip domain-lookup
omnisecu.com.sw01(config)#exit
omnisecu.com.sw01#

How 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.
omnisecu.com.sw01>enable

http://www.omnisecu.com/cisco-certified-network-associate-ccna/basic...

omnisecu.com.sw01#configure terminal
Enter configuration commands, one per line.
with CNTL/Z.
omnisecu.com.sw01(config)#ip host PC001
192.168.100.122
omnisecu.com.sw01(config)#exit
omnisecu.com.sw01#

End

How 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.
omnisecu.com.sw01>enable
omnisecu.com.sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
omnisecu.com.sw01(config)#line console 0
omnisecu.com.sw01(config-line)#logging synchronous
omnisecu.com.sw01(config-line)#exit
omnisecu.com.sw01(config)#exit
omnisecu.com.sw01#

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.
omnisecu.com.sw01>enable
omnisecu.com.sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
omnisecu.com.sw01(config)#line console 0
omnisecu.com.sw01(config-line)#exec-timeout 3 0
omnisecu.com.sw01(config-line)#exit
omnisecu.com.sw01(config)#exit
omnisecu.com.sw01#

Jobs
Programmer/Analyst
Cambridge, ON, Canada
WATERLOO REGIONAL POLICE SERVICE.
Technical Project Manager (Mid-level)
Atlanta, GA

http://www.omnisecu.com/cisco-certified-network-associate-ccna/basic...

You might also like