Vlan Capa3 Ospf DHCP

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

VLAN – OSPF – DHCP

Se cambiará el servidor por VLAN10 en lugar de VLAN40 que era lo que tenía en un principio

Se cambiará la boca del switch de capa 3 de Fa0/1 a Fa0/24


NOTA: se cambian los puntos de acceso iniciales por AP-PT porque los que habíamos puesto no tenían wifi. La configuración quedaría como sigue:

Configuración con los nuevos puntos de acceso wifi – 2022.11.10


Configuracion SWL3 – 3650

Switch>EN
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SWL3
SWL3(config)#exit
SWL3#
%SYS-5-CONFIG_I: Configured from console by console
SWL3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SWL3#

SWL3>en
SWL3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SWL3(config)#int VLAN 10
SWL3(config-if)#ip address 192.168.10.1 255.255.255.0
SWL3(config-if)#no shut
SWL3(config-if)#exit
SWL3(config)#int VLAN 20
SWL3(config-if)#ip address 192.168.20.1 255.255.255.0
SWL3(config-if)#no shut
SWL3(config-if)#exit
SWL3(config)#int VLAN 30
SWL3(config-if)#ip address 192.168.30.1 255.255.255.0
SWL3(config-if)#no shut
SWL3(config-if)#int VLAN 40
SWL3(config-if)#ip address 192.168.40.1 255.255.255.0
SWL3(config-if)#no shut
SWL3(config-if)#exit
SWL3(config)#exit
SWL3#
%SYS-5-CONFIG_I: Configured from console by console
SWL3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SWL3#

Show vlan
interface Vlan1
no ip address
shutdown
!
interface Vlan10
mac-address 00e0.f736.0601
ip address 192.168.10.1 255.255.255.0
!
interface Vlan20
mac-address 00e0.f736.0602
ip address 192.168.20.1 255.255.255.0
!
interface Vlan30
mac-address 00e0.f736.0603
ip address 192.168.30.1 255.255.255.0
!
interface Vlan40
mac-address 00e0.f736.0604
ip address 192.168.40.1 255.255.255.0

SWL3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SWL3(config)#int VLAN 1
SWL3(config-if)#ip address 192.168.1.1 255.255.255.0
SWL3(config-if)#name ADMINISTRATIVAexit
^
% Invalid input detected at '^' marker.
SWL3(config-if)#exit
SWL3(config)#name VLAN 1 ADMINISTRATIVA
^
% Invalid input detected at '^' marker.
SWL3(config)#int VLAN 1
SWL3(config-if)#no shut

