Abiquo can serve static routes to virtual machines through the DHCP Server. The static routes are entered in Abiquo in the GUI where you create/edit the network:
- for public/external networks in Infrastructure view on the Create/Edit Network popup
- for private networks in Virtual Datacenters view on the Create/Edit Network popup
Note that you cannot set static routes for unmanaged networks using Abiquo because machines on these networks do not connect to the Abiquo DHCP server.
Server configuration for DHCP classless static routes
The Abiquo DHCP Server configuration file (usually /etc/dhcpd.con) requires the following lines. These lines are automatically included in the DHCP Server of Abiquo Linux since version 2.0. The second line is Microsoft specific.
option classless-static-routes code 121 = array of integer 8; option ms-classless-static-routes code 249 = array of integer 8;
DHCP leases file
When you enter the static routes (using the GUI or the API), Abiquo will format the classless-static-routes options and add them to the DHCP leases file, for example.
host 525400a71a3b_host { dynamic; hardware ethernet 52:54:00:a7:1a:3b; fixed-address 192.168.0.2; supersede routers = c0:a8:00:01; supersede subnet-mask = ff:ff:ff:00; supersede classless-static-routes = concat (18:01:01:01:C0:A8:00:FA, 18:02:02:02:C0:A8:00:FA); }
Client configuration for DHCP classless static routes
See Configuring VM Templates for DHCP RFC3442 Classless Static Routes