Páginas

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!.

No hay comentarios:

Publicar un comentario