SWL3(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
SWL3(config-if)#exit
SWL3(config)#VLAN 1
SWL3(config-vlan)#name ADMINISTRATIVA
Default VLAN 1 may not have its name changed.
SWL3(config-vlan)#exit
SWL3(config)#

Damos nombre a las VLAN a excepción de la VLAN 1 que por ser la de


por defecto no es permitido…
SWL3>en
SWL3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SWL3(config)#VLAN 10
SWL3(config-vlan)#
LINK-5-CHANGED: Interface Vlan10, changed state to up
SWL3(config-vlan)#name VLAN10
SWL3(config-vlan)#VLAN 20
SWL3(config-vlan)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
SWL3(config-vlan)#name VLAN20
SWL3(config-vlan)#VLAN 30
SWL3(config-vlan)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up
SWL3(config-vlan)#name VLAN30
SWL3(config-vlan)#VLAN 40
SWL3(config-vlan)#
LINK-5-CHANGED: Interface Vlan40, changed state to up
SWL3(config-vlan)#name VLAN40
SWL3(config-vlan)#exit
SWL3(config)#exit
SWL3#
%SYS-5-CONFIG_I: Configured from console by console
SWL3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SWL3#

SWL3#show ip int brief


Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES unset down down
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/2 unassigned YES unset up up
Vlan1 192.168.1.1 YES manual up up
Vlan10 192.168.10.1 YES manual up down
Vlan20 192.168.20.1 YES manual up down
Vlan30 192.168.30.1 YES manual up down
Vlan40 192.168.40.1 YES manual up down
SWL3#

Vamos a hacer las troncales


SWL3#
SWL3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SWL3(config)#int range G0/1-2
SWL3(config-if-range)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not
be configured to "trunk" mode.
Command rejected: An interface whose trunk encapsulation is "Auto" can not
be configured to "trunk" mode.
SWL3(config-if-range)#switchport trunk encapsulation dot1q
SWL3(config-if-range)#switchport mode trunk

SWL3(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to
up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2,


changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2,


changed state to up
SWL3(config-if-range)#
SWL3(config-if-range)#exit
SWL3(config)#exit
SWL3#
%SYS-5-CONFIG_I: Configured from console by console
SWL3#sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES unset down down
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/2 unassigned YES unset up up
Vlan1 192.168.1.1 YES manual up up
Vlan10 192.168.10.1 YES manual up up
Vlan20 192.168.20.1 YES manual up up
Vlan30 192.168.30.1 YES manual up up
Vlan40 192.168.40.1 YES manual up up
SWL3#
SWL3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SWL3#
SWL3#
SWL3#sh int trunk
Port Mode Encapsulation Status Native vlan
Gig0/1 on 802.1q trunking 1
Gig0/2 on 802.1q trunking 1
Port Vlans allowed on trunk
Gig0/1 1-1005
Gig0/2 1-1005
Port Vlans allowed and active in management domain
Gig0/1 1,10,20,30,40
Gig0/2 1,10,20,30,40
Port Vlans in spanning tree forwarding state and not pruned
Gig0/1 1,10,20,30,40
Gig0/2 1,10,20,30,40

SWL3#
SWL3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SWL3(config)#int VLAN 1
SWL3(config-if)#ip address 192.168.1.1 255.255.255.0
SWL3(config-if)#no shut
SWL3(config-if)#exit
SWL3(config)#

Aunque lo anterior ya lo habíamos hecho, que es levantar y configurar


la VLAN 1 que es la de ‘por defecto’.
Vamos a establecer un dominio y configurarlo como servidor

SWL3(config)#vtp domain www.cisco.com


Changing VTP domain name from NULL to www.cisco.com
SWL3(config)#vtp password cisco
Setting device VLAN database password to cisco
SWL3(config)#exit
SWL3#
%SYS-5-CONFIG_I: Configured from console by console
SWL3#sh vtp status
VTP Version capable : 1 to 2
VTP version running : 1
VTP Domain Name : www.cisco.com
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 00D0.BCCA.1C00
Configuration last modified by 192.168.1.1 at 3-1-93 01:53:20
Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered VLAN
interface found)

Feature VLAN :
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 9
Configuration Revision : 0
MD5 digest : 0x78 0x62 0x1B 0x15 0xA2 0x40 0x82 0x85
0x96 0xAE 0x6E 0x5B 0x16 0x08 0xA7 0xBD
SWL3#

Nuevo cambio de nombre


SWL3>en
SWL3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SWL3(config)#hostname SW0L3
SW0L3(config)#exit
SW0L3#
%SYS-5-CONFIG_I: Configured from console by console
SW0L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SW0L3#

Configuramos el Switch para que sea DHCP. Esto hace que el servidor
que en un principio habíamos considerado hacerle DHCP lo hagamos pc
normal.

SW0L3>en
SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#ip dhcp vlan10 -> esto no sería correcto
SW0L3(config)#ip dhcp pool vlan10
SW0L3(dhcp-config)#network 192.168.10.0 255.255.255.0
SW0L3(dhcp-config)#default-router 192.168.10.1
SW0L3(dhcp-config)#dns-server 200.200.200.2
SW0L3(dhcp-config)#ip dhcp excluded-address 192.168.10.1 192.168.10.80
SW0L3(config)#do write
Building configuration...
[OK]
SW0L3(config)#no ip domain-lookup
SW0L3(config)#
SW0L3#
%SYS-5-CONFIG_I: Configured from console by console
SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#ip dchp pool vlan 10
^
% Invalid input detected at '^' marker.
SW0L3(config)#ip dhcp pool vlan 10
^
% Invalid input detected at '^' marker.
SW0L3(config)#ip dhcp pool vlan10
SW0L3(dhcp-config)#dns-server 200.200.200.2
SW0L3(dhcp-config)#exit

SW0L3#show run
Building configuration...

Current configuration : 1797 bytes


!
version 12.2(37)SE1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW0L3
!
!
!
ip dhcp excluded-address 192.168.10.1 192.168.10.80
!
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 200.200.200.2
!
!
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
interface Vlan10
mac-address 00e0.f736.0601
ip address 192.168.10.1 255.255.255.0
!
interface Vlan20
mac-address 00e0.f736.0602
ip address 192.168.20.1 255.255.255.0
!
interface Vlan30
mac-address 00e0.f736.0603
ip address 192.168.30.1 255.255.255.0
!
interface Vlan40
mac-address 00e0.f736.0604
ip address 192.168.40.1 255.255.255.0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
!
end

SW0L3#

En un bloc de notas copiamos la parte señalizada anteriormente y


vamos cambiando los nombres de las VLAN y las direcciones IP ya que
la que teníamos era la 10
ip dhcp excluded-address 192.168.20.1 192.168.20.80

ip dhcp pool vlan20

network 192.168.20.0 255.255.255.0

default-router 192.168.20.1

dns-server 200.200.200.2

ip dhcp excluded-address 192.168.30.1 192.168.30.80


ip dhcp pool vlan30

network 192.168.30.0 255.255.255.0

default-router 192.168.30.1

dns-server 200.200.200.2

ip dhcp excluded-address 192.168.40.1 192.168.40.80

ip dhcp pool vlan40

network 192.168.40.0 255.255.255.0

default-router 192.168.40.1

dns-server 200.200.200.2

Y luego lo copiamos a la consola

SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#ip dhcp excluded-address 192.168.20.1 192.168.20.80
SW0L3(config)#
SW0L3(config)#ip dhcp pool vlan20
SW0L3(dhcp-config)#network 192.168.20.0 255.255.255.0
SW0L3(dhcp-config)#default-router 192.168.20.1
SW0L3(dhcp-config)#dns-server 200.200.200.2
SW0L3(dhcp-config)#
SW0L3(dhcp-config)#ip dhcp excluded-address 192.168.30.1 192.168.30.80
SW0L3(config)#
SW0L3(config)#ip dhcp pool vlan30
SW0L3(dhcp-config)#network 192.168.30.0 255.255.255.0
SW0L3(dhcp-config)#default-router 192.168.30.1
SW0L3(dhcp-config)#dns-server 200.200.200.2
SW0L3(dhcp-config)#
SW0L3(dhcp-config)#ip dhcp excluded-address 192.168.40.1 192.168.40.80
SW0L3(config)#
SW0L3(config)#ip dhcp pool vlan40
SW0L3(dhcp-config)#network 192.168.40.0 255.255.255.0
SW0L3(dhcp-config)#default-router 192.168.40.1
SW0L3(dhcp-config)#dns-server 200.200.200.2
SW0L3(dhcp-config)#

Aquí nos faltó hacer un desde la parte de (config)#


Y guardamos la configuración con un copy o ‘do wr’
hostname SW0L3
!
!
!
ip dhcp excluded-address 192.168.10.1 192.168.10.80
ip dhcp excluded-address 192.168.20.1 192.168.20.80
ip dhcp excluded-address 192.168.30.1 192.168.30.80
ip dhcp excluded-address 192.168.40.1 192.168.40.80
!
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 200.200.200.2
ip dhcp pool vlan20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 200.200.200.2
ip dhcp pool vlan30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 200.200.200.2
ip dhcp pool vlan40
network 192.168.40.0 255.255.255.0
default-router 192.168.40.1
dns-server 200.200.200.2

Configuracion de la boca Fa0/1

Cambiamos la boca a la 0/24

SW0L3>en
SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#int fa0/1
SW0L3(config-if)#no switchport
SW0L3(config-if)#exit
SW0L3(config)#int Fa0/24 Cambiamos la boca para tenerlo todos igual
SW0L3(config-if)#no switchport
SW0L3(config-if)#
SW0L3(config-if)#exit
SW0L3(config)#exit
SW0L3#
%SYS-5-CONFIG_I: Configured from console by console
SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#int Fa0/24
SW0L3(config-if)#ip address 10.0.0.1 255.255.255.252
SW0L3(config-if)#no shutdown
SW0L3(config-if)#exit
SW0L3(config)#exit
SW0L3#
%SYS-5-CONFIG_I: Configured from console by console
SW0L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SW0L3#
SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#router ospf 1
IP routing not enabled
SW0L3(config)#exit
SW0L3#
%SYS-5-CONFIG_I: Configured from console by console
SW0L3#router ospf 1
^
% Invalid input detected at '^' marker.
SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#router ospf 1
IP routing not enabled
SW0L3(config)#ip routing
SW0L3(config)#router ospf 1
SW0L3(config-router)#network 192.168.10.0 0.0.0.255 area 0
SW0L3(config-router)#network 192.168.20.0 0.0.0.255 area 0
SW0L3(config-router)#network 192.168.30.0 0.0.0.255 area 0
SW0L3(config-router)#network 192.168.40.0 0.0.0.255 area 0
SW0L3(config-router)#network 192.168.1.0 0.0.0.255 area 0
SW0L3(config-router)

SW0L3#show run | begin ospf


router ospf 1
log-adjacency-changes
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
!
end

SW0L3#

Se nos había olvidado hacer esto:

SW0L3>en
SW0L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW0L3(config)#router ospf 1
SW0L3(config-router)#network 10.0.0.0 0.0.0.3 area 0
SW0L3(config-router)#
02:46:52: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.80.1 on FastEthernet0/24 from
LOADING to FULL, Loading Done
SW0L3(config-router)#exit
SW0L3(config)#do wr
Building configuration...
[OK]
SW0L3(config)#
SW0L3(config)#exit
SW0L3#
%SYS-5-CONFIG_I: Configured from console by console

SW0L3#
SWITCH SW1L3 – 2960

Cambio de nombre al switch


Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1L3
S1L3(config)#exit
S1L3#
%SYS-5-CONFIG_I: Configured from console by console
S1L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
S1L3#

Configurar las bocas Gig0/2 y Fa0/24 en modo trunk


SW1L3>en
SW1L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1L3(config)#int range g0/2,f0/24
SW1L3(config-if-range)#switchport mode trunk
SW1L3(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to up
SW1L3(config-if-range)#exit
SW1L3(config)#exit
SW1L3#
%SYS-5-CONFIG_I: Configured from console by console
SW1L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SW1L3#

Configuracion VTP de modo de operación ya que viene por defecto


como server y coje, al ser server el dominio www.cisco.com que hemos
puesto al otro server SW0L3
SW1L3>en
SW1L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1L3(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW1L3(config)#exit
SW1L3#
%SYS-5-CONFIG_I: Configured from console by console
SW1L3#show vtp status
VTP Version capable : 1 to 2
VTP version running : 1
VTP Domain Name : www.cisco.com
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 000D.BDA9.6000
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00

Feature VLAN :
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 255
Number of existing VLANs : 5
Configuration Revision : 0
MD5 digest : 0x9D 0xC7 0x19 0xCC 0x8C 0x45 0xC1 0x72
0xCF 0x2B 0xDF 0xC7 0x32 0xF2 0x67 0x84
SW1L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1L3(config)#vtp domain www.cisco.com
Domain name already set to www.cisco.com.
SW1L3(config)#vtp password cisco
Setting device VLAN database password to cisco
SW1L3(config)#
SW1L3(config)#

SW1L3#sh ip int brief


Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual up up
FastEthernet0/3 unassigned YES manual up up
FastEthernet0/4 unassigned YES manual up up
FastEthernet0/5 unassigned YES manual up up
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual up up
GigabitEthernet0/1 unassigned YES manual up up
GigabitEthernet0/2 unassigned YES manual up up
Vlan1 unassigned YES manual administratively down down
SW1L3#

SW1L3#sh run
Building configuration...

Current configuration : 1125 bytes


!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW1L3
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
switchport mode trunk
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end

SW1L3#

Realizamos una copia de la configuracion


SW1L3#
SW1L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SW1L3#

Vemos si están activas las VLAN


SW1L3#sh vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Gig0/1
10 VLAN10 active
20 VLAN20 active
30 VLAN30 active
40 VLAN40 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
40 enet 100040 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

Remote SPAN VLANs


------------------------------------------------------------------------------

Primary Secondary Type Ports


------- --------- ----------------- ------------------------------------------
SW1L3#

Configuracion PC VLAN 10
SW1L3>en
SW1L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1L3(config)#int fa0/5
SW1L3(config-if)#switchport mode access
SW1L3(config-if)#switchport access vlan 10
SW1L3(config-if)#do wr
Building configuration...
[OK]
SW1L3(config-if)#

Configuracion de las bocas a las que acceden los PCs


SW1L3>en
SW1L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1L3(config)#int Fa0/1
SW1L3(config-if)#switchport mode access
SW1L3(config-if)#switchport access vlan 10
SW1L3(config-if)#int Fa0/2
SW1L3(config-if)#switchport mode access
SW1L3(config-if)#switchport access vlan 40
SW1L3(config-if)#int Fa0/3
SW1L3(config-if)#switchport mode access
SW1L3(config-if)#switchport access vlan 30
SW1L3(config-if)#int Fa0/4
SW1L3(config-if)#switchport mode access
SW1L3(config-if)#switchport access vlan 20
SW1L3(config-if)#int Fa0/5
SW1L3(config-if)#switchport mode access
SW1L3(config-if)#switchport access vlan 10
SW1L3(config-if)#
Configuracion boca Gig0/1
SW1L3>en
SW1L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1L3(config)#int Gig0/1
SW1L3(config-if)#switchport mode access
SW1L3(config-if)#switchport access vlan 10
SW1L3(config-if)#

Ponemos dirección IP a la VLAN 1


SW1L3>en
SW1L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1L3(config)#int VLAN 1
SW1L3(config-if)#ip address 192.168.1.50 255.255.255.0
SW1L3(config-if)#no shut
SW1L3(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
SW1L3(config-if)#
SW1L3(config-if)#exit
SW1L3(config)#ip default-gateway 192.168.1.1
SW1L3(config)#
SWITCH SW2L3 – 2960

Cambiamos el nombre
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2L3
SW2L3(config)#

Configuramos el switch
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2L3
SW2L3(config)#int range Gig0/2,Fa0/24
SW2L3(config-if-range)#switchport mode trunk
SW2L3(config-if-range)#exit
SW2L3(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW2L3(config)#vtp domain www.cisco.com
Domain name already set to www.cisco.com.
SW2L3(config)#vtp password cisco
Setting device VLAN database password to cisco
SW2L3(config)#

Guardamos la configuración
SW2L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SW2L3#

Configuracion de las bocas de acceso de los Pcs


SW2L3>en
SW2L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW2L3(config)#int Fa0/1
SW2L3(config-if)#switchport mode access
SW2L3(config-if)#switchport access vlan 10
SW2L3(config-if)#int Fa0/2
SW2L3(config-if)#switchport mode access
SW2L3(config-if)#switchport access vlan 20
SW2L3(config-if)#int Fa0/3
SW2L3(config-if)#switchport mode access
SW2L3(config-if)#switchport access vlan 30
SW2L3(config-if)#

Configuramos la boca Gig0/1


SW2L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW2L3(config)#int Gig0/1
SW2L3(config-if)#switchport mode access
SW2L3(config-if)#switchport access vlan 40
SW2L3(config-if)#

Y procedemos a copiar la configuración tb.


SW2L3#
%SYS-5-CONFIG_I: Configured from console by console
SW2L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SW2L3#

Configuracion VLAN 1 y gateway por defecto


SW2L3>en
SW2L3#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW2L3(config)#int VLAN 1
SW2L3(config-if)#ip address 192.168.1.60 255.255.255.0
SW2L3(config-if)#no shutdown
SW2L3(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed
state to up
SW2L3(config-if)#exit
SW2L3(config)#ip default-gateway 192.168.1.1
SW2L3(config)#exit
SW2L3#
%SYS-5-CONFIG_I: Configured from console by console
SW2L3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
SW2L3#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2
seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0
ms
SW2L3#
Configuración del Router
Lo primero que vamos a hacer es un cambio de nombre a R0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R0
R0(config)#

Configuramos la boca Fa0/1


R0(config)#int Fa0/1
R0(config-if)#ip address 10.0.0.2 255.255.255.252
R0(config-if)#no shutdown
R0(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to up
R0(config-if)#

Comprobamos conexión
R0#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
0/0/0 ms
R0#

Configuracion Boca Fa0/0


R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
R0(config)#int Fa0/0
R0(config-if)#ip address 192.168.2.1 255.255.255.0
R0(config-if)#no shut
R0(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
changed state to up
R0(config-if)#

Encapsulado en cada una de las subredes


R0>en
R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
R0(config)#int Fa0/0.50
R0(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.50, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0.50, changed state to up
R0(config-subif)#encapsulation dot1q 50
R0(config-subif)#ip address 192.168.50.1 255.255.255.0
R0(config-subif)#int Fa0/0.60
R0(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.60, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0.60, changed state to up
R0(config-subif)#encapsulation dot1q 60
R0(config-subif)#ip address 192.168.60.1 255.255.255.0
R0(config-subif)#int Fa0/0.70
R0(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.70, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0.70, changed state to up
R0(config-subif)#encapsulation dot1q 70
R0(config-subif)#ip address 192.168.70.1 255.255.255.0
R0(config-subif)#int Fa0/0.80
R0(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.80, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0.80, changed state to up
R0(config-subif)#encapsulation dot1q 80
R0(config-subif)#ip address 192.168.80.1 255.255.255.0
R0(config-subif)#exit
R0(config)#exit
R0#
%SYS-5-CONFIG_I: Configured from console by console
R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
R0#

Revisión
R0#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.2.1 YES manual up up
FastEthernet0/0.50 192.168.50.1 YES manual up up
FastEthernet0/0.60 192.168.60.1 YES manual up up
FastEthernet0/0.70 192.168.70.1 YES manual up up
FastEthernet0/0.80 192.168.80.1 YES manual up up
FastEthernet0/1 10.0.0.2 YES manual up up
Vlan1 unassigned YES unset administratively down down
R0#

Configuración OSPF en el router


R0#
R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
R0(config)#router ospf 1
R0(config-router)#network 192.168.50.0 0.0.0.255 area 0
R0(config-router)#network 192.168.60.0 0.0.0.255 area 0
R0(config-router)#network 192.168.70.0 0.0.0.255 area 0
R0(config-router)#network 192.168.80.0 0.0.0.255 area 0
R0(config-router)#network 192.168.2.0 0.0.0.255 area 0
R0(config-router)#network 10.0.0.0 0.0.0.3 area 0
R0(config-router)#exit
R0(config)#do wr
Building configuration...
[OK]
R0(config)#
R0(config)#

R0#show ip int brief


Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.2.1 YES manual up up
FastEthernet0/0.50 192.168.50.1 YES manual up up
FastEthernet0/0.60 192.168.60.1 YES manual up up
FastEthernet0/0.70 192.168.70.1 YES manual up up
FastEthernet0/0.80 192.168.80.1 YES manual up up
FastEthernet0/1 10.0.0.2 YES manual up up
Vlan1 unassigned YES unset administratively down down
R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
R0(config)#int Fa0/0.50
R0(config-subif)#ip helper-address 192.168.10.100
R0(config-subif)#int Fa0/0.60
R0(config-subif)#ip helper-address 192.168.10.100
R0(config-subif)#int Fa0/0.70
R0(config-subif)#ip helper-address 192.168.10.100
R0(config-subif)#int Fa0/0.80
R0(config-subif)#ip helper-address 192.168.10.100
R0(config-subif)#exit
R0(config)#exit
R0#
%SYS-5-CONFIG_I: Configured from console by console
R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
R0#
Configuración del Switch S1R0

Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1R0
S1R0(config)#int Fa0/24
S1R0(config-if)#switchport mode trunk
S1R0(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/24, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/24, changed state to up
S1R0(config-if)#int Fa0/23
S1R0(config-if)#switchport mode trunk
S1R0(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/23, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/23, changed state to up
S1R0(config-if)#exit
S1R0(config)#exit
S1R0#
%SYS-5-CONFIG_I: Configured from console by console
S1R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
S1R0#

Y ahora el router tiene la siguiente configuración de todas las


rutas
Seguimos configurando el switch. Damos nombres a las VLANs
S1R0>en
S1R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
S1R0(config)#vlan 50
S1R0(config-vlan)#name VLAN50
S1R0(config-vlan)#vlan 60
S1R0(config-vlan)#name VLAN60
S1R0(config-vlan)#vlan 70
S1R0(config-vlan)#name VLAN70
S1R0(config-vlan)#vlan 80
S1R0(config-vlan)#name VLAN80
S1R0(config-vlan)#

Configuración de las bocas de los PCs


S1R0(config-if)#int Fa0/3
S1R0(config-if)#switchport mode access
S1R0(config-if)#switchport access vlan 70
S1R0(config-if)#int Fa0/2
S1R0(config-if)#switchport mode access
S1R0(config-if)#switchport access vlan 60
S1R0(config-if)#int Fa0/1
S1R0(config-if)#switchport mode access
S1R0(config-if)#switchport access vlan 50
S1R0(config-if)#int Fa0/4
S1R0(config-if)#switchport mode access
S1R0(config-if)#switchport access vlan 80

S1R0>en
S1R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
S1R0(config)#int range Fa0/1-5
S1R0(config-if-range)#switchport mode access
S1R0(config-if-range)#exit
S1R0(config)#int Fa0/1
S1R0(config-if)#switchport acces VLAN50
^
% Invalid input detected at '^' marker.
S1R0(config-if)#switchport access VLAN 50
S1R0(config-if)#int Fa0/2
S1R0(config-if)#switchport access VLAN 60
S1R0(config-if)#int Fa0/3
S1R0(config-if)#switchport access VLAN 70
S1R0(config-if)#int Fa0/4
S1R0(config-if)#switchport access VLAN 80
S1R0(config-if)#
Configuracion Switch 3 como S3R0
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S3R0
S3R0(config)#exit
S3R0#
%SYS-5-CONFIG_I: Configured from console by console
S3R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
S3R0#

Show vtp status


S1R0(config)#exit
S1R0#
%SYS-5-CONFIG_I: Configured from console by console
show vtp status
VTP Version capable : 1 to 2
VTP version running : 1
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 0001.C998.5800
Configuration last modified by 0.0.0.0 at 3-1-93 03:02:36
Local updater ID is 0.0.0.0 (no valid interface found)

Feature VLAN :
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 255
Number of existing VLANs : 9
Configuration Revision : 8
MD5 digest : 0xD0 0x0E 0x2C 0x76 0xC9 0x8C 0x68 0x11
0xF0 0x07 0x97 0x49 0x0B 0xFC 0x8A 0x70
S1R0#

Ponemos como dominio www.edu.com


Ahora el switch quedaría como:
La Fa0/24 se pone como troncal (son las de los pcs las que se
ponen como mode Access)
S3R0>en
S3R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
S3R0(config)#int Fa0/24
S3R0(config-if)#switchport mode trunk
S3R0(config-if)#switchport non
S3R0(config-if)#exit
S3R0(config)#exit
S3R0#
%SYS-5-CONFIG_I: Configured from console by console
S3R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
S3R0#

Lo ponemos en modo cliente


S3R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
S3R0(config)#vtp mode client
Setting device to VTP CLIENT mode.
S3R0(config)#
Configuración de las bocas de los PCs
S3R0>en
S3R0#config t
Enter configuration commands, one per line. End with CNTL/Z.
S3R0(config)#int range Fa0/1-4
S3R0(config-if-range)#switchport mode access
S3R0(config-if-range)#exit
S3R0(config)#int Fa0/1
S3R0(config-if)#switchport access VLAN 50
S3R0(config-if)#int Fa0/2
S3R0(config-if)#switchport access VLAN 60
S3R0(config-if)#int Fa0/3
S3R0(config-if)#switchport access VLAN 70
S3R0(config-if)#int Fa0/4
S3R0(config-if)#switchport access VLAN 80
S3R0(config-if)#exit
S3R0(config)#exit
S3R0#
%SYS-5-CONFIG_I: Configured from console by console
S3R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
S3R0#
Configuracion Switch 4 como S4R0

Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S4R0
S4R0(config)#exit
S4R0#
%SYS-5-CONFIG_I: Configured from console by console
S4R0#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
S4R0#
2022.11.15 Configuracion manual del servidor DHCP. Al principio lo
habíamos dejado como un pc normal pero ahora lo vamos a
configurar como un servidor DHCP para las VLANs 50 a 80

You might also like