Wednesday, May 31, 2017

Some Cisco Switches Commands.

  • switch> enable            ..........................                         go to user privilege mode.

  • switch#exit.............................................................to come back on execution mode.

  • switch# config terminal  ...................................go to global configuration mode.

  • switch(config)# line console 0 
  •                            login
  •                             password 12345 .....................to apply console password.

  • switch(config)# line console 0
  •                            login
  •                            no password...............................to remove console password

  • switch (config)# enable password 12345..............to apply enable 

  • switch(config)#no enable password......................to remove enable password.

  • switch (config)#banner motd 2
  •                             write any message which you want
  •                             press 2 and Enter ......................To set banner

  • switch(config)#no banner motd.............................To remove banner.

  • switch(config)# hostname  new name.....................To set host name of switch.

  • switch(config)# int vlan 1
  •                            ip add 10.0.0.1 255.0.0.0...............To give IP address to switch

  • switch(config)#int vlan 1
  •                           no IP add.........................................To remove IP address.

  • switch# copy run start...............................................To save configuration into NVRAM

  • switch# copy run Flash..............................................To save configuration into Flash memory.

  • Switch#copy run tftp..................................................To save configuration on TFTP server

  • Switch#copy<source> <destination>.........................Syntax for save configuration.

  • Switch# erase start......................................................To erase data from NVRAM

  • Switch# erase flash.....................................................To erase data from Flash

  • Switch# reload ............................................................To restart switch.

  • Switch#vlan Database 
  •               vlan2 name sales............................................Create vlan name sales

  • Switch#config t
  •              int f0/0
  •               switchport mode trunk.................................To trunking on port fastethernet 0/0

  • Switch#show start.......................................................To see data present in NVRAM

  • Switch#show run.......................................................To see data present in SDRAM

  • Switch# show flash....................................................To see data present in Flash

  • Switch# show ip int brief...........................................To see interface status and IP                                                                                                                     
  • Switch# show mac.....................................................To see MAC address

  • Switch#show vlan......................................................To see vlan

  • Switch#show interface f0/0.......................................To see detail information about f0/0
  •          

No comments:

Post a Comment

Technical

New blog address

For future updates open given link. This blog has been shifted on new URL due to some reason. yktechvideos.blogspot.com

OS