Comandos Básicos Cisco

De MediaWiKi

Comandos Básicos de Cisco[editar]

Configurando um nome

Switch>enable
Switch#configure terminal
Switch(config)#hostname sw01vkn8
sw01vkn8#

Configurando senha enable

Switch>enable
Switch#configure terminal
Switch(config)#enable password cisco

Configurando senha enable secret

Router>enable
Router#configure terminal
Router(config)#enable secret cisco@10

Configurando senha da console

Router>enable
Router#configure terminal
Router(config)#line console 0
Router(config-line)#password cisco@123

Configurando acesso telnet para 05 usuários

Switch>enable
Switch#configure terminal
Switch(config)#line vty 0 4
Switch(config-line)#login
Switch(config-line)#password cisco@123

Configurando o endereço IP do switch

Switch>enable
Switch#configure terminal
Switch(config)#interface vlan 1
Switch(config-if)#ip address 10.0.10.1 255.255.255.0
Switch(config-if)#no shutdown

Configurando o gateway do switch

Switch>enable
Switch#configure terminal
Switch(config)#ip default-gateway 10.0.10.1         

Configurando vlan no switch

Switch>enable
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#name dep-administrativo
Switch(config-vlan)#exit
Switch(config)#

Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#exit
Switch#sh vlan

Configurando trunk no switch

Switch>enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk