This shows you the differences between two versions of the page.
openbsd:anycasting [2019/11/22 10:55] jrmu created |
openbsd:anycasting [2019/11/22 13:11] (current) jrmu |
||
---|---|---|---|
Line 3: | Line 3: | ||
The benefit is that, whenever a user connects to your network, he will request from the server that is closest to him, reducing the latency of the connection. | The benefit is that, whenever a user connects to your network, he will request from the server that is closest to him, reducing the latency of the connection. | ||
- | To set up anycasting, you simply need to configure /etc/hostname.if0: | + | To set up anycasting, first follow the instructions provided by your provider ([[https://wiki.buyvm.net/doku.php/anycast_vps|here are BuyVM's]]), then configure OpenBSD to use those IP addresses. |
- | Suppose | + | Suppose you have the normal IP address 192.0.1.1 and 10.0.1.1 as the anycast IP address. Inside /etc/hostname.if0, you should put: |
+ | |||
+ | Suppose you have | ||
<code> | <code> | ||
- | inet 192.0.2.1 255.255.255.0 | + | inet 192.0.1.1 255.255.255.0 |
- | inet alias 192.1.0.1 255.255.255.255 | + | inet alias 10.0.1.1 255.255.255.255 |
- | inet6 ffef:6400:0000:0000:: 48 | + | |
- | #inet6 autoconf | + | |
</code> | </code> | ||
+ | |||
+ | Make sure to configure this for each of the three servers that share the same anycast IP address. |