Site Tools


cisco:bgp:ios-xe_labs:lab13

! Configure directly connected neighbors with iBGP and Tunnels

hostname hub
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface Tunnel1
 ip address 10.0.0.1 255.255.255.252
 no ip redirects
 ip nhrp authentication cisco
 ip nhrp map 10.0.0.2 172.16.0.6
 ip nhrp network-id 1
 tunnel source GigabitEthernet4
 tunnel mode gre multipoint
 tunnel key 1
!
interface GigabitEthernet4
 ip address 172.16.0.5 255.255.255.252
 negotiation auto
 no mop enabled
 no mop sysid
!
router bgp 65000
 bgp router-id 1.1.1.1
 bgp log-neighbor-changes
 bgp listen range 10.0.0.0/24 peer-group tst
 no bgp default ipv4-unicast
 neighbor tst peer-group
 neighbor tst remote-as 65000
 !
 address-family ipv4
  network 1.1.1.1 mask 255.255.255.255
  network 172.16.0.5
  neighbor tst activate
  neighbor tst route-reflector-client
 exit-address-family
!
---------------------
hostname spoke1
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface Tunnel1
 ip address 10.0.0.2 255.255.255.252
 ip nhrp authentication cisco
 ip nhrp map 10.0.0.1 172.16.0.5
 ip nhrp network-id 1
 ip nhrp nhs 10.0.0.1
 tunnel source GigabitEthernet4
 tunnel destination 172.16.0.5
 tunnel key 1
!
interface GigabitEthernet4
 ip address 172.16.0.6 255.255.255.252
 negotiation auto
 no mop enabled
 no mop sysid
!
router bgp 65000
 bgp router-id 3.3.3.3
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 10.0.0.1 remote-as 65000
 !
 address-family ipv4
  network 3.3.3.3 mask 255.255.255.255
  neighbor 10.0.0.1 activate
 exit-address-family
!
----------------------
hub#show dmvpn
Legend: Attrb --> S - Static, D - Dynamic, I - Incomplete
        N - NATed, L - Local, X - No Socket
        T1 - Route Installed, T2 - Nexthop-override, B - BGP
        C - CTS Capable, I2 - Temporary
        # Ent --> Number of NHRP entries with same NBMA peer
        NHS Status: E --> Expecting Replies, R --> Responding, W --> Waiting
        UpDn Time --> Up or Down Time for a Tunnel
==========================================================================

Interface: Tunnel1, IPv4 NHRP Details 
Type:Spoke, NHRP Peers:1, 

 # Ent  Peer NBMA Addr Peer Tunnel Add State  UpDn Tm Attrb
 ----- --------------- --------------- ----- -------- -----
     1 172.16.0.6             10.0.0.2  NHRP    never    SC
!
hub#show ip nhrp 
10.0.0.2/32 via 10.0.0.2
   Tunnel1 created 00:49:40, never expire 
   Type: static, Flags: 
   NBMA address: 172.16.0.6 
!
hub#show ip int br | i Tunnel
Tunnel1                10.0.0.1        YES manual up                    up
!
hub#show int tunnel1
Tunnel1 is up, line protocol is up 
  Hardware is Tunnel
  Internet address is 10.0.0.1/30
  MTU 9972 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.16.0.5 (GigabitEthernet4)
!
hub#show ip bgp summ
BGP router identifier 1.1.1.1, local AS number 65000
BGP table version is 3, main routing table version 3
2 network entries using 496 bytes of memory
2 path entries using 272 bytes of memory
2/2 BGP path/bestpath attribute entries using 576 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1344 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs
2 networks peaked at 16:20:39 Aug 25 2025 UTC (00:19:37.116 ago)

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
*10.0.0.2       4        65000      26      26        3    0    0 00:19:36        1
* Dynamically created based on a listen range command
Dynamically created neighbors: 1, Subnet ranges: 1

BGP peergroup tst listen range group members: 
  10.0.0.0/24 


Total dynamically created neighbors: 1/(100 max), Subnet ranges: 1
!
hub#show ip bgp | b Network
     Network          Next Hop            Metric LocPrf Weight Path
 *>   1.1.1.1/32       0.0.0.0                  0         32768 i
 *>i  3.3.3.3/32       10.0.0.2                 0    100      0 i
!
hub#ping 3.3.3.3
# See screenshot 2025-08-25-1142 for Wireshark output
cisco/bgp/ios-xe_labs/lab13.txt · Last modified: by Name