csr1000v - xrv - bgp - issue

Problemy związane z routingiem
Wiadomość
Autor
pysiok83
wannabe
wannabe
Posty: 221
Rejestracja: 21 wrz 2009, 12:06

csr1000v - xrv - bgp - issue

#1

#1 Post autor: pysiok83 »

hej,
Chciałem zestawić między routerem 1000v a XRv sesje bgp + MPLS. Konfig poniżej:

1000v

Kod: Zaznacz cały

ip vrf 004
 rd 127.0.0.0:4
 route-target export 127.0.0.0:1

interface GigabitEthernet2
 ip address 1.1.1.5 255.255.255.252
 negotiation auto
 mpls ip
!
interface GigabitEthernet3
 description R1
 ip vrf forwarding vcpy004
 ip address 1.1.1.2 255.255.255.252
 negotiation auto

router bgp 6510
 bgp log-neighbor-changes
 neighbor 1.1.1.6 remote-as 6510
 !
 address-family vpnv4
  neighbor 1.1.1.6 activate
  neighbor 1.1.1.6 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf 004
  redistribute connected
  neighbor 1.1.1.1 remote-as 6500
  neighbor 1.1.1.1 activate
 exit-address-family

xrv

Kod: Zaznacz cały

vrf 001
 address-family ipv4 unicast
  import route-target
   127.0.0.0:1
  !
interface GigabitEthernet0/0/0/0
 ipv4 address 1.1.1.6 255.255.255.252

router bgp 6510
 address-family ipv4 unicast
 !
 address-family vpnv4 unicast
 !
 neighbor-group AOCL4
  remote-as 6510
  address-family ipv4 unicast
  !
  address-family vpnv4 unicast
  !
 !
 neighbor 1.1.1.5
  use neighbor-group AOCL4
 !
!
mpls ldp
 router-id 172.28.1.247
 interface GigabitEthernet0/0/0/0
 !
!
na R1 - czyli 1000v mam w vrfie 004 sieci po eBGP z innego routera. Chciałbym je zaimportować do routera R2 (xrv) przez MPLS. Niestety przy zestawieniu sesji iBGP na R1 dostaje komunikat:

Kod: Zaznacz cały

*Mar  7 18:13:08.737: %BGP-5-NBR_RESET: Neighbor 1.1.1.6 active reset (Peer closed the session)
*Mar  7 18:13:08.738: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 VPNv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:13:08.738: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 IPv4 Unicast topology base removed from session  Peer closed the session
Poniżej debug z R1:

Kod: Zaznacz cały

