You are on page 1of 1

sw>ena

sw#config t
sw(config)#interface vlan1
sw(config_t)#ip address 192.168.10.2 255.255.255.240
sw(config_t)#no shutdown
creando vlans
CREANDO VLANS
sw(config)#vlan database
sw(vlan)#vlan2 name VLAN DOS
sw(vlan)# exit
sw(config)# int fastethernet 0/2
sw(config_if)#switchport access vlan2
,
CREANDO UN TRONCAL
sw(config)#int fa 0/4
sw(config_if)#switchport mode trunk
sw(config_if)#no shutdown
ASIGNANDO DEFAULT GATEWAY AL SWITCH
sw(config_if)#exit
sw(config)#ip default-gateway 192.168.10.14
sw(config)# exit
sw#show run
sw#show vlan
CONFIGURANDO ROUTER
router>ena
router#config t
router(config)#int fa 0/0
router(config_if)#ip address 192.168.19.14 255.255.255.0
router(config_if)#no shutdown
router(config_if)# exit
router(config)#int fa0/0.2
router(config_subif)#encapsulation dot1q 2
router(config_subif)#ip address 192.168.19.17 255.255.255.240
VOLVIENDO AL SWITCH PARA EL SEGUNDO DEFAULT GATEWAY
sw(config)#ip default-gateway 192.168.10.14
sw(config)#ip default-gateway 192.168.10.17

You might also like