I have a bunch of RedHat VMs that I need to set a static IPv4 routing table. I want to centralize this configuration and it came to my mind the DHCP service that could provide this information (see RFC3442).
- Does any of the DHCP clients that came with RHEL 5, and RHEL6 supports this feature?
- Is there any other alternative for doing routing table provisioning?
- Switching to IPv6 would ease this configurations?
Any other idea is welcome.
Have you considered handling this via Puppet or Chef? I would think that it would be fairly easy to write a module that would check to make sure that the routes are present and apply them if they are not available. That gives you the same flexibility and centralized control that you have with a single DHCP service config file.
If the VMs are set up with static IPs, you could set that in the network interface's route config file such as '/etc/sysconfig/network-scripts/route-eth0'. That could also be easily managed by a configuration management tool.
If you wish to do this via DHCP, ensure that you have properly configured your DHCP client per the RedHat Knowledgebase article (https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/6.1_Technical_Notes/ar01s04s05.html)