Configuração inter-vlan em router e switch Multilayer

INTER-VLAN ROUTE
Configurando interface do roteador para fazer o roteamento das vlans na rede, também conhecido como inter-vlan.
Configurando sub-interface do router.
!
interface FastEthernet0/0
description ### Lan InterVlan ###
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
Configurando portas do switch em modo access para permitir o dispositivo trafegar na rede vlan.
!
interface FastEthernet0/1
switchport mode trunk
switchport nonegotiate
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
switchport nonegotiate
!
interface FastEthernet0/3
switchport access vlan 20
switchport mode access
switchport nonegotiate
!
PC1
Ip address 192.168.10.10
Mascara 255.255.255.0
Gatway 192.168.10.1
PC2
Ip address 192.168.20.10
Mascara 255.255.255.0
Gatway 192.168.20.1

#############################################

INTER-VLAN MULTILAYER SWITCH
Configurando roteamento inter-vlan no Multilayer switch.
Config_Switch Multilayer
!
ip routing
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
switchport nonegotiate
switchport port-security mac-address sticky
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
switchport nonegotiate
switchport port-security mac-address sticky
!
Criar vlans antes de configurar a interface SVI
!
Vlan10
!
Vlan20
!
interface Vlan10
description ### Lan Vlan 10 ###
ip address 192.168.10.1 255.255.255.0
!
interface Vlan20
description ### Lan Vlan 20 ###
ip address 192.168.20.1 255.255.255.0
!
PC1
Ip address 192.168.10.10
Mascara 255.255.255.0
Gatway 192.168.10.1
PC2
Ip address 192.168.20.10
Mascara 255.255.255.0
Gatway 192.168.20.1

Até o próximo post e bons estudos!!!

Anúncios