Cisco:Basic commands to setup a cisco switch

Privileges mode password :

enable , configure t, enable secret test

How to lock down telnet port :

enable, configure t , line vty 0 15 , login , password test

How to lock down console port :

enable , configure t, line console 0 , login, password test

How to set logoin banner

enable, configure t, banner motd ) , Please dont log on )

How to setup host name :

enable, configure t , hostname MasterSwitch

HOw to setup logigin synchronous

enable, configure t, line console 0 , logging synchronous 
also
line vty 0 15 , logging synchronous

How to setup Time out :

configure t, line console 0, exec-timeout 800 0

How to stop domain lookup :

configure t , no ip domain-lookup

How to set-up Ip into vlan :

configure t, interface vlan 1, ip address 192.168.1.10 255.255.255.0 , no shutdown

How to setup a default gateway

configure t , ip default-gateway 192.168.1.1

How to create short cut of commands/ :

do show ip interface brief   ( From any where)

how to view what ports are connected to what’s :

show cdp neighbors
show cdp neighbors detail

How to view mac address table :

show mac-address-table

How to save config file

configure terminal
service password-encryption

How to encrypt all the password :

configure terminal
service password-encryption

Leave a Reply