Div |
---|
|
Admin Guide 1. Abiquo: Static Routes |
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:
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.
Div |
---|
|
Code Block |
---|
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.
Div |
---|
|
Code Block |
---|
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
Troubleshooting
See DHCP Troubleshooting