omnisecu.com free mcse ccna rhce linux java learning  
Home Knowldege Base FAQ Contact Us Sitemap
omnisecu.com free mcse ccna rhce linux java learning  
omnisecu.com free mcse ccna rhce linux java learning
Home » Knowledge Base » Cisco Certified Network Associate (CCNA) » Basic Cisco Switch Configuration Commands
 

Basic Cisco Switch Configuration Commands

 

How to Configure a hostname for a Cisco Switch

To configure a name for router, use "hostname" command from Global Configuration mode.

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

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. 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. End with CNTL/Z.
omnisecu.com.sw01(config)#ip name-server 192.168.100.10
omnisecu.com.sw01(config)#exit
omnisecu.com.sw01#

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

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#

 

Related Topics...

Introduction to Network Switches

Difference between Network Switches and Bridges

Methods of Switching

Difference between Half-duplex and Full-duplex Switching

Functions of a Network Switch

What is switch management VLAN and how to configure Management VLAN

 


 
 
eXTReMe Tracker

back
next
 
Disclaimer | Feed Back | Trademarks | Knowledge Base | FAQ | Sitemap | Downloads