03112024 - Configuração VLAN Switch
03112024 - Configuração VLAN Switch
03112024 - Configuração VLAN Switch
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1
Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
============================================
==========================Configuração VLAN’s
Roteador
Router>enable
Router#clock set 12:06:00 03 november 2024
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#banner motd "Equipamento Monitorado"
R1(config)#banner login "Sua conexao esta com o IP gravado"
R1(config)#service password-encryption
R1(config)#enable secret redes
R1(config)#line console 0
R1(config-line)#password aula
R1(config-line)#login
R1(config-line)#line aux 0
R1(config-line)#password aula
R1(config-line)#login
R1(config-line)#line vty 0 4
R1(config-line)#password aula
R1(config-line)#login
R1(config-line)#session-limit 2
R1(config-line)#exit
R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
R1(config-if)#exit
R1(config)#ip dhcp excluded-address 192.168.0.1
R1(config)#ip dhcp pool dhcp-vlan10
R1(dhcp-config)#network 192.168.0.0 255.255.255.224
R1(dhcp-config)#default-router 192.168.0.1
R1(dhcp-config)#exit
R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
R1(config-if)#exit
R1(config)#ip dhcp excluded-address 172.31.0.1 172.31.0.5
R1(config)#ip dhcp pool dhcp-server
R1(dhcp-config)#network 172.31.0.0 255.255.255.0
R1(dhcp-config)#default-router 172.31.0.1
R1(dhcp-config)#exit
R1(config)#