Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Switch>enable

Switch#configure terminal
Switch(config)#hostname MESA2
MESA2(config)#banner motd #SOLO PERSONAL AUTORIZADO#
MESA2(config)#enable secret cisco
MESA2(config)#line console 0
MESA2(config-line)#password cisco
MESA2(config-line)#login
MESA2(config-line)#exit
MESA2(config)#line vty 0 15
MESA2(config-line)#password cisco
MESA2(config-line)#login
MESA2(config-line)#exit
MESA2(config)#exit
MESA2#
MESA2#vlan database
MESA2(vlan)#vlan 2 name mesa2
VLAN 2 added:
Name: mesa2
MESA2(vlan)#exit
APPLY completed.
Exiting....
MESA2#conf t
MESA2(config)#interface range fastethernet 0/1 - 19
MESA2(config-if-range)#switchport mode access
MESA2(config-if-range)#switchport access vlan 2
MESA2(config-if-range)#exit
MESA2(config)#interface vlan 2
MESA2(config-if)#ip address 192.168.10.2 255.255.255.224
MESA2(config-if)#no shutdown
MESA2(config-if)#ip default-gateway 192.168.10.1
MESA2(config)#exit
MESA2#configure terminal
MESA2(config)#$tic 0026.540e.8c50 interface fastethernet 0/10 vlan 2
MESA2(config)#$tic 0013.d3de.1ebc interface fastethernet 0/9 vlan 2
MESA2(config)#

MESA2#configure terminal
MESA2(config)#no mac-address-table static 0013.d3de.1ebc interface fastetherne$
MESA2(config)#
MESA2(config)#exit
MESA2#
MESA2#vlan database
MESA2(vlan)#vlan 2 name empresa1
VLAN 2 added:
Name: empresa1
MESA2(vlan)#vlan 3 name empresa2
VLAN 3 added:
Name: empresa2
MESA2(vlan)#vlan 4 name empresa3
VLAN 4 added:
Name: empresa3
MESA2(vlan)#exit
APPLY completed.
Exiting....
MESA2#
MESA2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
MESA2(config)#interface range fastethernet 0/1 -4
MESA2(config-if-range)#switchport mode access
MESA2(config-if-range)#switchport access vlan 2
MESA2(config-if-range)#exit
MESA2(config)#interface range fastethernet 0/5 -8
MESA2(config-if-range)#switchport mode access
MESA2(config-if-range)#switchport access vlan 3
MESA2(config-if-range)#exit
MESA2(config)#interface range fastethernet 0/9 -12
MESA2(config-if-range)#switchport mode access
MESA2(config-if-range)#switchport access vlan 3
MESA2(config-if-range)#switchport access vlan 4
MESA2(config-if-range)#exit
MESA2(config)#interface range fastethernet 0/5 -8
MESA2(config-if-range)#switchport mode access
MESA2(config-if-range)#switchport access vlan 3
MESA2(config-if-range)#exit
MESA2(config)#exit

MESA2#vlan database
MESA2(vlan)#no vlan 2
Deleting VLAN 2...
MESA2(vlan)#exit
APPLY completed.
Exiting....
MESA2#
MESA2#delete flash:vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
MESA2#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [con
firm]
[OK]
Erase of nvram: complete
MESA2#reload

You might also like