Páginas

sábado, 27 de febrero de 2021

Configurar VLAN Trunks y Routing Cisco

Packet Tracer 7


1.- En todos los Switches de Valencia, configurar Trunk utilizando trunk encapsulation, y asegúrese de que el trunk no se convierta dinámicamente en un puerto de acceso.

2.- Crear VLANs 10 (STATIC) 10.16.0.0/24, 20 (VoIP) 10.16.2.0/24, 30 (PUBLIC) 10.16.4.0/23, 40 (CLIENT) 10.16.6.0/23 en todos los Switches manualmente o utilizando VTP.

3.- Limitar todos los Trunks para llevar sólo VLANs 1, 10, 20.

4.- Configurar R1-AS como un Router on a Stick (ROAS) que proporcione enrutamiento entre clientes en VLAN 10 y VLAN 20.

Configuración inicial

R1#wrt
Translating "wit"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address

Si no necesita tener un servidor DNS configurado para su router, utilice el comando no ip domain-lookup para deshabilitar el proceso de traducción de DNS:

Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#no ip domain-lookup 
RT01-VA(config)#do wri
Building configuration...
[OK]
RT01-VA(config)#

MAN#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
MAN(config)#no ip domain-lookup
MAN(config)#do wri
Building configuration...
[OK]
MAN(config)#

RT02-BCN#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT02-BCN(config)#no ip domain-lookup 
RT02-BCN(config)#do wri
Building configuration...
[OK]

TR03-ZA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
TR03-ZA(config)#no ip domain-lookup 
TR03-ZA(config)#do wri

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#no ip domain-lookup 
Core2(config)#do wri

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#no ip domain-l
Core1(config)#no ip domain-lookup 
Core1(config)#do wri

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#no ip domain-l
Access(config)#no ip domain-lookup 
Access(config)#do wri

En todos los Switches de Valencia, configurar Trunk utilizando trunk encapsulation, y asegúrese de que el trunk no se convierta dinámicamente en un puerto de acceso.

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#interface gigabitEthernet 1/0/1
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/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

Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/2
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to up

Core1(config-if)#exit
Core1(config)#sw
Core1(config)#inter
Core1(config)#interface g
Core1(config)#interface gigabitEthernet 1/0/23
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/23, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/23, changed state to up

Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/24
Core1(config-if)#switchport trunk encapsulation dot1q 
Core1(config-if)#switchport mode trunk 

Core1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to up

Core1(config-if)#do wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core1(config-if)#

Core2(config)#inter
Core2(config)#interface g
Core2(config)#interface gigabitEthernet 1/0/1
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode trunk 

Core2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to up

Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/23
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode trunk 
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/24
Core2(config-if)#switchport trunk encapsulation dot1q 
Core2(config-if)#switchport mode trunk 
Core2(config-if)#exit
Core2(config)#do wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core2(config)#

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#inter
Access(config)#interface fa
Access(config)#interface fastEthernet 0/1
Access(config-if)#sw
Access(config-if)#switchport mode
Access(config-if)#switchport mode tr
Access(config-if)#switchport mode trunk 
Access(config-if)#exit
Access(config)#interface fastEthernet 0/2
Access(config-if)#switchport mode trunk 

Crear las VLANs en los Switches: Core1, Core2 y Access:

Core1(config)#vlan 10
Core1(config-vlan)#name STATIC
Core1(config-vlan)#exit
Core1(config)#vlan 20
Core1(config-vlan)#name VoIP
Core1(config-vlan)#exit
Core1(config)#vlan 30
Core1(config-vlan)#name PUBLIC
Core1(config-vlan)#exit
Core1(config)#vlan 40 
Core1(config-vlan)#name CLIENT
Core1(config-vlan)#exit
Core1(config)#inter
Core1(config)#interface vlan 10
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Core1(config-if)#exit
Core1(config)#interface vlan 20
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Core1(config-if)#exit
Core1(config)#interface vlan 30
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Core1(config-if)#exit
Core1(config)#interface vlan 40
Core1(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#vlan 10
Core2(config-vlan)#name STATIC
Core2(config-vlan)#exit
Core2(config)#vlan 20
Core2(config-vlan)#name VoIP
Core2(config-vlan)#exit
Core2(config)#vlan 30
Core2(config-vlan)#name PUBLIC
Core2(config-vlan)#exit
Core2(config)#vlan 40
Core2(config-vlan)#name CLIENT
Core2(config-vlan)#exit
Core2(config)#interface vlan 10
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 20
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 30
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Core2(config-if)#exit
Core2(config)#interface vlan 40
Core2(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

Core2(config-if)#exit

Access>en
Access#conf t
Access(config)#vlan 10
Access(config-vlan)#name STATIC
Access(config-vlan)#exit
Access(config)#vlan 20
Access(config-vlan)#name VoIP
Access(config-vlan)#exit
Access(config)#vlan 30
Access(config-vlan)#name PUBLIC
Access(config-vlan)#exit
Access(config)#vlan 40
Access(config-vlan)#name CLIENT
Access(config-vlan)#exit
Access(config)#inter
Access(config)#interface vlan 10
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Access(config-if)#exit
Access(config)#inter
Access(config)#interface vlan 20
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

Access(config-if)#exit
Access(config)#inter
Access(config)#interface vlan 30
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

Access(config-if)#exit
Access(config)#inter
Access(config)#interface vlan 40
Access(config-if)#
%LINK-5-CHANGED: Interface Vlan40, changed state to up

Access(config-if)#exit
Access(config)#do wri
Building configuration...
[OK]

Access(config)#do 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, Fa0/24
                                    Gig0/1, Gig0/2
10   STATIC                  active    
20   VoIP                    active    
30   PUBLIC                  active    
40   CLIENT                  active    
1002 fddi-default            act/unsup 
1003 token-ring-default      act/unsup 
1004 fddinet-default         act/unsup 
1005 trnet-default           act/unsup 

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0

Access(config)#do wri
Building configuration...
[OK]
Access(config)#

Limitar todos los Trunks para llevar sólo las VLANs 1, 10, 20.

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#interface gigabitEthernet 1/0/1
Core1(config-if)#switchport trunk allowed vlan 1,10,20

Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/2
Core1(config-if)#switchport trunk allowed vlan 1,10,20
Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/23
Core1(config-if)#switchport trunk allowed vlan 1,10,20
Core1(config-if)#exit
Core1(config)#interface gigabitEthernet 1/0/24
Core1(config-if)#switchport trunk allowed vlan 1,10,20
Core1(config-if)#exit
Core1(config)#^Z
Core1#
%SYS-5-CONFIG_I: Configured from console by console

Core1#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core1#sh inter
Core1#sh interfaces tr
Core1#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Gig1/0/1    on           802.1q         trunking      1
Gig1/0/2    on           802.1q         trunking      1
Gig1/0/23   on           802.1q         trunking      1
Gig1/0/24   on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig1/0/1    1,10,20
Gig1/0/2    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans allowed and active in management domain
Gig1/0/1    1,10,20
Gig1/0/2    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Gig1/0/1    1,10,20
Gig1/0/2    1,10,20
Gig1/0/23   none
Gig1/0/24   none

Core1#

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#interface gigabitEthernet 1/0/1
Core2(config-if)#switchport trunk allowed vlan 1,10,20
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/23
Core2(config-if)#switchport trunk allowed vlan 1,10,20
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/24
Core2(config-if)#exit
Core2(config)#interface gigabitEthernet 1/0/24
Core2(config-if)#switchport trunk allowed vlan 1,10,20
Core2(config-if)#


Core2#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Gig1/0/1    on           802.1q         trunking      1
Gig1/0/23   on           802.1q         trunking      1
Gig1/0/24   on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig1/0/1    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans allowed and active in management domain
Gig1/0/1    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Gig1/0/1    1,10,20
Gig1/0/23   1,10,20
Gig1/0/24   1,10,20

Core2#

Access#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Access(config)#interface fastEthernet 0/1
Access(config-if)#switchport trunk allowed vlan 1,10,20
Access(config-if)#exit
Access(config)#interface fastEthernet 0/2
Access(config-if)#switchport trunk allowed vlan 1,10,20
Access(config-if)#end
Access#
%SYS-5-CONFIG_I: Configured from console by console

Access#wri
Building configuration...
[OK]

Access#sh interfaces trunk 
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/2       on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       1,10,20
Fa0/2       1,10,20

Port        Vlans allowed and active in management domain
Fa0/1       1,10,20
Fa0/2       1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       20
Fa0/2       20

Access#

Configurar R1-AS como un Router on a Stick (ROAS), que proporcione enrutamiento entre clientes en VLAN 10 y VLAN 20.

RT01-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#interface vlan 10
RT01-VA(config-if)#ip address 10.16.0.1 255.255.255.0
%LINK-5-CHANGED: Interface Vlan10, changed state to up

RT01-VA(config-if)#exit
RT01-VA(config)#interface vlan 20
RT01-VA(config-if)#ip address 10.16.2.1 255.255.255.0
%LINK-5-CHANGED: Interface Vlan20, changed state to up

RT01-VA(config-if)exit
RT01-VA(config)#interface vlan 30
RT01-VA(config-if)#ip address 10.16.4.1 255.255.254.0
%LINK-5-CHANGED: Interface Vlan30, changed state to up

RT01-VA(config-if)exit
RT01-VA(config)#interface vlan 40
RT01-VA(config-if)#ip address 10.16.6.1 255.255.254.0
%LINK-5-CHANGED: Interface Vlan30, changed state to up

RT01-VA(config-if)#end
RT01-VA#WRI

RT01-VA#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
FastEthernet0/0/0      unassigned      YES unset  up                    up 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.1       YES manual up                    down 
Vlan20                 10.16.2.1       YES manual up                    down 
Vlan30                 10.16.4.1       YES manual up                    down 
Vlan40                 10.16.6.1       YES manual up                    down

La interfaz el Router RT01-VA tiene que estar up y configurada en mode Trunk 
RT01-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#interface fastEthernet 0/0/0 
RT01-VA(config-if)#no shut
RT01-VA(config-if)#switchport mode trunk 

RT01-VA(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, 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

RT01-VA(config-if)#^Z
RT01-VA#
%SYS-5-CONFIG_I: Configured from console by console

RT01-VA#wri
Building configuration...
[OK]
RT01-VA#sh ip inter
RT01-VA#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
FastEthernet0/0/0      unassigned      YES unset  up                    up 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.1       YES manual up                    up 
Vlan20                 10.16.2.1       YES manual up                    up 
Vlan30                 10.16.4.1       YES manual up                    up 
Vlan40                 10.16.6.1       YES manual up                    up
RT01-VA#

Sólo dejaremos pasar las VLANs 1, 10, 20:

RT01-VA(config)#interface fastEthernet 0/0/0
RT01-VA(config-if)#switchport trunk allowed vlan 1,10,20

RT01-VA(config-if)#do sh inter trunk
Port        Mode         Encapsulation  Status        Native vlan
Fa0/0/0     on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/0/0     1,10,20

Port        Vlans allowed and active in management domain
Fa0/0/0     1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/0/0     20

Configurar las interfaces fa0/3 y fa0/4 en modo access, vlan 10 (PC1) y vlan 20 (PC2) respectivamente:

Access(config)#interface fastEthernet 0/3
Access(config-if)#switchport mode access 
Access(config-if)#switchport access vlan 10
Access(config-if)#exit
Access(config)#interface fastEthernet 0/4
Access(config-if)#switchport mode access 
Access(config-if)#switchport access vlan 20
Access(config-if)#^Z
Access#
%SYS-5-CONFIG_I: Configured from console by console

Access#wri
Building configuration...
[OK]
Access#

Comprobamos la comunicación entre PC1 y PC2



Asignar direcionamiento IP Metropolitan Area Network (MAN), subred 172.16.0.0/28:


RT02-BCN#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT02-BCN(config)#interface gigabitEthernet 0/0
RT02-BCN(config-if)#ip address 172.16.0.6 255.255.255.240
RT02-BCN(config-if)#no shut

RT02-BCN(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

RT01-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT01-VA(config)#interface gigabitEthernet 0/0
RT01-VA(config-if)#ip address 172.16.0.5 255.255.255.240
RT01-VA(config-if)#no shut

RT01-VA(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

RT01-VA(config-if)#

TR03-ZA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
TR03-ZA(config)#inter
TR03-ZA(config)#interface g
TR03-ZA(config)#interface gigabitEthernet 0/0
TR03-ZA(config-if)#ip add
TR03-ZA(config-if)#ip address 172.16.0.7 255.255.255.240
TR03-ZA(config-if)#no shut

TR03-ZA(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

Hacer ping para comprobar conectividad entre los Routers:

TR03-ZA#ping 172.16.0.6

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.6, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/1/2 ms

TR03-ZA#ping 172.16.0.6

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

TR03-ZA#ping 172.16.0.5

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms

Cisco es genial!.

martes, 16 de febrero de 2021

Cisco Implementar OSPF


Implementar OSPF Lab Multilayer Switches y Routers:

Configurar Core1, Core2, R1, R2 y R3

1.- Usar process ID 1, y todas las redes dentro de area 0.
2.- Usar 32 bits declaraciones de red exactas para loopback.
3.- Usar declaraciones de red /21 para NV, VA, y ZA /21.
4.- Para la red 10.16.7.0/28 utilizar coincidencia exacta.

Wildcard mask 32  = 0.0.0.0
Wildcard mask /21 = 0.0.7.255
Wildcard mask /28 = 0.0.0.15

Bloque de direcciones NV = 10.16.0.0/21
Bloque de direcciones VA = 10.16.0.0/21
Bloque de direcciones ZA = 10.16.0.0/21



Direccionamiento IP en WAN - 10.16.7.0/28

R1-NV#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1-NV(config)#interface gigabitEthernet 0/1

R1-NV(config-if)#ip add

R1-NV(config-if)#ip address 10.16.7.5 255.255.255.240

R1-NV(config-if)#no shut

%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up


R2-VA#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R2-VA(config)#interface gigabitEthernet 0/0

R2-VA(config-if)#ip address 10.16.7.6 255.255.255.240

R2-VA(config-if)#no shut

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up


R3-FL#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R3-FL(config)#int

R3-FL(config)#interface g

R3-FL(config)#interface gigabitEthernet 0/0

R3-FL(config-if)#ip add

R3-FL(config-if)#ip address 10.16.7.7 255.255.255.240

R3-FL(config-if)#no shut

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up



Que Core1 sea el Switch Root de la red:

Convertir Core1 Root de la RED:

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

Core1(config)#spanning-tree vlan 1,10,20,30,40 root primary 

Sólo aparecen las VLANs activas 1,10,20

Core1#sh spanning-tree 
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    24577
             Address     0090.0C7E.AE96
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    24577  (priority 24576 sys-id-ext 1)
             Address     0090.0C7E.AE96
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/0/1          Desg FWD 4         128.1    P2p
Gi1/0/2          Desg FWD 19        128.2    P2p
Gi1/0/14         Desg FWD 4         128.14   P2p
Gi1/0/15         Desg FWD 4         128.15   P2p

VLAN0010
  Spanning tree enabled protocol ieee
  Root ID    Priority    24586
             Address     0090.0C7E.AE96
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    24586  (priority 24576 sys-id-ext 10)
             Address     0090.0C7E.AE96
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/0/1          Desg FWD 4         128.1    P2p
Gi1/0/2          Desg FWD 19        128.2    P2p
Gi1/0/14         Desg FWD 4         128.14   P2p
Gi1/0/15         Desg FWD 4         128.15   P2p

VLAN0020
  Spanning tree enabled protocol ieee
  Root ID    Priority    24596
             Address     0090.0C7E.AE96
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    24596  (priority 24576 sys-id-ext 20)
             Address     0090.0C7E.AE96
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi1/0/1          Desg FWD 4         128.1    P2p
Gi1/0/2          Desg FWD 19        128.2    P2p
Gi1/0/14         Desg FWD 4         128.14   P2p
Gi1/0/15         Desg FWD 4         128.15   P2p


Crear direccionamiento IP y las interfaces loopback:

Core1 :

Core1#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet1/0/1   unassigned      YES unset  up                    up 
GigabitEthernet1/0/2   unassigned      YES unset  up                    up 
GigabitEthernet1/0/3   unassigned      YES unset  down                  down 
GigabitEthernet1/0/4   unassigned      YES unset  down                  down 
GigabitEthernet1/0/5   unassigned      YES unset  down                  down 
GigabitEthernet1/0/6   unassigned      YES unset  down                  down 
GigabitEthernet1/0/7   unassigned      YES unset  down                  down 
GigabitEthernet1/0/8   unassigned      YES unset  down                  down 
GigabitEthernet1/0/9   unassigned      YES unset  down                  down 
GigabitEthernet1/0/10  unassigned      YES unset  down                  down 
GigabitEthernet1/0/11  unassigned      YES unset  down                  down 
GigabitEthernet1/0/12  unassigned      YES unset  down                  down 
GigabitEthernet1/0/13  unassigned      YES unset  down                  down 
GigabitEthernet1/0/14  unassigned      YES unset  up                    up 
GigabitEthernet1/0/15  unassigned      YES unset  up                    up 
GigabitEthernet1/0/16  unassigned      YES unset  down                  down 
GigabitEthernet1/0/17  unassigned      YES unset  down                  down 
GigabitEthernet1/0/18  unassigned      YES unset  down                  down 
GigabitEthernet1/0/19  unassigned      YES unset  down                  down 
GigabitEthernet1/0/20  unassigned      YES unset  down                  down 
GigabitEthernet1/0/21  unassigned      YES unset  down                  down 
GigabitEthernet1/0/22  unassigned      YES unset  down                  down 
GigabitEthernet1/0/23  unassigned      YES unset  down                  down 
GigabitEthernet1/0/24  unassigned      YES unset  down                  down 
GigabitEthernet1/1/1   unassigned      YES unset  down                  down 
GigabitEthernet1/1/2   unassigned      YES unset  down                  down 
GigabitEthernet1/1/3   unassigned      YES unset  down                  down 
GigabitEthernet1/1/4   unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 unassigned      YES unset  up                    up 
Vlan20                 unassigned      YES unset  up                    up 
Vlan30                 unassigned      YES unset  up                    down 
Vlan40                 unassigned      YES unset  up                    down
Core1#sh ip route
Default gateway is not set

Host               Gateway           Last Use    Total Uses  Interface
ICMP redirect cache is empty

Core1#

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#inter
Core1(config)#interface vlan 10
Core1(config-if)#ip add
Core1(config-if)#ip address 10.16.0.2 255.255.255.0
Core1(config-if)#exit
Core1(config)#interface vlan 20
Core1(config-if)#ip address 10.16.2.2 255.255.255.0
Core1(config-if)#exit
Core1(config)#interface vlan 30
Core1(config-if)#ip address 10.16.4.2 255.255.254.0
Core1(config-if)#exit
Core1(config)#interface vlan 40
Core1(config-if)#ip address 10.16.6.2 255.255.254.0
Core1(config-if)#exit
Core1(config)#inter
Core1(config)#interface loo
Core1(config)#interface loopback 0

Core1(config-if)#
%LINK-5-CHANGED: Interface Loopback0, changed state to up

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

Core1(config-if)#ip add
Core1(config-if)#ip address 11.11.11.11 255.255.255.255
Core1(config-if)#end
Core1#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]

Core1#sh ip inte
Core1#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet1/0/1   unassigned      YES unset  up                    up 
GigabitEthernet1/0/2   unassigned      YES unset  up                    up 
GigabitEthernet1/0/3   unassigned      YES unset  down                  down 
GigabitEthernet1/0/4   unassigned      YES unset  down                  down 
GigabitEthernet1/0/5   unassigned      YES unset  down                  down 
GigabitEthernet1/0/6   unassigned      YES unset  down                  down 
GigabitEthernet1/0/7   unassigned      YES unset  down                  down 
GigabitEthernet1/0/8   unassigned      YES unset  down                  down 
GigabitEthernet1/0/9   unassigned      YES unset  down                  down 
GigabitEthernet1/0/10  unassigned      YES unset  down                  down 
GigabitEthernet1/0/11  unassigned      YES unset  down                  down 
GigabitEthernet1/0/12  unassigned      YES unset  down                  down 
GigabitEthernet1/0/13  unassigned      YES unset  down                  down 
GigabitEthernet1/0/14  unassigned      YES unset  up                    up 
GigabitEthernet1/0/15  unassigned      YES unset  up                    up 
GigabitEthernet1/0/16  unassigned      YES unset  down                  down 
GigabitEthernet1/0/17  unassigned      YES unset  down                  down 
GigabitEthernet1/0/18  unassigned      YES unset  down                  down 
GigabitEthernet1/0/19  unassigned      YES unset  down                  down 
GigabitEthernet1/0/20  unassigned      YES unset  down                  down 
GigabitEthernet1/0/21  unassigned      YES unset  down                  down 
GigabitEthernet1/0/22  unassigned      YES unset  down                  down 
GigabitEthernet1/0/23  unassigned      YES unset  down                  down 
GigabitEthernet1/0/24  unassigned      YES unset  down                  down 
GigabitEthernet1/1/1   unassigned      YES unset  down                  down 
GigabitEthernet1/1/2   unassigned      YES unset  down                  down 
GigabitEthernet1/1/3   unassigned      YES unset  down                  down 
GigabitEthernet1/1/4   unassigned      YES unset  down                  down 
Loopback0              11.11.11.11     YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.2       YES manual up                    up 
Vlan20                 10.16.2.2       YES manual up                    up 
Vlan30                 10.16.4.2       YES manual up                    down 
Vlan40                 10.16.6.2       YES manual up                    down
Core1#

Core 2 :

Core2#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet1/0/1   unassigned      YES unset  down                  down 
GigabitEthernet1/0/2   unassigned      YES unset  up                    up 
GigabitEthernet1/0/3   unassigned      YES unset  down                  down 
GigabitEthernet1/0/4   unassigned      YES unset  down                  down 
GigabitEthernet1/0/5   unassigned      YES unset  down                  down 
GigabitEthernet1/0/6   unassigned      YES unset  down                  down 
GigabitEthernet1/0/7   unassigned      YES unset  down                  down 
GigabitEthernet1/0/8   unassigned      YES unset  down                  down 
GigabitEthernet1/0/9   unassigned      YES unset  down                  down 
GigabitEthernet1/0/10  unassigned      YES unset  down                  down 
GigabitEthernet1/0/11  unassigned      YES unset  down                  down 
GigabitEthernet1/0/12  unassigned      YES unset  down                  down 
GigabitEthernet1/0/13  unassigned      YES unset  down                  down 
GigabitEthernet1/0/14  unassigned      YES unset  up                    up 
GigabitEthernet1/0/15  unassigned      YES unset  up                    up 
GigabitEthernet1/0/16  unassigned      YES unset  down                  down 
GigabitEthernet1/0/17  unassigned      YES unset  down                  down 
GigabitEthernet1/0/18  unassigned      YES unset  down                  down 
GigabitEthernet1/0/19  unassigned      YES unset  down                  down 
GigabitEthernet1/0/20  unassigned      YES unset  down                  down 
GigabitEthernet1/0/21  unassigned      YES unset  down                  down 
GigabitEthernet1/0/22  unassigned      YES unset  down                  down 
GigabitEthernet1/0/23  unassigned      YES unset  down                  down 
GigabitEthernet1/0/24  unassigned      YES unset  down                  down 
GigabitEthernet1/1/1   unassigned      YES unset  down                  down 
GigabitEthernet1/1/2   unassigned      YES unset  down                  down 
GigabitEthernet1/1/3   unassigned      YES unset  down                  down 
GigabitEthernet1/1/4   unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 unassigned      YES unset  up                    up 
Vlan20                 unassigned      YES unset  up                    up 
Vlan30                 unassigned      YES unset  up                    down 
Vlan40                 unassigned      YES unset  up                    down
Core2#sh ip route
Default gateway is not set

Host               Gateway           Last Use    Total Uses  Interface
ICMP redirect cache is empty

Core2#

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#inter
Core2(config)#interface vlan 10
Core2(config-if)#ip add
Core2(config-if)#ip address 10.16.0.3 255.255.255.0
Core2(config-if)#exit
Core2(config)#interface vlan 20
Core2(config-if)#ip address 10.16.2.3 255.255.255.0
Core2(config-if)#exit
Core2(config)#interface vlan 30
Core2(config-if)#ip address 10.16.4.3 255.255.254.0
Core2(config-if)#exit
Core2(config)#interface vlan 40
Core2(config-if)#ip address 10.16.6.3 255.255.254.0
Core2(config-if)#exit
Core2(config)#interface loopback 0
Core2(config-if)#ip address 22.22.22.22 255.255.255.255 

Core2(config-if)#
%LINK-5-CHANGED: Interface Loopback0, changed state to up

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

Core2(config-if)#^Z
Core2#
%SYS-5-CONFIG_I: Configured from console by console

Core2#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]

Core2#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet1/0/1   unassigned      YES unset  down                  down 
GigabitEthernet1/0/2   unassigned      YES unset  up                    up 
GigabitEthernet1/0/3   unassigned      YES unset  down                  down 
GigabitEthernet1/0/4   unassigned      YES unset  down                  down 
GigabitEthernet1/0/5   unassigned      YES unset  down                  down 
GigabitEthernet1/0/6   unassigned      YES unset  down                  down 
GigabitEthernet1/0/7   unassigned      YES unset  down                  down 
GigabitEthernet1/0/8   unassigned      YES unset  down                  down 
GigabitEthernet1/0/9   unassigned      YES unset  down                  down 
GigabitEthernet1/0/10  unassigned      YES unset  down                  down 
GigabitEthernet1/0/11  unassigned      YES unset  down                  down 
GigabitEthernet1/0/12  unassigned      YES unset  down                  down 
GigabitEthernet1/0/13  unassigned      YES unset  down                  down 
GigabitEthernet1/0/14  unassigned      YES unset  up                    up 
GigabitEthernet1/0/15  unassigned      YES unset  up                    up 
GigabitEthernet1/0/16  unassigned      YES unset  down                  down 
GigabitEthernet1/0/17  unassigned      YES unset  down                  down 
GigabitEthernet1/0/18  unassigned      YES unset  down                  down 
GigabitEthernet1/0/19  unassigned      YES unset  down                  down 
GigabitEthernet1/0/20  unassigned      YES unset  down                  down 
GigabitEthernet1/0/21  unassigned      YES unset  down                  down 
GigabitEthernet1/0/22  unassigned      YES unset  down                  down 
GigabitEthernet1/0/23  unassigned      YES unset  down                  down 
GigabitEthernet1/0/24  unassigned      YES unset  down                  down 
GigabitEthernet1/1/1   unassigned      YES unset  down                  down 
GigabitEthernet1/1/2   unassigned      YES unset  down                  down 
GigabitEthernet1/1/3   unassigned      YES unset  down                  down 
GigabitEthernet1/1/4   unassigned      YES unset  down                  down 
Loopback0              22.22.22.22     YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down 
Vlan10                 10.16.0.3       YES manual up                    up 
Vlan20                 10.16.2.3       YES manual up                    up 
Vlan30                 10.16.4.3       YES manual up                    down 
Vlan40                 10.16.6.3       YES manual up                    down
Core2#

Router 1 (R1-NV):

R1-NV#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  up                    up 
GigabitEthernet0/0.10  10.16.0.1       YES manual up                    up 
GigabitEthernet0/0.20  10.16.2.1       YES manual up                    up 
GigabitEthernet0/1     10.16.7.5       YES manual up                    up 
GigabitEthernet0/2     193.37.255.2    YES DHCP   up                    up 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES unset  down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Vlan1                  unassigned      YES unset  administratively down down
R1-NV# 

R1-NV#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1-NV(config)#interface lo
R1-NV(config)#interface loopback 0

R1-NV(config-if)#
%LINK-5-CHANGED: Interface Loopback0, changed state to up

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

R1-NV(config-if)#ip address 1.1.1.1 255.255.255.255
R1-NV(config-if)#^Z
R1-NV#
%SYS-5-CONFIG_I: Configured from console by console

R1-NV#
R1-NV#wri
Building configuration...
[OK]

R1-NV#sh ip inter
R1-NV#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  up                    up 
GigabitEthernet0/0.10  10.16.0.1       YES manual up                    up 
GigabitEthernet0/0.20  10.16.2.1       YES manual up                    up 
GigabitEthernet0/1     10.16.7.5       YES manual up                    up 
GigabitEthernet0/2     193.37.255.2    YES DHCP   up                    up 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Serial0/1/0            unassigned      YES unset  down                  down 
Serial0/1/1            unassigned      YES unset  down                  down 
Loopback0              1.1.1.1         YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down
R1-NV#


Router 2 (R2-VA):

R2-VA#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     10.16.7.6       YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  up                    up 
GigabitEthernet0/1.10  10.16.8.1       YES manual up                    up 
GigabitEthernet0/1.20  10.16.10.1      YES manual up                    up 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Vlan1                  unassigned      YES unset  administratively down down
R2-VA#

R2-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2-VA(config)#inter
R2-VA(config)#interface lo
R2-VA(config)#interface loopback 0

R2-VA(config-if)#
%LINK-5-CHANGED: Interface Loopback0, changed state to up

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

R2-VA(config-if)#ip address 2.2.2.2 255.255.255.0
R2-VA(config-if)#^Z
R2-VA#
%SYS-5-CONFIG_I: Configured from console by console

R2-VA#wri
Building configuration...
[OK]

R2-VA#sh ip inte
R2-VA#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     10.16.7.6       YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  up                    up 
GigabitEthernet0/1.10  10.16.8.1       YES manual up                    up 
GigabitEthernet0/1.20  10.16.10.1      YES manual up                    up 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Loopback0              2.2.2.2         YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down
R2-VA#
R2-VA#wri
Building configuration...
[OK]
R2-VA#

Router 3 (R3-ZA):

R3-FL#sh ip inter

R3-FL#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     10.16.7.7       YES manual up                    up 
GigabitEthernet0/1     10.16.16.1      YES manual up                    up 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Loopback0              3.3.3.3         YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down
R3-FL#

R3-FL#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R3-FL(config)#interface loo
R3-FL(config)#interface loopback 0

R3-FL(config-if)#
%LINK-5-CHANGED: Interface Loopback0, changed state to up

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

R3-FL(config-if)#ip address 3.3.3.3 255.255.255.0
R3-FL(config-if)#^Z
R3-FL#
%SYS-5-CONFIG_I: Configured from console by console

R3-FL#wri
Building configuration...
[OK]
R3-FL#sh ip inter
R3-FL#sh ip interface b
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     10.16.7.7       YES manual up                    up 
GigabitEthernet0/1     192.168.3.1     YES manual up                    up 
GigabitEthernet0/2     unassigned      YES unset  administratively down down 
FastEthernet0/0/0      unassigned      YES unset  up                    down 
FastEthernet0/0/1      unassigned      YES unset  up                    down 
FastEthernet0/0/2      unassigned      YES unset  up                    down 
FastEthernet0/0/3      unassigned      YES unset  up                    down 
Loopback0              3.3.3.3         YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down
R3-FL#

Implementar OSPF:

Core1#sh ip route connected
 C   10.16.0.0/24  is directly connected, Vlan10
 C   10.16.2.0/24  is directly connected, Vlan20
 C   11.11.11.11/32  is directly connected, Loopback0

Core1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core1(config)#ip routing 
Core1(config)#router
Core1(config)#router ospf 1
Core1(config-router)#network 22.22.22.22 0.0.0.0 area 0
Core1(config-router)#netwo
Core1(config-router)#network 10.16.0.0 0.0.7.255 area 0
Core1(config-router)#^Z
Core1#
%SYS-5-CONFIG_I: Configured from console by console

Core1#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core1#

Core1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 2 subnets
C       10.16.0.0 is directly connected, Vlan10
C       10.16.2.0 is directly connected, Vlan20
     11.0.0.0/32 is subnetted, 1 subnets
C       11.11.11.11 is directly connected, Loopback0

Core1#sh ip protocols 

Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set 
  Incoming update filter list for all interfaces is not set 
  Router ID 11.11.11.11
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    22.22.22.22 0.0.0.0 area 0
    10.16.0.0 0.0.7.255 area 0
  Routing Information Sources:  
    Gateway         Distance      Last Update 
    11.11.11.11          110      00:01:21
  Distance: (default is 110)

Core1#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Core1#


Core2:

Core2#sh ip route connected 
 C   10.16.0.0/24  is directly connected, Vlan10
 C   10.16.2.0/24  is directly connected, Vlan20
 C   22.22.22.22/32  is directly connected, Loopback0

Core2#

Core2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Core2(config)#ip routing
Core2(config)#router ospf 1
Core2(config-router)#networ
Core2(config-router)#network 22.22.22.22 0.0.0.0 area 0
Core2(config-router)#network 10.16.0.0 0.0.7.255 area 0
Core2(config-router)#^Z
Core2#
%SYS-5-CONFIG_I: Configured from console by console

Core2#wri
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]

Core2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 2 subnets
C       10.16.0.0 is directly connected, Vlan10
C       10.16.2.0 is directly connected, Vlan20
     22.0.0.0/32 is subnetted, 1 subnets
C       22.22.22.22 is directly connected, Loopback0

00:44:53: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Vlan10 from LOADING to FULL, Loading Done
r
00:44:53: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on Vlan20 from LOADING to FULL, Loading Done

Core2#sh ip protocols 
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set 
  Incoming update filter list for all interfaces is not set 
  Router ID 22.22.22.22
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    22.22.22.22 0.0.0.0 area 0
    10.16.0.0 0.0.7.255 area 0
  Routing Information Sources:  
    Gateway         Distance      Last Update 
    11.11.11.11          110      00:00:10
    22.22.22.22          110      00:00:10
  Distance: (default is 110)

Core2#


Router 1 (R1-NV):

R1-NV#sh ip route connected 
 C   1.1.1.1/32  is directly connected, Loopback0
 C   10.16.0.0/24  is directly connected, GigabitEthernet0/0.10
 C   10.16.2.0/24  is directly connected, GigabitEthernet0/0.20
 C   10.16.7.0/28  is directly connected, GigabitEthernet0/1
 C   193.37.255.0/30  is directly connected, GigabitEthernet0/2

R1-NV(config)#router ospf 1
R1-NV(config-router)#networ
R1-NV(config-router)#network 1.1.1.1 0.0.0.0 area 1
R1-NV(config-router)#network 10.16.8.0 0.0.7.255 area 0
R1-NV(config-router)#network 10.16.0.0 0.0.7.255 area 0
R1-NV(config-router)#
03:02:40: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on GigabitEthernet0/0.10 from LOADING to FULL, Loading Done

03:02:40: %OSPF-5-ADJCHG: Process 1, Nbr 22.22.22.22 on GigabitEthernet0/0.10 from LOADING to FULL, Loading Done

03:02:40: %OSPF-5-ADJCHG: Process 1, Nbr 11.11.11.11 on GigabitEthernet0/0.20 from LOADING to FULL, Loading Done

03:02:40: %OSPF-5-ADJCHG: Process 1, Nbr 22.22.22.22 on GigabitEthernet0/0.20 from LOADING to FULL, Loading Done

R1-NV(config-router)#

R1-NV#wri
Building configuration...
[OK]

R1-NV#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 193.37.255.1 to network 0.0.0.0

     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1/32 is directly connected, Loopback0
     10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks
C       10.16.0.0/24 is directly connected, GigabitEthernet0/0.10
L       10.16.0.1/32 is directly connected, GigabitEthernet0/0.10
C       10.16.2.0/24 is directly connected, GigabitEthernet0/0.20
L       10.16.2.1/32 is directly connected, GigabitEthernet0/0.20
C       10.16.7.0/28 is directly connected, GigabitEthernet0/1
L       10.16.7.5/32 is directly connected, GigabitEthernet0/1
     22.0.0.0/32 is subnetted, 1 subnets
O       22.22.22.22/32 [110/2] via 10.16.0.3, 00:00:28, GigabitEthernet0/0.10
                       [110/2] via 10.16.2.3, 00:00:28, GigabitEthernet0/0.20
     193.37.255.0/24 is variably subnetted, 2 subnets, 2 masks
C       193.37.255.0/30 is directly connected, GigabitEthernet0/2
L       193.37.255.2/32 is directly connected, GigabitEthernet0/2
S*   0.0.0.0/0 [254/0] via 193.37.255.1

R1-NV#sh ip protocols 

Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set 
  Incoming update filter list for all interfaces is not set 
  Router ID 1.1.1.1
  Number of areas in this router is 2. 2 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    1.1.1.1 0.0.0.0 area 1
    10.16.8.0 0.0.7.255 area 0
    10.16.0.0 0.0.7.255 area 0
  Routing Information Sources:  
    Gateway         Distance      Last Update 
    1.1.1.1              110      00:12:13
    2.2.2.2              110      00:12:13
    3.3.3.3              110      00:09:04
    11.11.11.11          110      00:19:25
    22.22.22.22          110      00:19:25
  Distance: (default is 110)

R1-NV#sh ip ospf ne
R1-NV#sh ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   FULL/BDR        00:00:38    10.16.7.6       GigabitEthernet0/1
3.3.3.3           1   FULL/DROTHER    00:00:36    10.16.7.7       GigabitEthernet0/1
11.11.11.11       1   FULL/BDR        00:00:35    10.16.0.2       GigabitEthernet0/0.10
22.22.22.22       1   FULL/DR         00:00:35    10.16.0.3       GigabitEthernet0/0.10
22.22.22.22       1   FULL/DR         00:00:35    10.16.2.3       GigabitEthernet0/0.20
11.11.11.11       1   FULL/BDR        00:00:35    10.16.2.2       GigabitEthernet0/0.20
R1-NV#


Router 2 (R2-VA):

R2-VA#sh ip route connected 
 C   2.2.2.0/24  is directly connected, Loopback0
 C   10.16.7.0/28  is directly connected, GigabitEthernet0/0
 C   10.16.8.0/24  is directly connected, GigabitEthernet0/1.10
 C   10.16.10.0/24  is directly connected, GigabitEthernet0/1.20

R2-VA#

R2-VA#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2-VA(config)#router ospf 1
R2-VA(config-router)#network 2.2.2.2 0.0.0.0 area 0
R2-VA(config-router)#network 10.16.8.0 0.0.7.255 area 0
R2-VA(config-router)#network 10.16.7.0 0.0.0.15 area 0
R2-VA(config-router)#^Z
R2-VA#
%SYS-5-CONFIG_I: Configured from console by console

R2-VA#
03:05:09: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

R2-VA#
03:08:13: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

R2-VA#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O IA    1.1.1.1/32 [110/2] via 10.16.7.5, 00:01:14, GigabitEthernet0/0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       2.2.2.0/24 is directly connected, Loopback0
L       2.2.2.2/32 is directly connected, Loopback0
     10.0.0.0/8 is variably subnetted, 8 subnets, 3 masks
O       10.16.0.0/24 [110/2] via 10.16.7.5, 00:01:14, GigabitEthernet0/0
O       10.16.2.0/24 [110/2] via 10.16.7.5, 00:01:14, GigabitEthernet0/0
C       10.16.7.0/28 is directly connected, GigabitEthernet0/0
L       10.16.7.6/32 is directly connected, GigabitEthernet0/0
C       10.16.8.0/24 is directly connected, GigabitEthernet0/1.10
L       10.16.8.1/32 is directly connected, GigabitEthernet0/1.10
C       10.16.10.0/24 is directly connected, GigabitEthernet0/1.20
L       10.16.10.1/32 is directly connected, GigabitEthernet0/1.20
     22.0.0.0/32 is subnetted, 1 subnets
O       22.22.22.22/32 [110/3] via 10.16.7.5, 00:01:14, GigabitEthernet0/0

R2-VA#wri
Building configuration...
[OK]

R2-VA#sh ip protocols 

Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set 
  Incoming update filter list for all interfaces is not set 
  Router ID 2.2.2.2
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    2.2.2.2 0.0.0.0 area 0
    10.16.8.0 0.0.7.255 area 0
    10.16.7.0 0.0.0.15 area 0
  Routing Information Sources:  
    Gateway         Distance      Last Update 
    1.1.1.1              110      00:13:55
    2.2.2.2              110      00:13:55
    3.3.3.3              110      00:10:46
    11.11.11.11          110      00:21:07
    22.22.22.22          110      00:21:07
  Distance: (default is 110)

R2-VA#sh ip ospf ne
R2-VA#sh ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           1   FULL/DR         00:00:30    10.16.7.5       GigabitEthernet0/0
3.3.3.3           1   FULL/DROTHER    00:00:32    10.16.7.7       GigabitEthernet0/0
R2-VA#


Router 3 (R#_ZA):

R3-FL#sh ip route connected 
 C   3.3.3.0/24  is directly connected, Loopback0
 C   10.16.7.0/28  is directly connected, GigabitEthernet0/0
 C   10.16.16.0/24  is directly connected, GigabitEthernet0/1

R3-FL#

R3-FL#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R3-FL(config)#router ospf 1
R3-FL(config-router)#network 3.3.3.3 0.0.0.0 area 0
R3-FL(config-router)#network 10.16.16.0 0.0.7.255
% Incomplete command.
R3-FL(config-router)#network 10.16.16.0 0.0.7.255 area 0
R3-FL(config-router)#network 10.16.7.0 0.0.0.15 area 0
R3-FL(config-router)#^Z
R3-FL#
%SYS-5-CONFIG_I: Configured from console by console

R3-FL#
03:08:13: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

03:08:19: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

R3-FL#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O IA    1.1.1.1/32 [110/2] via 10.16.7.5, 00:04:51, GigabitEthernet0/0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2/32 [110/2] via 10.16.7.6, 00:04:51, GigabitEthernet0/0
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       3.3.3.0/24 is directly connected, Loopback0
L       3.3.3.3/32 is directly connected, Loopback0
     10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks
O       10.16.0.0/24 [110/2] via 10.16.7.5, 00:04:51, GigabitEthernet0/0
O       10.16.2.0/24 [110/2] via 10.16.7.5, 00:04:51, GigabitEthernet0/0
C       10.16.7.0/28 is directly connected, GigabitEthernet0/0
L       10.16.7.7/32 is directly connected, GigabitEthernet0/0
O       10.16.8.0/24 [110/2] via 10.16.7.6, 00:04:51, GigabitEthernet0/0
O       10.16.10.0/24 [110/2] via 10.16.7.6, 00:04:51, GigabitEthernet0/0
     22.0.0.0/32 is subnetted, 1 subnets
O       22.22.22.22/32 [110/3] via 10.16.7.5, 00:04:51, GigabitEthernet0/0
     192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.3.0/24 is directly connected, GigabitEthernet0/1
L       192.168.3.1/32 is directly connected, GigabitEthernet0/1

R3-FL#sh ip protocols 

Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set 
  Incoming update filter list for all interfaces is not set 
  Router ID 3.3.3.3
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    3.3.3.3 0.0.0.0 area 0
    10.16.16.0 0.0.7.255 area 0
    10.16.7.0 0.0.0.15 area 0
  Routing Information Sources:  
    Gateway         Distance      Last Update 
    1.1.1.1              110      00:06:53
    2.2.2.2              110      00:06:53
    3.3.3.3              110      00:03:43
    11.11.11.11          110      00:14:05
    22.22.22.22          110      00:14:05
  Distance: (default is 110)

R3-FL#sh ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   FULL/BDR        00:00:39    10.16.7.6       GigabitEthernet0/0
1.1.1.1           1   FULL/DR         00:00:35    10.16.7.5       GigabitEthernet0/0
R3-FL#

Comprobando conectividad, sólo las permitidas VLAN 10 y VLAN 20:




Cisco es genial!.