You are on page 1of 1

Criar VLAN R1(config - if)# encapsulation dot1Q 10

R1(config - if)# ip address 192.168.10.1


SW1(config)# vlan 10 255.255.255.0
SW1(config-vlan)# name alunos R1(config - if)# exit
SW1(config)# vlan 20
SW1(config-vlan)# name admin VLAN 20
SW1(config)# vlan 30 R1(config)# interface gigabitEthernet 0/0.20
SW1(config-vlan)# name geral R1(config - if)# encapsulation dot1Q 20
R1(config - if)# ip address 192.168.20.1
255.255.255.0
Configurar Trunk R1(config - if)# exit

SW1(config)# interface range gigabitEthernet VLAN 30


0/1-2 R1(config)# interface gigabitEthernet 0/0.30
SW1(config-if-range)# switchport mode trunk R1(config - if)# encapsulation dot1Q 30
SW1(config-if-range)# switchport trunk allowed R1(config - if)# ip address 192.168.30.1
vlan 10,20,30 255.255.255.0
SW1(config-if-range)# exit R1(config - if)# exit

Configurar interfaces de acesso ###################### Exemplo


configuração DHCP ################
SW1(config)# interface range FastEthernet 0/7-12
SW1(config-if-range)# switchport mode access R2(config)# ip dhcp excluded-address
SW1(config-if-range)# switchport access vlan 10 192.168.0.1 192.168.0.50
SW1(config-if-range)# exit R2(config)# ip dhcp pool VLAN 10
R2(dhcp-config)# network 192.168.0.0
SW1(config)# interface range FastEthernet 255.255.255.0
0/13-18 R2(dhcp-config)# default-router 192.168.0.1
SW1(config-if-range)# switchport mode access R2(dhcp-config)# dns-server 8.8.8.8
SW1(config-if-range)# switchport access vlan 20 R2(dhcp-config)# domain-name ccna-lab.com
SW1(config-if-range)# exit R2(dhcp-config)# lease 2
R2(dhcp-config)# exit
SW1(config)# interface range FastEthernet
0/19-24
SW1(config-if-range)# switchport mode access ######################## Broadcast DHCP
SW1(config-if-range)# switchport access vlan 30 #######################
SW1(config-if-range)# exit
Router(config)#interface gigabitEthernet 0/0/0
Router(config-if)#ip helper-address 192.168.5.1
Troubleshooting

SW1# show vlan ############# Routeamento Dinamico#######


SW1# show vlan brief
SW1# show vlan id 10 RIP V2

R2(config)# router rip


Roteamento entre VLAN R2(config)# version 2
R2(config)# network 192.168.0.48
R2(config)# network 192.168.0.0
VLAN 10
R2(config)# network 192.168.0.12
R1(config)# interface gigabitEthernet 0/0
R2(config)# no auto-summary
R1(config - if)# no shutdown
R2(config)# passive interface g0/2
R1(config - if)# exit

R1(config)# interface gigabitEthernet 0/0.10

You might also like