Problem With DHCP And Default Route In CentOS

Home » CentOS » Problem With DHCP And Default Route In CentOS
CentOS 2 Comments

This sure sounds like a bug I discovered on my own 6.4 KVM node configuration.

The following added to /etc/dnsmasq.conf remedied a dnsmasq+pxe problem for me (back in May 2013).

# ref: https://bugzilla.redhat.com/show_bug.cgi?idY4682#c6
# ref: http://etherboot.org/wiki/dnsmasq#a_potential_problem_and_a_fix dhcp-no-override

2 thoughts on - Problem With DHCP And Default Route In CentOS

  • Further investigation.

    If I create a route-eth0 file and put this in it:

    default 192.168.122.1 dev eth0

    I get this upon network restart:

    Error: either “to” is duplicate, or “192.168.122.1” is a garbage.

    Which this page:
    http://www.CentOS.org/docs/5/html/5.1/Deployment_Guide/s1%2dnetworkscripts%2dstatic%2droutes.html

    says I will get if the default route is set via DHCP. So, the system is seeing the default route, and apparently even trying to set it, but it’s not lasting.

    I’m really lost on this one.

    j

  • Siiiiiiiiiigh. Discovered that the file

    /etc/sysconfig/network

    contained this line:

    GATEWAY=

    That was first placed there when the machine was first installed, using a static IP address.

    Commented that out, and now the system gets its gateway via dhcp.

    j

LEAVE A COMMENT