Author Topic: Troublw with DNS, DHCP, and my Zaurus  (Read 744 times)

bkudria

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Troublw with DNS, DHCP, and my Zaurus
« on: November 13, 2004, 05:04:48 pm »
Latest OZ/Opie on a 5600, kernel 2.6 on Debian Sid, latest bind9 and dhcpd

Whenever I undock my zaurus, my usb0 goes down also, and dhcpd prints

[dhcpd] receive_packet failed on usb0: Network is down

to the log file.  (If I redock the zaurus, usb0 comes up, but does not get an ip) Then, I cannot get another ip unless I restart my dhcpd server.  

When I do restart, I can only get an ip if i check and uncheck the dhcp checkbox in the network settings applet.  I do *not* get a new interface when I start and stop usb0 on the zaurus, nor when I refresh it.  My question: How can have the zaurus get an ip address whenever it docks, and not have the dhcp server poop out whenever usb0 goes down?


My dhcpd.conf:

subnet 192.168.0.0 netmask 255.255.255.0 {
 # --- default gateway
  option routers   192.168.0.1;
  option subnet-mask  255.255.255.0;
  option broadcast-address 192.168.0.255;

  option domain-name-servers 192.168.0.1;      
  range    192.168.0.2 192.168.0.20;

  default-lease-time  21600;
  max-lease-time   86400;
 }
 
subnet 192.168.1.0 netmask 255.255.255.0 {
 # --- default gateway
  option routers   192.168.1.1;
  option subnet-mask  255.255.255.0;
  option broadcast-address 192.168.1.255;

  option domain-name-servers 192.168.0.1;      
  range    192.168.1.2 192.168.1.20;

      default-lease-time      100;
      max-lease-time         200;
 }