Glossary

CLI commands for Switch

 Idi na Hrvatsku Stranicu  Specific



 To the Beginning   |   1   |   2   |   3   |   Towards the End

 Cisco - logo The following table shows the commands and their order of use to configure a Cisco switch. The commands allow the network device to be defined from the administrator's name and password to the configuration of communication protocols and various security mechanisms. Essentially, all commands and their order of use refer to the entire series of devices of this type.

==============================================================================
 Commands for configuring of Cisco Cisco switch
==============================================================================
 Commands insight into the configuration
-----------------------------------------
 (PEM) SWITCH#show version
 (PEM) SWITCH#show startup-config                                      (NVRAM)
 (PEM) SWITCH#show run
 (PEM) SWITCH#show running-config                                        (RAM)
 (PEM) SWITCH#show cdp
 (PEM) SWITCH#show cdp neighbors
 (PEM) SWITCH#dir flash
 (PEM) SWITCH#show flash
 (PEM) SWITCH#show ip
 (PEM) SWITCH#show vlan id {VNo}                              (VNo = 1 - 1005)
 (PEM) SWITCH#show vlan name /name of VLAN/
 (PEM) SWITCH#show interface fastethernet x/y
 (PEM) SWITCH#show ip interface vlan /VNo/
 (PEM) SWITCH#show mac-address-table
 (PEM) SWITCH#
 (PEM) SWITCH#
------------------------------------------------------------------------------
 Initial setup of  switch
----------------------------------
 (UEM) SWITCH>enable
 (PEM) SWITCH#show running-config
 (PEM) SWITCH#configure terminal
 (GCM) SWITCH(config)#
 (GCM) SWITCH(config)#hostname TUPKO
 (GCM) TUPKO(config)#
 (GCM) TUPKO(config)#ip host /name of 1. Router/ /IP of 1. Router/
 (GCM) TUPKO(config)#ip host /name of 2. Router/ /IP of 2. Router/
 (GCM) TUPKO(config)#ip host /name of 1. Switch/ /IP of 1. Switch/
 (GCM) TUPKO(config)#
 (GCM) TUPKO(config)#ip http server
 (GCM) TUPKO(config)#ip http port 80
 (GCM) TUPKO(config)#exit

------------------------------------------------------------------------------
-------------------------------------
 (PEM) TUPKO#
 (PEM) TUPKO#configure terminal
 (GCM) TUPKO(config)#enable password PASSWORD_1
 (GCM) TUPKO(config)#enable secret PASSWORD_2
 (GCM) TUPKO(config)#exit
 (PEM) TUPKO#
 (GCM) TUPKO(config)#line con 0
 (LCM) TUPKO(config-line)#password PASSWORD_3
 (LCM) TUPKO(config-line)#login
 (LCM) TUPKO(config-line)#<CTRL>+<Z>
 (PEM) TUPKO#
 (GCM) TUPKO(config)#line vty 0 15
 (LCM) TUPKO(config-line)#password PASSWORD_4
 (LCM) TUPKO(config-line)#login
 (LCM) TUPKO(config-line)#<CTRL>+<Z>
 (PEM) TUPKO#configure terminal
 (GCM) TUPKO(config)#
 (GCM) TUPKO(config)#interface VLAN1
 (ICM) TUPKO(config-if)#ip address /Switch-IP//SNM/
 (ICM) TUPKO(config-if)#duplex full
 (ICM) TUPKO(config-if)#speed 100
 (ICM) TUPKO(config-if)#
 (ICM) TUPKO(config-if)#no shutdown
 (ICM) TUPKO(config-if)#ip default-gateway /IP/
 (ICM) TUPKO(config-if)#<CTRL>+<Z>
 (PEM) TUPKO#
------------------------------------------------------------------------------
 Saving the configuration at NVRAM
-----------------------------------
 (PEM) TUPKO#copy running-config startup-config                    (RAM-NVRAM)
 (PEM) TUPKO#copy run start
 (PEM) TUPKO#reload
------------------------------------------------------------------------------
 Configuring of switch
