Configurar ROTEADOR e
SWITCH:
Router>enable
Router#configure
terminal
Router(config)#hostname
Capinzal
Router(config)#enable
secret ti-redes
Router(config)#banner
motd $
Router(config)#interface
fastEthernet 0/1
Router(config-if)#ip
address 192.168.1.1 255.255.255.0
Router(config-if)#no
shutdown
Router(config-if)#exit
Router(config)#interface
ethernet 0/0/0
Router(config-if)#ip
address 192.168.1.1 255.255.255.0
Router(config-if)#no
shutdown
Configurando acesso
telnet:
Router>enable
Router#configure
terminal
Router(config)#line
vty 0 15
Router(config-line)#password
ti-redes
Router(config-line)#login
Router(config- line)#exit
Router(config)#service
password-encryption
Configurando Rota:
Router>enable
Router#configure
terminal
Router(config)#ip
route 192.168.0.0 255.255.255.0 fastEthernet 0/0
Configurando Rota
STUB:
Router>enable
Router#configure
terminal
Router(config)#ip
route 0.0.0.0 0.0.0.0 fastEthernet 0/0
Configurando Rota RIP:
Router>enable
Router#configure
terminal
Router(config)#router
rip
Router(config)#version
2
Router(config-router)#network
192.168.1.0
Router(config-router)#network
10.0.0.0
Router(config-router)#passive-interface Ethernet 0/0/0 (Não
possui roteadores conectados a ela)
Configurando VLAN:
Switch>enable
Switch#
show vlan
Switch#
configure terminal
Switch(config)#
vlan 10
Switch(config-vlan)#
name 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#
sh vlan
Configurando TRUNK:
Switch>
enable
Switch#
configure terminal
Switch(config)#
interface fastEthernet 0/1
Switch(config-if)#
switchport mode trunk
Configurando PORT SECURITY:
Switch>enable
Switch#
configure terminal
Switch (config)# interface fastEthernet
0/1
Switch (config-if)# switchport
port-security
Switch (config-if)# switchport
port-security mac-address sticky
Switch (config-if)# switchport
port-security maximum 1
Switch (config-if)# switchport port-security
violation shutdown
Switch (config-if)# show port-security
Switch (config-if)# clear port-security
sticky
Modos
de Configuração
roteador> - Modo Usuário
roteador# - Modo Privilegiado roteador> - Modo Usuário
roteador(config)# - Modo Global