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

the route-reflector error"Network not in table" #1493

Closed
JiaLin-ant opened this issue Nov 14, 2017 · 4 comments
Closed

the route-reflector error"Network not in table" #1493

JiaLin-ant opened this issue Nov 14, 2017 · 4 comments

Comments

@JiaLin-ant
Copy link

Hi, I build the bgp environment of three hosts "192.168.162.131, 192.168.162.132, 192.168.162.134"
and use the host "192.168.162.131" as the Route Reflector.
the setting of three hosts is below:
host "192.168.162.131":

[global.config]
as = 65001
router-id = "192.168.162.131"

[[neighbors]]
[neighbors.config]
neighbor-address = "192.168.162.134"
peer-as = 65001

[[neighbors]]
[neighbors.config]
neighbor-address = "192.168.162.132"
peer-as = 65001

host "192.168.162.132":
[global.config]
as = 65001
router-id = "192.168.162.132"

[[neighbors]]
[neighbors.config]
neighbor-address = "192.168.162.134"
peer-as = 65001

[[neighbors]]
[neighbors.config]
neighbor-address = "192.168.162.131"
peer-as = 65001
[neighbors.route-reflector.config]
route-reflector-client = true
route-reflector-cluster-id = "192.168.162.132"

host "192.168.162.134":

[global.config]
as = 65001
router-id = "192.168.162.134"

[[neighbors]]
[neighbors.config]
neighbor-address = "192.168.162.131"
peer-as = 65001
[neighbors.route-reflector.config]
route-reflector-client = true
route-reflector-cluster-id = "192.168.162.134"

[[neighbors]]
[neighbors.config]
neighbor-address = "192.168.162.132"
peer-as = 65001

I run "gobgp neighbor 192.168.162.131 adj-out" in host "192.168.162.134"
but it shows "Network not in table"
What's going wrong here?

@fujimoto-s
Copy link
Contributor

Have you added any route?

Initially, GoBGP has no route because it will not get the kernel routing table if not configured.
You need to add any routes to it or enable its zebra feature.

[Adding routes]
e.g.) gobgp global rib add 10.33.0.0/16 -a ipv4
Detail: https://github.com/osrg/gobgp/blob/master/docs/sources/cli-command-syntax.md#--syntax

[Using zebra feature]
See: https://github.com/osrg/gobgp/blob/master/docs/sources/zebra.md

@JiaLin-ant
Copy link
Author

@fujimoto-s You are right, I don't add any route, thank you!

@JiaLin-ant
Copy link
Author

@fujimoto-s Can I use the toml file to add the route?

@fujimoto-s
Copy link
Contributor

GoBGP does not have such a feature.
You need to add routes after it starts.

However, if you enable the zebra feature, you can install static routes to zebra, and GoBGP will receive the routes when it starts.
Note: zebra will distribute reachable routes only. You need to install reachable routes, otherwise it will not work well.

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