0% found this document useful (0 votes)
1K views3 pages

Basic Cisco Switch Configuration Commands

The document provides instructions for several basic Cisco switch configuration commands, including: 1) Configuring a hostname, message of the day banner, and DNS server for a Cisco switch. 2) Turning off automatic name resolution and assigning a local name to an IP address. 3) Enabling synchronous logging and setting an inactivity time-out for automatic log-off of the console.

Uploaded by

Hamami InkaZo
Copyright
© © All Rights Reserved
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)
1K views3 pages

Basic Cisco Switch Configuration Commands

The document provides instructions for several basic Cisco switch configuration commands, including: 1) Configuring a hostname, message of the day banner, and DNS server for a Cisco switch. 2) Turning off automatic name resolution and assigning a local name to an IP address. 3) Enabling synchronous logging and setting an inactivity time-out for automatic log-off of the console.

Uploaded by

Hamami InkaZo
Copyright
© © All Rights Reserved
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

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 [Link].sw01
[Link].sw01(config)#exit
[Link].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.

[Link]

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.
[Link].sw01>enable
[Link].sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
[Link].sw01(config)#banner motd #Welcome to
[Link].sw01.#
[Link].sw01(config)#exit
[Link].sw01#

How to enable DNS lookup for a Cisco


Switch
[Link].sw01>enable
[Link].sw01#configure terminal
Enter configuration commands, one per line.
with CNTL/Z.
[Link].sw01(config)#ip name-server
[Link]
[Link].sw01(config)#exit
[Link].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
[Link]. We can turn off this by using the following
command.
[Link].sw01>enable
[Link].sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
[Link].sw01(config)#no ip domain-lookup
[Link].sw01(config)#exit
[Link].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.
[Link].sw01>enable

[Link]

[Link].sw01#configure terminal
Enter configuration commands, one per line.
with CNTL/Z.
[Link].sw01(config)#ip host PC001
[Link]
[Link].sw01(config)#exit
[Link].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.
[Link].sw01>enable
[Link].sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
[Link].sw01(config)#line console 0
[Link].sw01(config-line)#logging synchronous
[Link].sw01(config-line)#exit
[Link].sw01(config)#exit
[Link].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.
[Link].sw01>enable
[Link].sw01#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
[Link].sw01(config)#line console 0
[Link].sw01(config-line)#exec-timeout 3 0
[Link].sw01(config-line)#exit
[Link].sw01(config)#exit
[Link].sw01#

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

[Link]

You might also like