A lab that worked on Wednesday, didn't work on Thursday, or on Friday but worked on another platform.
I started working on DMVPN with OSPF as the Routing protocol, and that too didn't work in one platform but did work on another.
The Video:
Day 5
|
!Hub int tun 0 ip add 10.123.234.1 255.255.255.0 tunnel source Gi0/0 tunnel mode gre multipoint no shut !Spoke int tun 0 ip add 10.123.234.2 255.255.255.0 tunnel source Gi0/0 tunnel destination 10.123.234.1 no shut ! Broke R2#sho int tun 0 Tunnel0 is up, line protocol is down Hardware is Tunnel Internet address is 10.123.234.2/24 MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation TUNNEL, loopback not set Keepalive not set Tunnel linestate evaluation down - no output interface Tunnel source 172.17.100.2 (GigabitEthernet0/0), destination 10.123.234.1 Tunnel Subblocks: src-track: Tunnel0 source tracking subblock associated with GigabitEthernet0/0 Set of tunnels with source GigabitEthernet0/0, 1 member (includes iterators), on interface <OK> Tunnel protocol/transport GRE/IP Key disabled, sequencing disabled Checksumming of packets disabled Tunnel TTL 255, Fast tunneling enabled Tunnel transport MTU 1476 bytes Tunnel transmit bandwidth 8000 (kbps) Tunnel receive bandwidth 8000 (kbps) Last input never, output never, output hang never Lesson Learned: I made the error of incorrectly defining the tunnel destination. I defined it as the remote tunnel interface when actually I needed to use the public NBMA address. Fixed:
R2#sho int tun 0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
Internet address is 10.123.234.2/24
MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel linestate evaluation up
Tunnel source 172.17.100.2 (GigabitEthernet0/0), destination 172.17.100.1
Tunnel Subblocks:
src-track:
Tunnel0 source tracking subblock associated with GigabitEthernet0/0
Set of tunnels with source GigabitEthernet0/0, 1 member (includes iterators), on interface <OK>
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input never, output never, output hang never
Explanation: The tunnel interface linestate stays down until it has a valid exit interface and route to the remote tunnel destination.
|
|
In the output below you can see "Keepalive not set". Tunnel keepalives are not set by default. You can configure keepalives under the tunnel interface. You can do this be specifying just the keyword "keepalive" and press enter. This will give you the default value of keepalives sent every 10 seconds and will retry 3 times before considering the tunnel down. Conversely you can specify the keepalive values( example 5 seconds) the retry values can also be set but if they are excluded will default to 3 retries.
R4#sho int tun 0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
Internet address is 10.123.234.4/24
MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
[ ... output omitted ... ]
Keepalive with default values
R3(config-if)#keepalive ?
<0-32767> Keepalive period (default 10 seconds)
<cr>
R3(config-if)#keepalive
R3(config-if)#
R3(config-if)#do sho int tun 0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
Internet address is 10.123.234.3/24
MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive set (10 sec), retries 3
[ ... output omitted ... ]
Keepalive with defined values
R4(config)#int tun 0R4(config-if)#keepalive 5 R4(config-if)#end R4# R4#sho int tun 0 Tunnel0 is up, line protocol is up Hardware is Tunnel Internet address is 10.123.234.4/24 MTU 17916 bytes, BW 100 Kbit/sec, DLY 50000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation TUNNEL, loopback not set Keepalive set (5 sec), retries 3
[ ... output omitted ... ]
|
hostname R1 interface Loopback100 ip address 100.1.1.1 255.255.255.255 interface FastEthernet0/0 description "To R2" ip address 10.1.12.1 255.255.255.0 router bgp 100 bgp log-neighbor-changes network 100.1.1.1 mask 255.255.255.255 neighbor 10.1.12.2 remote-as 200 |
hostname R2 interface FastEthernet0/0 description "To R1" ip vrf forwarding 200 ip address 10.1.12.2 255.255.255.0 interface FastEthernet1/0 description "To R3" ip vrf forwarding 200 ip address 10.1.23.2 255.255.255.0 router bgp 200 bgp log-neighbor-changes neighbor 10.1.12.1 remote-as 100 neighbor 10.1.23.3 remote-as 200 neighbor 10.1.23.3 next-hop-self |
hostname R3 interface FastEthernet0/0 description "To R4" ip address 10.1.34.3 255.255.255.0 interface FastEthernet1/0 description "To R2" ip address 10.1.23.3 255.255.255.0 router bgp 200 bgp log-neighbor-changes bgp inject-map INJECT exist-map EXIST neighbor 10.1.23.2 remote-as 200 neighbor 10.1.34.4 remote-as 200 neighbor 10.1.34.4 route-reflector-client ip prefix-list LEARNED seq 5 permit 100.1.1.1/32 ip prefix-list NEIGHBOR seq 5 permit 10.1.23.2/32 ip prefix-list ORIGINATE seq 5 permit 100.1.1.1/32 route-map INJECT permit 10 set ip address prefix-list ORIGINATE set ip next-hop 10.1.34.3 route-map EXIST permit 10 match ip address prefix-list LEARNED match ip route-source prefix-list NEIGHBOR Verify:R3#sho ip bgp injected-paths BGP table version is 3, local router ID is 10.1.34.3 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *>i 100.1.1.1/32 10.1.34.3 0 ? R3#sho ip bgp BGP table version is 3, local router ID is 10.1.34.3 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *>i 100.1.1.1/32 10.1.34.3 0 ? * i 10.1.23.2 0 100 0 100 i |
hostname R4 interface FastEthernet0/0 description "To R3" ip address 10.1.34.4 255.255.255.0 interface FastEthernet1/0 description "To R5" ip address 10.1.45.4 255.255.255.0 router bgp 200 bgp log-neighbor-changes neighbor 10.1.34.3 remote-as 200 neighbor 10.1.45.5 remote-as 300 Verify:R4#sho ip bgp BGP table version is 2, local router ID is 10.1.45.4 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *>i 100.1.1.1/32 10.1.34.3 100 0 ? |
hostname R5 interface FastEthernet1/0 description "To R4" ip address 10.1.45.5 255.255.255.0 router bgp 300 bgp log-neighbor-changes neighbor 10.1.45.4 remote-as 200 R5 - Verify:R5#sho ip bgp BGP table version is 2, local router ID is 10.1.45.5 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 100.1.1.1/32 10.1.45.4 0 200 ? R5# |
hostname R1 interface Loopback100 ip address 100.1.1.1 255.255.255.255 interface FastEthernet0/0 description "To R2" ip address 10.1.12.1 255.255.255.0 router bgp 100 bgp log-neighbor-changes network 100.1.1.1 mask 255.255.255.255 neighbor 10.1.12.2 remote-as 200 |
hostname R2 ip vrf 200 rd 200:200 interface FastEthernet0/0 description "To R1" ip vrf forwarding 200 ip address 10.1.12.2 255.255.255.0 interface FastEthernet1/0 description "To R3" ip vrf forwarding 200 ip address 10.1.23.2 255.255.255.0 router bgp 200 bgp log-neighbor-changes ! address-family ipv4 vrf 200 neighbor 10.1.12.1 remote-as 100 neighbor 10.1.12.1 activate neighbor 10.1.23.3 remote-as 100 neighbor 10.1.23.3 activate neighbor 10.1.23.3 as-override exit-address-family |
hostname R3 interface FastEthernet0/0 description "To R4" ip address 10.1.34.3 255.255.255.0 interface FastEthernet1/0 description "To R2" ip address 10.1.23.3 255.255.255.0 router bgp 250 bgp log-neighbor-changes neighbor 10.1.23.2 remote-as 200 neighbor 10.1.23.2 local-as 100 no-prepend replace-as neighbor 10.1.34.4 remote-as 200 neighbor 10.1.34.4 local-as 200 no-prepend replace-as |
hostname R4 interface FastEthernet0/0 description "To R3" ip address 10.1.34.4 255.255.255.0 interface FastEthernet1/0 description "To R5" ip address 10.1.45.4 255.255.255.0 router bgp 200 bgp log-neighbor-changes neighbor 10.1.34.3 remote-as 200 neighbor 10.1.45.5 remote-as 300 |
hostname R5 interface FastEthernet1/0 description "To R4" ip address 10.1.45.5 255.255.255.0 router bgp 300 bgp log-neighbor-changes neighbor 10.1.45.4 remote-as 200 |
R5#sho ip bgp BGP table version is 13, local router ID is 10.1.45.5 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 100.1.1.1/32 10.1.45.4 0 200 200 200 i R5# |