6fde12091858d2ed7f4e3d27f26d75bd8691d34b
howto/vyos.md
| ... | ... | @@ -43,8 +43,26 @@ _this is a single provided address by your peer that is assigned to them in the |
| 43 | 43 | |
| 44 | 44 | While a normal world configuration may allow multiple peers on one Wireguard interface, this configuration will not work correctly if multiple peers are defined on the same interface. |
| 45 | 45 | |
| 46 | -####Coming Soon |
|
| 47 | 46 | |
| 47 | +##BGP |
|
| 48 | +Now that we have a tunnel to our peer and theoretically can ping them, we can setup BGP. |
|
| 49 | +###Initial Router Setup |
|
| 50 | +`set protocols bgp 424242XXXX address-family ipv4-unicast network 172.x.x.x\x` |
|
| 51 | +_Insert your ASN and your assigned network block. Note that this should match your exact prefix as listed in the registry; if you try to advertise a subnet of your assigned block it could get filtered by some peers._ |
|
| 52 | +`set protocols bgp 424242XXX parameters router-id 172.x.x.x` |
|
| 53 | +_To keep it simple just make your router ID match your lower IP within the DN42 registered space._ |
|
| 54 | +###Neighbor Up With Peers |
|
| 55 | +`set protocols bgp 424242XXXX neighbor 172.x.x.x address-family ipv4-unicast` |
|
| 56 | +_This is likely the same IP as the one used in your static route earlier when creating the Wireguard tunnel._ |
|
| 57 | +`set protocols bgp 424242XXXX neighbor 172.x.x.x ebgp-multihop 20` |
|
| 58 | +_This setting may need to be adjusted depending on circumstances_ |
|
| 59 | +`set protocols bgp 424242XXXX neighbor 172.x.x.x remote-as 424242XXXX` |
|
| 60 | +_Your peers ASN_ |
|
| 61 | + |
|
| 62 | +`show ip bgp summary` |
|
| 63 | + |
|
| 64 | + |
|
| 65 | +####Coming Soon |
|
| 48 | 66 | Setup BGP |
| 49 | 67 | |
| 50 | 68 | Neighbor Up With Peer via BGP |