Multiple Static IP Addresses in Arch on a Single Interface
Tue, Dec 20, 2011I’m running HAProxy on ArchLinux and I need a few IPs on the load balancers. In this case, I’m specifically using an IP for the stats page with the following configuration:
listen stats 192.168.99.99 mode http stats uri / stats auth admin:password stats realm Internal\ LB1\ Stats
In Arch you either use the network daemon or the net-profiles daemon. Neither of those supports multiple IPs on a single interface too easily, and the easiest method I’ve found is to simply append the command for adding an IP to an interface to the end of the rc.conf file.
ip addr add 192.168.99.99/24 dev eth0