dhcp server + router information

In spite of having routers lines in dhcpd.conf

host sidux {
hardware ethernet 00:00:39:34:52:84;
fixed-address 192.168.3.23;
option domain-name "home.network";
option subnet-mask 255.255.255.255;
option broadcast-address 192.168.3.255;
option routers 192.168.3.152;
option domain-name-servers 192.168.2.1;
}

my laptop running sid does not pick up any route when
it boots. It gets the address, and the nameserver, but
running /sbin/route shows the routing information is empty.

I can run a script to add the local wired route, and the router
as the gateway, but the router info used to be passed by the version
2 dhcp server I used to have. The version installed is 3.

When I run wireshark, it shows some IGMP and MDNS traffic (actually a lot
of it on ipv6) where the laptop is looking for routing information.

avahi-daemon is running locally on the server, but according to netstat it
is only listening to sockets down in /var/run.

Could it be that the dhcp server is not providing the router to the client because
it expects avahi-daemon to hand it out? Then it would fail because avahi-daemon is
not listening to the network.

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

maybe dhcp3 is passing it?

/var/lib/dhcpcd/dhcpd-eth0.info has

GATEWAYS='192.168.3.152'

among a bunch of other correct shell variables, so that must have come in with the dhcp lease.

There is no post-up option for dhcp mode in /etc/network/interfaces, so what is supposed to be running a /sbin/route with the information from the lease? Does /etc/dhcpcd.sh fill the role?

What if I were (still) using dhcp3-client instead of dhcpd?
Is there something equivalent to /etc/dhcpcd.sh there?

arrrrgh!

The subnet-mask was wrong in the dhcpd.conf . It should be 255.255.255.0 (not 255. x4 ). I took it as the mask that corresponds to the address handed out; it needs to be the one for the local net. It works fine with that change.

Syndicate content