wiki:bgp_ip_transit_info
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:bgp_ip_transit_info [2026/01/07 13:10] – [References] add references antisa | wiki:bgp_ip_transit_info [2026/04/13 09:46] (current) – [References] add netactuate link antisa | ||
|---|---|---|---|
| Line 79: | Line 79: | ||
| //peer-as// is peer ASN, also given by provider. | //peer-as// is peer ASN, also given by provider. | ||
| + | |||
| + | Provider might also give you a // | ||
| + | |||
| + | |||
| + | < | ||
| + | [neighbors.ebgp-multihop.config] | ||
| + | enabled = true | ||
| + | multihop-ttl = 64 | ||
| + | </ | ||
| After starting gobgp you should see the session is established: | After starting gobgp you should see the session is established: | ||
| Line 126: | Line 135: | ||
| </ | </ | ||
| + | <WRAP center round box 60%> | ||
| + | Sometimes you might get an IP address from the private space from the provider like 10.255.0.2 for your side of the BGP session. You need to add it (via '' | ||
| + | |||
| + | < | ||
| + | 1: lo: < | ||
| + | link/ | ||
| + | inet 127.0.0.1/8 scope host lo | ||
| + | | ||
| + | inet 89.124.253.5/ | ||
| + | | ||
| + | inet6 2a03: | ||
| + | | ||
| + | inet6 ::1/128 scope host | ||
| + | | ||
| + | 2: eth0: < | ||
| + | link/ether 5c: | ||
| + | inet 45.128.135.226/ | ||
| + | | ||
| + | inet 10.255.0.2/ | ||
| + | | ||
| + | ... | ||
| + | |||
| + | # gobgp neighbor | ||
| + | Peer AS Up/Down State | ||
| + | 10.255.0.1 | ||
| + | fd00:136::1 206804 | ||
| + | |||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Checking propagation ===== | ||
| + | RIPE has BG play tool to check the history of route propagation here https:// | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Here's an example of Tzulo server provider which advertises to multiple upstreams | ||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | which has multiple arrows pointing to upstreams. | ||
| + | |||
| + | ===== Updating AS path length ===== | ||
| + | When advertising IP from multiple providers, one can have a shorter AS path and take all the traffic for itself. You can adjust the length of the AS path on your side by prepending your AS number 1 or more times to extend the path. | ||
| + | |||
| + | Example using gobgp: | ||
| + | < | ||
| + | [global.config] | ||
| + | ... | ||
| + | [global.apply-policy.config] | ||
| + | export-policy-list = [" | ||
| + | default-import-policy = " | ||
| + | default-export-policy = " | ||
| + | |||
| + | [[neighbors]] | ||
| + | ... | ||
| + | ... | ||
| + | |||
| + | [[policy-definitions]] | ||
| + | name = " | ||
| + | [[policy-definitions.statements]] | ||
| + | name = " | ||
| + | |||
| + | [policy-definitions.statements.actions] | ||
| + | route-disposition = " | ||
| + | |||
| + | # number of times to prepend our asn. This allows for controlling | ||
| + | # the length of th AS path that packet takes so it affects routing | ||
| + | # https:// | ||
| + | [policy-definitions.statements.actions.bgp-actions.set-as-path-prepend] | ||
| + | as = " | ||
| + | repeat-n = 1 | ||
| + | |||
| + | </ | ||
| + | Here we're prepending the path 1 additional time. After restarting the service notice a repeating ASN in //AS_PATH// column | ||
| + | |||
| + | # gobgp neighbor 213.155.129.101 adj-out | ||
| + | | ||
| + | | ||
| + | |||
| + | On RIPE Looking glass this will be shown as | ||
| + | |||
| + | {{: | ||
| ====== Tested on ====== | ====== Tested on ====== | ||
| * gobgp_version: | * gobgp_version: | ||
| Line 136: | Line 229: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
wiki/bgp_ip_transit_info.1767791430.txt.gz · Last modified: by antisa