*Mar  7 18:05:25.606: BGP: 1.1.1.6 active went from Idle to Active
*Mar  7 18:05:25.606: BGP: 1.1.1.6 open active, local address 1.1.1.5
*Mar  7 18:05:25.611: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Adding topology IPv4 Unicast:base
*Mar  7 18:05:25.611: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Adding topology VPNv4 Unicast:base
*Mar  7 18:05:25.611: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Send OPEN
*Mar  7 18:05:25.611: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Building Enhanced Refresh capability
*Mar  7 18:05:25.611: BGP: 1.1.1.6 active went from Active to OpenSent
*Mar  7 18:05:25.611: BGP: 1.1.1.6 active sending OPEN, version 4, my as: 6510, holdtime 180 seconds, ID 1010102
*Mar  7 18:05:25.618: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Remote close.
*Mar  7 18:05:25.618: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) Not scheduling for GR processing [Peer did not advertise GR cap]
*Mar  7 18:05:25.618: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) Not scheduling for GR processing [Peer did not advertise GR cap]
*Mar  7 18:05:25.618: %BGP-5-NBR_RESET: Neighbor 1.1.1.6 active reset (Peer closed the session)
*Mar  7 18:05:25.618: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Reset (Peer closed the session).
*Mar  7 18:05:25.618: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) NSF delete stale NSF not active
*Mar  7 18:05:25.619: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) NSF no stale paths state is NSF not active
*Mar  7 18:05:25.619: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:25.619: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) NSF delete stale NSF not active
*Mar  7 18:05:25.619: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) NSF no stale paths state is NSF not active
*Mar  7 18:05:25.619: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:25.619: BGP: 1.1.1.6 active closing
*Mar  7 18:05:25.619: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Session close and reset neighbor 1.1.1.6 topostate
*Mar  7 18:05:25.619: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:25.619: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Session close and reset neighbor 1.1.1.6 topostate
*Mar  7 18:05:25.619: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:25.619: BGP: 1.1.1.6 active went from OpenSent to Idle
*Mar  7 18:05:25.619: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 VPNv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:05:25.619: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Removed topology VPNv4 Unicast:base
*Mar  7 18:05:25.619: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 IPv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:05:25.619: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Removed topology IPv4 Unicast:base
*Mar  7 18:05:25.619: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Removed last topology
*Mar  7 18:05:25.619: BGP: nbr global 1.1.1.6 Open active delayed 6144ms (35000ms max, 60% jitter)
*Mar  7 18:05:25.619: BGP: nbr global 1.1.1.6 Active open failed - open timer running
*Mar  7 18:05:31.751: BGP: 1.1.1.6 active went from Idle to Active
*Mar  7 18:05:31.751: BGP: 1.1.1.6 open active, local address 1.1.1.5
*Mar  7 18:05:31.755: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Adding topology IPv4 Unicast:base
*Mar  7 18:05:31.756: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Adding topology VPNv4 Unicast:base
*Mar  7 18:05:31.756: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Send OPEN
*Mar  7 18:05:31.756: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Building Enhanced Refresh capability
*Mar  7 18:05:31.756: BGP: 1.1.1.6 active went from Active to OpenSent
*Mar  7 18:05:31.756: BGP: 1.1.1.6 active sending OPEN, version 4, my as: 6510, holdtime 180 seconds, ID 1010102
*Mar  7 18:05:31.761: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Remote close.
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31B205D348:0) Not scheduling for GR processing [Peer did not advertise GR cap]
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31B205D348:0) Not scheduling for GR processing [Peer did not advertise GR cap]
*Mar  7 18:05:31.761: %BGP-5-NBR_RESET: Neighbor 1.1.1.6 active reset (Peer closed the session)
*Mar  7 18:05:31.761: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Reset (Peer closed the session).
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31B205D348:0) NSF delete stale NSF not active
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31B205D348:0) NSF no stale paths state is NSF not active
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31B205D348:0) Resetting ALL counters.
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31B205D348:0) NSF delete stale NSF not active
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31B205D348:0) NSF no stale paths state is NSF not active
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31B205D348:0) Resetting ALL counters.
*Mar  7 18:05:31.761: BGP: 1.1.1.6 active closing
*Mar  7 18:05:31.761: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Session close and reset neighbor 1.1.1.6 topostate
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31B205D348:0) Resetting ALL counters.
*Mar  7 18:05:31.761: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Session close and reset neighbor 1.1.1.6 topostate
*Mar  7 18:05:31.761: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31B205D348:0) Resetting ALL counters.
*Mar  7 18:05:31.761: BGP: 1.1.1.6 active went from OpenSent to Idle
*Mar  7 18:05:31.761: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 VPNv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:05:31.761: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Removed topology VPNv4 Unicast:base
*Mar  7 18:05:31.761: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 IPv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:05:31.762: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Removed topology IPv4 Unicast:base
*Mar  7 18:05:31.762: BGP: ses global 1.1.1.6 (0x7F31B205D348:0) act Removed last topology
*Mar  7 18:05:31.762: BGP: nbr global 1.1.1.6 Open active delayed 8192ms (35000ms max, 60% jitter)
*Mar  7 18:05:31.762: BGP: nbr global 1.1.1.6 Active open failed - open timer running
*Mar  7 18:05:39.949: BGP: 1.1.1.6 active went from Idle to Active
*Mar  7 18:05:39.949: BGP: 1.1.1.6 open active, local address 1.1.1.5
*Mar  7 18:05:39.955: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Adding topology IPv4 Unicast:base
*Mar  7 18:05:39.955: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Adding topology VPNv4 Unicast:base
*Mar  7 18:05:39.955: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Send OPEN
*Mar  7 18:05:39.956: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Building Enhanced Refresh capability
*Mar  7 18:05:39.956: BGP: 1.1.1.6 active went from Active to OpenSent
*Mar  7 18:05:39.956: BGP: 1.1.1.6 active sending OPEN, version 4, my as: 6510, holdtime 180 seconds, ID 1010102
*Mar  7 18:05:39.964: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Remote close.
*Mar  7 18:05:39.964: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) Not scheduling for GR processing [Peer did not advertise GR cap]
*Mar  7 18:05:39.964: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) Not scheduling for GR processing [Peer did not advertise GR cap]
*Mar  7 18:05:39.964: %BGP-5-NBR_RESET: Neighbor 1.1.1.6 active reset (Peer closed the session)
*Mar  7 18:05:39.965: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Reset (Peer closed the session).
*Mar  7 18:05:39.965: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) NSF delete stale NSF not active
*Mar  7 18:05:39.965: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) NSF no stale paths state is NSF not active
*Mar  7 18:05:39.965: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:39.965: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) NSF delete stale NSF not active
*Mar  7 18:05:39.965: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) NSF no stale paths state is NSF not active
*Mar  7 18:05:39.965: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:39.965: BGP: 1.1.1.6 active closing
*Mar  7 18:05:39.965: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Session close and reset neighbor 1.1.1.6 topostate
*Mar  7 18:05:39.966: BGP: nbr_topo global 1.1.1.6 VPNv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:39.966: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Session close and reset neighbor 1.1.1.6 topostate
*Mar  7 18:05:39.966: BGP: nbr_topo global 1.1.1.6 IPv4 Unicast:base (0x7F31594152D0:0) Resetting ALL counters.
*Mar  7 18:05:39.966: BGP: 1.1.1.6 active went from OpenSent to Idle
*Mar  7 18:05:39.966: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 VPNv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:05:39.966: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Removed topology VPNv4 Unicast:base
*Mar  7 18:05:39.966: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 IPv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:05:39.966: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Removed topology IPv4 Unicast:base
*Mar  7 18:05:39.966: BGP: ses global 1.1.1.6 (0x7F31594152D0:0) act Removed last topology
*Mar  7 18:05:39.966: BGP: nbr global 1.1.1.6 Open active delayed 13312ms (35000ms max, 60% jitter)
*Mar  7 18:05:39.966: BGP: nbr global 1.1.1.6 Active open failed - open timer running
Maszyny są na ESXi postawione, oczywiście interfejsy się pingują, jednak sesja iBGP się nie zestawia.
[/code][/quote]

