El ejemplo es muy sencillo, tres routers conectados en la misma LAN, el R1 es el HUB, y los otros dos son los spokes, lo he hecho en la misma lan, pero podían ser routers distanciados completamente, a miles de kilómetros...etc.
Configuración del HUB:
hostname HUBConfiguración de el SPOKE 1:
interface Tunnel0
ip address 192.168.1.1 255.255.255.0
no ip redirects
ip nhrp map multicast dynamic
ip nhrp network-id 100
ip nhrp shortcut
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 333
!
interface FastEthernet0/0
ip address 80.10.10.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
hostname SPOKE1
interface Tunnel0
ip address 192.168.1.2 255.255.255.0
no ip redirects
ip nhrp map 192.168.1.1 80.10.10.1
ip nhrp map multicast 80.10.10.1
ip nhrp network-id 100
ip nhrp nhs 192.168.1.1
ip nhrp registration timeout 120
ip nhrp shortcut
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 333
!
interface FastEthernet0/0
ip address 80.10.10.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
Configuración de SPOKE2:
hostname SPOKE2Tenemos conectividad desde todos los sitios:
interface Tunnel0
ip address 192.168.1.3 255.255.255.0
no ip redirects
ip nhrp map 192.168.1.1 80.10.10.1
ip nhrp network-id 100
ip nhrp nhs 192.168.1.1
ip nhrp registration timeout 120
ip nhrp shortcut
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 333
!
interface FastEthernet0/0
ip address 80.10.10.3 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
HUB#ping 192.168.1.2Después de haberlo configurado en el spoke 1 deberíamos ver lo siguiente:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/17/72 ms
HUB#ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/8/12 ms
SPOKE1# ping 192.168.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/32/100 ms
SPOKE1# ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
SPOKE1#
SPOKE2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/24 ms
SPOKE2#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/12/28 ms
SPOKE1#show ip nhrp briefComo podemos ver, tenemos una entrada estática para alcanzar el hub, y dinámicamente aprendemos como llegar al resto spokes.
Target Via NBMA Mode Intfc Claimed
192.168.1.1/32 192.168.1.1 80.10.10.1 static Tu0 < >
192.168.1.2/32 192.168.1.2 80.10.10.2 dynamic Tu0 < >
192.168.1.3/32 192.168.1.3 80.10.10.3 dynamic Tu0 < >
No hay comentarios:
Publicar un comentario