Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gobgp route statistics: received and accepted 1836908 routes, but can not show them #2087

Open
ajaxmao opened this issue May 29, 2019 · 9 comments

Comments

@ajaxmao
Copy link

ajaxmao commented May 29, 2019

Hi, I build the ibgp environment of two host "192.168.0.1, 192.168.0.2",
and the host 192.168.0.1 is a juniper route, the host 192.168.0.2 is gobgpd.

the results of ./gobgp neighbor 192.168.0.1 as flow :

BGP neighbor is 192.168.0.1, remote AS 65500, route-server-client
  BGP version 4, remote router ID 192.168.0.1
  BGP state = ESTABLISHED, up for 15:27:26
  BGP OutQ = 0, Flops = 0
  Hold time is 90, keepalive interval is 30 seconds
  Configured hold time is 180, keepalive interval is 60 seconds
  
  Neighbor capabilities:
    multiprotocol:
        l3vpn-ipv6-unicast:     received
        ipv4-unicast:   advertised and received
        l3vpn-ipv4-unicast:     advertised and received
        ipv6-unicast:   received
        l2vpn-vpls:     received
    route-refresh:      advertised and received
    graceful-restart:   received
        Remote: notification flag set
    4-octet-as: advertised and received
    long-lived-graceful-restart:        received
    cisco-route-refresh:        received

Message statistics:
                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                0     689745
    Keepalives:          1855       1970
    Route Refresh:          0          0
    Discarded:              0          0
    Total:               1856     691716
  Route statistics:
    Advertised:             0
    Received:         1836908
    Accepted:         1836908

received 1836908 routes, but i can not show routes .

./gobgp neighbor 192.168.0.1 local                                                                              
Network not in table

./gobgp neighbor 192.168.0.1 local summary -a ipv4-labeled
Table afi:AFI_IP safi:SAFI_MPLS_LABEL 
Destination: 0, Path: 0

./gobgp neighbor 192.168.0.1 local summary -a ipv4
Table afi:AFI_IP safi:SAFI_UNICAST 
Destination: 0, Path: 0

@fujita
Copy link
Member

fujita commented Jun 1, 2019

I guess that you don't configure the peer as Route Server. To show routes, you should execute:
gobgp global rib

@ajaxmao
Copy link
Author

ajaxmao commented Jun 4, 2019

I have tried gobgp global rib, but show nothing, and my gobgpd.config as flow,

[global.config]
    as = 65500
    router-id = "192.168.0.2"
    local-address-list = ["192.168.0.2"]

[[neighbors]]
  [neighbors.config]
    neighbor-address = "192.168.0.1"
    peer-as = 65500
  [neighbors.route-server.config]
    route-server-client = true
  [neighbors.ebgp-multihop.config]
    enabled = true
    multihop-ttl = 100
  [neighbors.timers.config]
    connect-retry = 5
    hold-time = 180
    keepalive-interval = 60

  [[neighbors.afi-safis]]
    [neighbors.afi-safis.config]
    afi-safi-name = "ipv4-unicast"

  [[neighbors.afi-safis]]
    [neighbors.afi-safis.config]
    afi-safi-name = "l3vpn-ipv4-unicast"


@fujita
Copy link
Member

fujita commented Jun 4, 2019

hmm, it should be route server. What family you are expecting? How about the following?

gobgp neighbor 192.168.0.1 local -a vpnv4

@ajaxmao
Copy link
Author

ajaxmao commented Jun 4, 2019

./gobgp neighbor
Peer            AS     Up/Down State       |#Received  Accepted
192.168.0.1 65500  6d 14:28:24 Establ      |  1837844   1837844

May gobgd is not support ipv4-labeled?

./gobgp neighbor 192.168.0.1 local -a ipv4-labeld
unsupported address family: ipv4-labeld

@ajaxmao
Copy link
Author

ajaxmao commented Jun 4, 2019

hmm, it should be route server. What family you are expecting? How about the following?

gobgp neighbor 192.168.0.1 local -a vpnv4

Network not in table

@ajaxmao
Copy link
Author

ajaxmao commented Jun 4, 2019

hmm, it should be route server. What family you are expecting? How about the following?

gobgp neighbor 192.168.0.1 local -a vpnv4

I am expecting ipv4-mpls

@fujita
Copy link
Member

fujita commented Jun 4, 2019

Not ipv4-labeld. Try ipv4-labeled But in your configuration, ipv4-labeled is not enabled anyway.

@ajaxmao
Copy link
Author

ajaxmao commented Jun 4, 2019

Not ipv4-labeld. Try ipv4-labeled But in your configuration, ipv4-labeled is not enabled anyway.

sorry, it is just my spelling mistake, actually i tried ipv4-labeled. And how can i enabled ipv4-mpls, I have already configed this afi-safi-name = "l3vpn-ipv4-unicast"

@ajaxmao
Copy link
Author

ajaxmao commented Jun 12, 2019

I set the route as RR, it becomes ok

  [neighbors.route-reflector.config]
    route-reflector-client = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants