martes, 1 de noviembre de 2011

Unir redes VLAN en un Router CISCO

Se desea enrutar don redes vlan.
Para este ejemplo, tengo dos redes:

Red 1: 192.168.1.0/24
vlan 10 name sistemas

Red 2: 192.168.2.0/24
vlan 20 name electronica





CONFIGURACIÓN DEL SWITCH


enable
configure terminal
Creacion de VLAN
vlan 10 
name SISTEMAS 
exit 
vlan 20 
name ELECTRONICA
exit 


Asignacion de un puerto a una VLAN
interface fastEthernet 0/1 
switchport access vlan 10
exit 
interface fastEthernet 0/2 
switchport access vlan 10
exit  

interface fastEthernet 0/3
switchport access vlan 20
exit 
interface fastEthernet 0/4
switchport access vlan 20
exit 

El puerto 24 es el que se comunicará con el router por eso lo definimos en modo trun
interface fastEthernet 0/24
switchport mode trunk
exit 

CONFIGURACION DEL ROUTER
interface fastEthernet 0/0.1 
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0 

exit 
 interface fastEthernet 0/0.2 
encapsulation dot1Q 20
ip address 192.168.2.0 255.255.255.0 

exit
 
interface fastEthernet 0/0

no shutdown

No hay comentarios:

Publicar un comentario