--------------------------
 (PEM) TUPKO#
 (PEM) TUPKO#delete flash:vlan.dat
 (PEM) TUPKO#erase startup-config                             (erase of NVRAM)
 (PEM) TUPKO#reload
 (UEM) TUPKO>enable
 (PEM) TUPKO#clear mac-address-table {dynamic}
 (PEM) TUPKO#configure terminal
 (GCM) TUPKO(config)#
-----------------------------------------------------------------------------
----------------------------------------
 TUPKO#
 TUPKO(config)#ip default-gateway /IP-FE at Router/
 TUPKO(config)#interface VLAN 1
 TUPKO(config-if)#ip address /IP of the network - best choice is last/ /SNM/
 TUPKO(config-if)no shutdown
 TUPKO(config-if)#<CTRL>+<Z>
 TUPKO#
------------------------------------------------------------------------------
 Static MAC address
-------------------------------------
 TUPKO#
 TUPKO(config)#mac-address-table static AAAA.AAAA.AAAA fastethernet x/y vlan 1
 TUPKO(config)#
 TUPKO(config)#<CTRL>+<Z>
 TUPKO#
------------------------------------------------------------------------------
 Port security
-------------------------------------
 TUPKO#
 TUPKO(config)#interface fastethernet x/y
 TUPKO(config-if)#switchport mode {access | dinamic | trunk}
 TUPKO(config-if)#switchport mode access
 TUPKO(config-if)#switchport port-security { | | | }
 TUPKO(config-if)#<CTRL>+<Z>
 TUPKO#
------------------------------------------------------------------------------
 Port TRUNK
-------------------------------------
 TUPKO#
 TUPKO(config)#interface fastethernet x/y
 TUPKO(config-if)#switchport mode trunk
 TUPKO(config-if)#switchport trunk encapsulation {isl | dot1q}
 TUPKO(config-if)#switchport trunk allowed vlan all
 TUPKO(config-if)#<CTRL>+<Z>
 TUPKO#
------------------------------------------------------------------------------
-------------------------------------
 TUPKO#
 TUPKO#vlan database
 TUPKO(vlan)#show
 TUPKO(vlan)#
 TUPKO(vlan)#vtp {server | client}
 TUPKO(vlan)# (VLNo = 1 default)
 TUPKO(vlan)#vlan /VLNo1/ name /1. name/                     (VLNo = 2 - 1001)
 TUPKO(vlan)#vlan /VLNo2/ name /2. name/                (VLNo > 1001 reserved)
 TUPKO(vlan)#vlan /VLNo3/ name /3. name/
 TUPKO(vlan)#
 TUPKO(vlan)#no vlan /VLNo/
 TUPKO(vlan)#
 TUPKO(vlan)#show
 TUPKO(vlan)#applay
 TUPKO(vlan)#exit
 TUPKO#
 TUPKO(config)#interface fastethernet x/y
 TUPKO(config-if)#switchport mode access
 TUPKO(config-if)#switchport access vlan /VLNo/
 TUPKO(config-if)#<CTRL>+<Z>
 TUPKO#
 TUPKO(config)#interface fastethernet x/y
 TUPKO(config-if)#no switchport mode access
 TUPKO(config-if)#no switchport access vlan /VLNo/
 TUPKO(config-if)#<CTRL>+<Z>
 TUPKO#
==============================================================================

Commands are not the same as described for all types of devices, but according to the approach and its use can be concluded that they belong to the same family unit. Manufacturer periodically for your IOS make improvements that issue once and sometimes offers free of charge, as well as new versions of the operating system, which depends on the content of the agreement entered into when purchasing network equipment. Not good not to secure their support for at least a couple of years.

 To the Beginning   |   1   |   2   |   3   |   Towards the End

 Back
 Search
 Next

Citing of this page:
Radic, Drago. " Informatics Alphabet " Split-Croatia.
{Date of access}; https://informatics.buzdo.com/specific/file.
Copyright © by Drago Radic. All rights reserved.  |  Disclaimer
 Home Page
 Extras  Informatics Alphabet