Buscar

comandos de config de um switch

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

## Configurações Básicas ##
hostname RT_01
no ip domain-lookup
enable secret cisco
service password-encryption
banner motd #ACESSO RESTRITO#
username admin secret cisco
line console 0
 login local
line vty 0 4
 login local
ipv6 unicast-routing
ip cef
ipv6 cef
----------------------------------------------------------
## Configuração SSHv2 ##
hostname RT_01
ip domain-name cisco.com
crypto key generate rsa general-keys modulus 2048
ip ssh version 2 
ip ssh time-out 30 
ip ssh authentication-retries 4
line vty 0 4 
transport input ssh 
exec-timeout 5
--------------------------------------------------------------
## Configuração de interfaces ## 
interface g0/1
 description LINK-TO-INTERNET
 ip add 201.0.0.2 255.255.255.252
 ipv6 add 2001:cafe:face:b00c::2/64
 ipv6 add FE80::2 link-local
 no shutdown
interface g0/0
 description LINK-TO-SW_01
 ip add 192.168.10.1 255.255.255.0
 ipv6 add 2001:db8:acad:10::1/64
 ipv6 add FE80::1 link-local
 no shutdown
----------------------------------------------------------------
## Configuração DHCPv4 ##
"comando para ver a tabela DHCP"
do show ip dhcp pool
do show ip dhcp binding
ip dhcp excluded-address 192.168.10.1
ip dhcp excluded-address 192.168.10.2
ip dhcp pool LAN
 network 192.168.10.0 255.255.255.0
 default-router 192.168.10.1
 dns-server 8.8.8.8
----------------------------------------------------------------
## DHCPv6 Stateless ##
ipv6 dhcp pool LAN
 dns-server 2001:4860:4860::8888
interface g0/0
 ipv6 dhcp server LAN
 ipv6 nd other-config-flag
----------------------------------------------------------------
## Restaurar configurações fábrica ##
Router#erase startup-config
Router#reload
------------------------------------------------------------------
------------------------------------------------------------------
## Configurações básicas SW_01 ##
enable
clock set 13:17:00 27 april 2021
configure terminal
hostname SW_01
no ip domain-lookup
enable secret cisco
service password-encryption
banner motd #ACESSO RESTRITO#
username admin secret cisco
line console 0
 login local
line vty 0 4 
 login local
-----------------------------------------------------------------
## Configuração de endereçamento IP (Gerenciamento) ##
interface vlan1
 description Interface-Gerenciamento
 ip add 192.168.10.2 255.255.255.0
 no shutdown
ip default-gateway 192.168.10.1
------------------------------------------------------------------
## Roteamento Estático Padrão (Default) ##
ip route 0.0.0.0 0.0.0.0 201.0.0.1
ipv6 route ::/0 g0/1 FE80::1
INTERNET(config)#interface g0/0
INTERNET(config-if)#ipv6 add FE80::1 link-local
------------------------------------------------------------------
## Rota Estática Roteador INTERNET ##
ipv6 route 2001:db8:acad:10::/64 g0/0 FE80::2
--------------------------------------------------------------------
## Configuração das interfaces ##
interface g0/1
 description LINK-TO-ISP
 ip add 201.0.0.2 255.255.255.252
 ipv6 add 2001:cafe:face:b00c::2/64
 ipv6 add FE80::2 link-local
 no shutdown
interface g0/0
 description LINK-TO-SW_01
 ip add 192.168.10.1 255.255.255.0
 ipv6 add 2001:db8:acad:10::1/64
 ipv6 add FE80::1 link-local
 no shutdown
-------------------------------------------------------------------
## Configuração SSHv2 ##
hostname RT_01
ip domain-name cisco.com
crypto key generate rsa general-keys modulus 2048
ip ssh version 2
ip ssh authentication-retries 3
ip ssh time-out 10
line vty 0 4
 transport input ssh
 exec-timeout 5

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Continue navegando