Awatar użytkownika
Kola
member
member
Posty: 38
Rejestracja: 22 lip 2007, 20:46

Re: csr1000v - xrv - bgp - issue

#2

#2 Post autor: Kola »

Dodaj do bgp:

Kod: Zaznacz cały

bgp router id x.x.x.x
i powinno zatrybić.

horac

#3

#3 Post autor: horac »

na IOS-XR potrzebujesz dodatkowo pod neighbor

Kod: Zaznacz cały

neighbor x.x.x.x
 address-family vpnv4 unicast
Ostatnio zmieniony 07 mar 2015, 20:26 przez horac, łącznie zmieniany 2 razy.

pysiok83
wannabe
wannabe
Posty: 221
Rejestracja: 21 wrz 2009, 12:06

#4

#4 Post autor: pysiok83 »

po dodaniu bgp id na obu pudełkach teraz na R1 dostaje:

Kod: Zaznacz cały

*Mar  7 18:42:13.615: %BGP-3-NOTIFICATION: sent to neighbor 1.1.1.6 6/4 (Administrative Reset) 0 bytes
*Mar  7 18:42:13.618: %BGP-5-ADJCHANGE: neighbor 1.1.1.6 Down User reset
*Mar  7 18:42:13.619: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 VPNv4 Unicast topology base removed from session  User reset
*Mar  7 18:42:14.440: %BGP-5-NBR_RESET: Neighbor 1.1.1.6 active reset (Peer closed the session)
*Mar  7 18:42:14.440: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 VPNv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:42:14.440: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 IPv4 Unicast topology base removed from session  Peer closed the session
*Mar  7 18:42:24.699: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.1.6 IPv4 Unicast topology base removed from session  Capability changed
*Mar  7 18:42:24.699: %BGP-5-ADJCHANGE: neighbor 1.1.1.6 Up

