a325289f4f014d2f99d6c338822dea75c2600bfd
howto/Quagga.md
| ... | ... | @@ -20,6 +20,43 @@ To connect to bgpd use: |
| 20 | 20 | Which provides an interactive interface. |
| 21 | 21 | In this interface the following commands can be used: |
| 22 | 22 | |
| 23 | +The following text use this placeholders: |
|
| 24 | + |
|
| 25 | +- `<AS>` your Autonomous System Number (only the digits) |
|
| 26 | +- `<GATEWAY_IP>` your gateway ip (the internal dn42 ip address you use on the host, where dn42 is running) |
|
| 27 | +- `<SUBNET>` your registered dn42 subnet, which you allocated on [nixnodes](https://io.nixnodes.net/) |
|
| 28 | +- `<PEER_IP>` dn42 ip of your peer who is connected with you using your favorite vpn/tunnel protocol (openvpn, ipsec, tinc, ...) |
|
| 29 | +- `<INTERFACE>` Interface which is used to connect to the peer, in case of openvpn it is the tun device |
|
| 30 | +- `<PEER_AS>` Autonomous System Number of your peer (only the digits) |
|
| 31 | + |
|
| 32 | +## Configure a new ipv6 peering |
|
| 33 | + |
|
| 34 | +In your interactive vtysh session type the following: |
|
| 35 | + |
|
| 36 | +``` |
|
| 37 | +vtysh> configure terminal |
|
| 38 | +vtysh> router bgp <AS> |
|
| 39 | +vtysh> neighbor <PEER_IP> remote-as <PEER_AS> |
|
| 40 | +vtysh> neighbor <PEER_IP> peer-group dn |
|
| 41 | +vtysh> neighbor <PEER_IP> interface <INTERFACE> |
|
| 42 | +vtysh> no neighbor <PEER_IP> activate |
|
| 43 | +vtysh> exit |
|
| 44 | +vtysh> address-family ipv6 |
|
| 45 | +vtysh> neighbor <PEER_IP> activate |
|
| 46 | +vtysh> neighbor <PEER_IP> soft-reconfiguration inbound |
|
| 47 | +vtysh> exit |
|
| 48 | +``` |
|
| 49 | + |
|
| 50 | +## Configure a new ipv4 peering |
|
| 51 | + |
|
| 52 | +``` |
|
| 53 | +vtysh> configure terminal |
|
| 54 | +vtysh> router bgp <AS> |
|
| 55 | +vtysh> neighbor <PEER_IP> remote-as <PEER_AS> |
|
| 56 | +vtysh> neighbor <PEER_IP> peer-group dn |
|
| 57 | +vtysh> neighbor <PEER_IP> interface <INTERFACE> |
|
| 58 | +vtysh> exit |
|
| 59 | +``` |
|
| 23 | 60 | |
| 24 | 61 | # show bpg session status |
| 25 | 62 |