Skip to content

Commit 7143007

Browse files
committed
add next-hop-self documentation
1 parent 456a094 commit 7143007

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/bgp.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,9 @@ kubectl annotate node <kube-node> "kube-router.io/peer.ips=192.168.1.99,192.168.
142142
kubectl annotate node <kube-node> "kube-router.io/peer.asns=65000,65000"
143143
kubectl annotate node <kube-node> "kube-router.io/peer.passwords=U2VjdXJlUGFzc3dvcmQK,"
144144
```
145+
146+
## Overriding the next hop
147+
148+
By default kube-router populates GoBGP RIB with node IP as next hop for the advertised pod CIDR's and service VIP. While this works for most cases, overriding the next hop for the advertised rotues is necessary when node has multiple interfaces over which external peers are reached. Next hop need to be as per the interface local IP over which external peer can be reached. `--override-nexthop` let you override the next hop for the advertised route. Setting `--override-nexthop` to true leverages
149+
BGP next-hop-self functionality implemented in GoBGP. Next hop will automatically selected appropriately when advertising routes irrespective of the next hop in the RIB.
150+

0 commit comments

Comments
 (0)