*Mar  7 18:43:25.129: %BGP-4-VPN_NH_IF: Nexthop 1.1.1.5 may not be reachable from neigbor 1.1.1.6 - not a loopback
Sesja nadal nie wstaje.

horac

#5

#5 Post autor: horac »

na IOS-XR potrzebujesz dodatkowo pod neighbor

Kod: Zaznacz cały

neighbor 1.1.1.5 
 address-family vpnv4 unicast
Dodatkowo address-familiy ipv4 unicast na IOS-XR dajesz pod VRF konfigurujac BGP. Nie wlaczasz globalnie dopoki nie chcesz podwojnej sesji ipv4 unicast i vpnv4

Kod: Zaznacz cały

router bgp 6510
 address-family ipv4 unicast 
Tutaj usun address-family ipv4 unicast

pysiok83
wannabe
wannabe
Posty: 221
Rejestracja: 21 wrz 2009, 12:06

#6

#6 Post autor: pysiok83 »

Horac dodałem i nic:

Kod: Zaznacz cały

R1#sh ip bgp ipv4 unicast summary
BGP router identifier 1.1.1.2, local AS number 6510
BGP table version is 10, main routing table version 10

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.6         4         6510       0       0        1    0    0 never    Idle
konfig:
R1:

Kod: Zaznacz cały

router bgp 6510
 bgp router-id 1.1.1.2
 bgp log-neighbor-changes
 neighbor 1.1.1.6 remote-as 6510
 !
 address-family vpnv4
  neighbor 1.1.1.6 activate
  neighbor 1.1.1.6 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf 004
  redistribute connected
  neighbor 1.1.1.1 remote-as 6500
  neighbor 1.1.1.1 activate
 exit-address-family

R2 - XRv

Kod: Zaznacz cały

router bgp 6510
 bgp router-id 2.2.2.1
 address-family vpnv4 unicast
 !
 neighbor-group AOCL4
  remote-as 6510
  address-family vpnv4 unicast
  !
 !
 neighbor 1.1.1.5
  use neighbor-group AOCL4
  address-family vpnv4 unicast
  !
 !
!


horac

#7

#7 Post autor: horac »

*Mar 7 18:43:25.129: %BGP-4-VPN_NH_IF: Nexthop 1.1.1.5 may not be reachable from neigbor 1.1.1.6 - not a loopback

Update-source robisz ? routing do loopbaka dziala ? (ping)

neighbor 1.1.1.5
update-source looopbacktwoj
address-family vpnv4 unicast
Ostatnio zmieniony 07 mar 2015, 20:36 przez horac, łącznie zmieniany 2 razy.

pysiok83
wannabe
wannabe
Posty: 221
Rejestracja: 21 wrz 2009, 12:06

#8

#8 Post autor: pysiok83 »

XRv

Kod: Zaznacz cały

RP/0/0/CPU0:Rx1#ping 1.1.1.6
Sat Mar  7 18:59:50.034 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/9 ms
RP/0/0/CPU0:Rx1#sh route
Sat Mar  7 18:59:55.224 UTC

Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
       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 - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
       U - per-user static route, o - ODR, L - local, G  - DAGR, l - LISP
       A - access/subscriber, a - Application route
       M - mobile route, (!) - FRR Backup path

Gateway of last resort is not set

C    1.1.1.4/30 is directly connected, 05:59:29, GigabitEthernet0/0/0/0
L    1.1.1.6/32 is directly connected, 05:59:29, GigabitEthernet0/0/0/0
1000v

Kod: Zaznacz cały


R2#ping 1.1.1.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/18 ms
R2#sh ip rou
R2#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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.4/30 is directly connected, GigabitEthernet2
L        1.1.1.5/32 is directly connected, GigabitEthernet2

horac

#9

#9 Post autor: horac »

Gdzie masz w ogole loopbacki ? bo z konfiga wynika ze nie masz

*Mar 7 18:43:25.129: %BGP-4-VPN_NH_IF: Nexthop 1.1.1.5 may not be reachable from neigbor 1.1.1.6 - not a loopback
Ostatnio zmieniony 07 mar 2015, 20:41 przez horac, łącznie zmieniany 1 raz.

pysiok83
wannabe
wannabe
Posty: 221
Rejestracja: 21 wrz 2009, 12:06

#10

#10 Post autor: pysiok83 »

horac

Masz rację, że z tablicy widać, jednak maske w tablicy pokazuje inną niż jest w rzeczywistości.

horac

#11

#11 Post autor: horac »

pysiok83 pisze:horac

Masz rację, że z tablicy widać, jednak maske w tablicy pokazuje inną niż jest w rzeczywistości.
Ustaw dwa loopbacki 3.3.3.3/32 i 2.2.2.2/32. Ustaw statyczny routing badz dynamiczny. Uzyj ich do sesji vpnv4 i do MPLS LDP. W konfigu BGP update-source na lo0

na XRv

router static
address-family ipv4 unicast
3.3.3.3/32 1.1.1.5

na IOS-XE
ip route 2.2.2.2 255.255.255.255 1.1.1.6

Edit- zmiana adresow dla loopbackow bo uzywasz juz 1.1.1.1 dla sesji VRF do klienta

pysiok83
wannabe
wannabe
Posty: 221
Rejestracja: 21 wrz 2009, 12:06

#12

#12 Post autor: pysiok83 »

w tej chwili na R1 dostaje:

Kod: Zaznacz cały

*Mar  7 20:48:08.895: %BGP-3-NOTIFICATION: received from neighbor 8.8.8.3 active 2/7 (unsupported/disjoint capability) 0 bytes
*Mar  7 20:48:08.895: %BGP-5-NBR_RESET: Neighbor 8.8.8.3 active reset (BGP Notification received)
*Mar  7 20:48:08.896: %BGP-5-ADJCHANGE: neighbor 8.8.8.3 active Down BGP Notification received
*Mar  7 20:48:08.896: %BGP_SESSION-5-ADJCHANGE: neighbor 8.8.8.3 IPv4 Unicast topology base removed from session  BGP Notification received
Konfigi odowiednio R1 i XR:

Kod: Zaznacz cały

interface Loopback0
 ip address 8.8.8.2 255.255.255.255
 ip ospf 1 area 0

interface GigabitEthernet1
 no ip address
 negotiation auto
!
interface GigabitEthernet2
 ip address 1.1.1.5 255.255.255.252
 ip ospf 1 area 0
 negotiation auto
 mpls ip
!
interface GigabitEthernet3
 description R1
 ip vrf forwarding 004
 ip address 1.1.1.2 255.255.255.252
 negotiation auto
!
router ospf 1
 network 8.8.8.2 0.0.0.0 area 0
!
router bgp 6510
 bgp router-id 1.1.1.2
 bgp log-neighbor-changes
 neighbor 8.8.8.3 remote-as 6510
 neighbor 8.8.8.3 update-source Loopback0
 !
 address-family vpnv4
 exit-address-family
 !
 address-family ipv4 vrf 004
  redistribute connected
  neighbor 1.1.1.1 remote-as 6500
  neighbor 1.1.1.1 activate
 exit-address-family

