You are on page 1of 4

Configuración de Vlans

Código

############3

ESW1

$#############

vlan database

vlan 10 name sistemas

vlan 20 name electronica

vlan 30 name industrial

exit

conf t

int range f1/0 - 1

switchport mode trunk

no sh

exit

int range f1/2 - 4

switchport mode access

switchport access vlan 10

no sh
exit

int range f1/5 - 9

switchport mode access

switchport access vlan 20

no sh

exit

int range f1/10 - 15

switchport mode access

switchport access vlan 30

no sh

exit

############3

ESW2

$#############

vlan database

vlan 10 name sistemas

vlan 20 name electronica

vlan 30 name industrial

exit

conf t

int range f1/1

switchport mode trunk

no sh

exit

int range f1/2 - 4

switchport mode access

switchport access vlan 10

no sh

exit

int range f1/5 - 9

switchport mode access


switchport access vlan 20

no sh

exit

int range f1/10 - 15

switchport mode access

switchport access vlan 30

no sh

exit

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

R1

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

conf t

int f0/0

no sh

exit

int f0/0.1

encapsulation dot1Q 10

ip add 10.0.10.1 255.255.255.0

no sh

exit

int f0/0.2

encapsulation dot1Q 20

ip add 10.0.20.1 255.255.255.0

no sh

exit

int f0/0.3

encapsulation dot1Q 30

ip add 10.0.30.1 255.255.255.0

no sh

exit
#####

maquinas

########

ip 10.0.10.3/24 10.0.10.1

ip 10.0.20.3/24 10.0.20.1

ip 10.0.30.3/24 10.0.30.1

ip 10.0.10.4/24 10.0.10.1

ip 10.0.20.4/24 10.0.20.1

ip 10.0.30.4/24 10.0.30.1

You might also like