[ltp] dhcp problem

André Wyrwa linux-thinkpad@linux-thinkpad.org
Mon, 01 Dec 2003 19:00:50 +0100


Hi,

here's my files:

# dhclient.conf

interface "eth0" {
send host-name "froschkoenig";
prepend domain-name-servers 127.0.0.1, 192.168.1.10;
supersede domain-name "maerchenwald";
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
}

interface "eth1" {
prepend domain-name-servers 192.168.1.10 , 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
}

# end dhclient.conf

---

this is resolv.conf as it get's created by dhclient:
the search entry is correct now, since i included the supersede entry in
the config file above. However, the server entries are still crap and i
still don't know where they come from.

search maerchenwald
nameserver 127.0.0.1
nameserver 192.168.1.10
nameserver 141.20.1.3

---

This is current leases file...a bit long at the moment.
Note that dhclient always puts the 141.20.1.3 dns entry to the eth0
leases again, even when i remove them or rename the whole leases file.
Funny thing is that for eth1 it behaves like it should, but my card was
only once labeled eth1 by some accident and now it's alway eth0.

lease {
  interface "eth0";
  fixed-address 10.0.1.3;
  option subnet-mask 255.255.255.0;
  option dhcp-lease-time 3600;
  option routers 10.0.1.1;
  option dhcp-message-type 5;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name-servers 127.0.0.1,192.168.1.10,141.20.1.3;
  option domain-name "maerchenwald";
  renew 1 2003/12/1 15:45:28;
  rebind 1 2003/12/1 16:09:12;
  expire 1 2003/12/1 16:16:42;
}
lease {
  interface "eth1";
  fixed-address 10.0.1.2;
  option subnet-mask 255.255.255.0;
  option dhcp-lease-time 3600;
  option routers 10.0.1.1;
  option dhcp-message-type 5;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name-servers 127.0.0.1,192.168.1.10;
  option domain-name "maerchenwald";
  renew 4 2003/11/27 18:12:28;
  rebind 4 2003/11/27 18:38:08;
  expire 4 2003/11/27 18:45:38;
}
lease {
  interface "eth0";
  fixed-address 10.0.1.3;
  option subnet-mask 255.255.255.0;
  option routers 10.0.1.1;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option domain-name-servers 127.0.0.1,192.168.1.10,141.20.1.3;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name "maerchenwald";
  renew 1 2003/12/1 16:11:07;
  rebind 1 2003/12/1 16:39:04;
  expire 1 2003/12/1 16:46:34;
}
lease {
  interface "eth0";
  fixed-address 10.0.1.3;
  option subnet-mask 255.255.255.0;
  option routers 10.0.1.1;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option domain-name-servers 127.0.0.1,192.168.1.10,141.20.1.3;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name "maerchenwald";
  renew 1 2003/12/1 16:36:03;
  rebind 1 2003/12/1 17:03:37;
  expire 1 2003/12/1 17:11:07;
}
lease {
  interface "eth0";
  fixed-address 10.0.1.3;
  option subnet-mask 255.255.255.0;
  option routers 10.0.1.1;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option domain-name-servers 127.0.0.1,192.168.1.10,141.20.1.3;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name "maerchenwald";
  renew 1 2003/12/1 17:00:14;
  rebind 1 2003/12/1 17:28:33;
  expire 1 2003/12/1 17:36:03;
}
lease {
  interface "eth0";
  fixed-address 10.0.1.3;
  option subnet-mask 255.255.255.0;
  option routers 10.0.1.1;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option domain-name-servers 127.0.0.1,192.168.1.10,141.20.1.3;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name "maerchenwald";
  renew 1 2003/12/1 17:24:17;
  rebind 1 2003/12/1 17:52:44;
  expire 1 2003/12/1 18:00:14;
}
lease {
  interface "eth0";
  fixed-address 10.0.1.3;
  option subnet-mask 255.255.255.0;
  option routers 10.0.1.1;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option domain-name-servers 127.0.0.1,192.168.1.10,141.20.1.3;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name "maerchenwald";
  renew 1 2003/12/1 17:50:42;
  rebind 1 2003/12/1 18:16:47;
  expire 1 2003/12/1 18:24:17;
}
lease {
  interface "eth0";
  fixed-address 10.0.1.3;
  option subnet-mask 255.255.255.0;
  option routers 10.0.1.1;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option domain-name-servers 127.0.0.1,192.168.1.10,141.20.1.3;
  option dhcp-server-identifier 10.0.1.1;
  option domain-name "maerchenwald";
  renew 1 2003/12/1 18:20:32;
  rebind 1 2003/12/1 18:43:12;
  expire 1 2003/12/1 18:50:42;
}

Andre.