------
vrf 001
 address-family ipv4 unicast
  import route-target
   127.0.0.0:1
  !
 !
!
interface Loopback0
 ipv4 address 8.8.8.3 255.255.255.255

interface GigabitEthernet0/0/0/0
 ipv4 address 1.1.1.6 255.255.255.252
!
interface GigabitEthernet0/0/0/1
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
router ospf LAB
 area 0.0.0.0
  interface Loopback0
  !
  interface GigabitEthernet0/0/0/0
  !
 !
!
router bgp 6510
 bgp router-id 2.2.2.1
 address-family vpnv4 unicast
 !
 neighbor-group AOCL4
  remote-as 6510
  address-family vpnv4 unicast
  !
 !
 neighbor 8.8.8.2
  use neighbor-group AOCL4
  update-source Loopback0
  address-family vpnv4 unicast
  !
 !
!
mpls ldp
 router-id 172.28.1.247
 interface GigabitEthernet0/0/0/0
 !
!
end

Kod: Zaznacz cały

R2#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
       i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.4/30 is directly connected, GigabitEthernet2
L        1.1.1.5/32 is directly connected, GigabitEthernet2
      8.0.0.0/32 is subnetted, 2 subnets
C        8.8.8.2 is directly connected, Loopback0
O        8.8.8.3 [110/2] via 1.1.1.6, 00:13:34, GigabitEthernet2


i na xr

RP/0/0/CPU0:Rx1#sh route
Sat Mar  7 20:52:46.010 UTC

Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
       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 - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
       U - per-user static route, o - ODR, L - local, G  - DAGR, l - LISP
       A - access/subscriber, a - Application route
       M - mobile route, (!) - FRR Backup path

Gateway of last resort is not set

C    1.1.1.4/30 is directly connected, 07:52:20, GigabitEthernet0/0/0/0
L    1.1.1.6/32 is directly connected, 07:52:20, GigabitEthernet0/0/0/0
O    8.8.8.2/32 [110/2] via 1.1.1.5, 00:14:08, GigabitEthernet0/0/0/0
L    8.8.8.3/32 is directly connected, 00:16:31, Loopback0


horac

#13

#13 Post autor: horac »

*Mar 7 20:48:08.895: %BGP-3-NOTIFICATION: received from neighbor 8.8.8.3 active 2/7 (unsupported/disjoint capability) 0 byte

Zrob send community-extended na IOS-XE pod address-family vpnv4 i aktywuj VPNV4. IOS-XR ma to domyslnie dla vpnv4 z tego co pamietam

router bgp 6510
no bgp default ipv4-unicast
address-family vpnv4
neighbor 8.8.8.3 activate
neighbor 8.8.8.3 send community-extended

pysiok83
wannabe
wannabe
Posty: 221
Rejestracja: 21 wrz 2009, 12:06

#14

#14 Post autor: pysiok83 »

zmieniłem:

Kod: Zaznacz cały

router bgp 6510
 bgp router-id 1.1.1.2
 bgp log-neighbor-changes
 neighbor 8.8.8.3 remote-as 6510
 neighbor 8.8.8.3 update-source Loopback0
 !
 address-family vpnv4
  neighbor 8.8.8.3 activate
  neighbor 8.8.8.3 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf vcpy004
  redistribute connected
  neighbor 1.1.1.1 remote-as 6500
  neighbor 1.1.1.1 activate
 exit-address-family

Kod: Zaznacz cały

R2#sh ip bgp summary
BGP router identifier 1.1.1.2, local AS number 6510
BGP table version is 10, main routing table version 10

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
8.8.8.3         4         6510       0       0        1    0    0 never    Idle

horac

#15

#15 Post autor: horac »

eh ale co ty sprawdzasz, show ip bgp summary jest dla ipv4 tylko

show ip bgp vpnv4 all summary a nie ipv4 :)

albo show bgp vpnv4 unicast all summary
Ostatnio zmieniony 07 mar 2015, 22:43 przez horac, łącznie zmieniany 1 raz.

ODPOWIEDZ