You are on page 1of 2

/////////////// SWITCH 1 ///////////////////////

--> CREAR VLANS


Switch>ENABLE
Switch#VLAN DATABASE
% Warning: It is recommended to configure VLAN from config mode ...
Switch(vlan)#vlan 30 name VLAN30
VLAN 30 added:
Name: VLAN30
Switch(vlan)#vlan 20 name VLAN20
VLAN 20 added:
Name: VLAN20
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#
Switch#conf t
--> TRUNCAR EL SWITCH
SW1(config)#int f0/3
SW1(config-if)#sw mode trunk
--> Vlans
SW1(config-if)#int f0/1
SW1(config-if)#sw mode access
SW1(config-if)#sw access vlan 30
SW1(config-if)#int f0/2
SW1(config-if)#sw mode access
SW1(config-if)#sw access vlan 20
SW1(config-if)#int f0/4
SW1(config-if)#sw mode trunk
/////////////// SWITCH 2 ///////////////////////
Switch>enable
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vlan 20 name VLAN20
VLAN 20 added:
Name: VLAN20
Switch(vlan)#vlan 30 name VLAN30
VLAN 30 added:
Name: VLAN30
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#
Switch#enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#int f0/1

Switch(config-if)#sw mode access


Switch(config-if)#sw access vlan 20
Switch(config-if)#int f0/2
Switch(config-if)#sw mode access
2. Switch(config-if)#sw access vlan 30
3. Switch(config-if)#int f0/3
4. Switch(config-if)#sw mode trunk
Switch(config-if)#exit
NOTA: Los fastEthernet con cable cruzado (lineas pausadas o entrecortadas) son a
quienes se les hara el truncado (lineas 2,3,4)
--> CONFIGURANDO ROUTER
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#int f0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed stat
e to up
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 192.168.20.1 255.255.255.0
Router(config-subif)#int f0/0.30
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed stat
e to up
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip address 192.168.30.1 255.255.255.0
Router(config-subif)#exit
switchport mode trunk
/////////////////////////////////////////////////////////////////
Otro modo
SW_CUBA >enable
SW_CUBA# configure terminal
SW_CUBA(config-vlan)# vlan 10
SW_CUBA(config-vlan)# name UCV