dhclient on solaris 10

jason at monsterjam.org jason at monsterjam.org
Wed Aug 23 19:58:18 UTC 2006


brand new solaris 10 box, and im running dhclient just because thats 
what Im somewhat familiar with. but when I run dhclient on my eri1 
interface, most of the time, I get an ip address for a default gateway 
thats not on the network that my ip address came from.

i.e. 
eri1 gets 66.26.41.132

but the leases file shows
lease {
  interface "eri1";
  fixed-address 66.26.41.132;
  filename "default.bin";
  option subnet-mask 255.255.252.0;
  option routers 66.26.40.1;  <----- bad bad bad!
  option dhcp-lease-time 86400;
  option dhcp-message-type 5;
  option domain-name-servers 10.1.1.1,24.25.5.150,24.25.5.149;
  option dhcp-server-identifier 10.42.64.1;
  option broadcast-address 255.255.255.255;
  option domain-name "nc.rr.com";
  renew 4 2006/8/24 04:26:41;
  rebind 4 2006/8/24 16:11:31;
  expire 4 2006/8/24 19:11:31;
}


and 

32 nexthop is not directly connected
Aug 23 14:06:05 spike in.routed[183]: [ID 464608 daemon.error] route 
0.0.0.0 --> 66.26.41.1 nexthop is not directly connected
Aug 23 14:21:04 spike in.routed[183]: [ID 464608 daemon.error] route 
66.26.40.0/22 --> 66.26.41.132 nexthop is not directly connected
Aug 23 14:31:04 spike in.routed[183]: [ID 464608 daemon.error] route 
0.0.0.0 --> 66.26.41.1 nexthop is not directly connected


and my dhclient.conf file sez

send dhcp-lease-time 3600;
request subnet-mask, broadcast-address, time-offset,
        domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;
script "/etc/dhclient-script";
supersede domain-name-servers 10.1.1.1, 24.25.5.150, 24.25.5.149;


am I getting the wrong subnet mask on my eri1 ? any ideas?

Jason



More information about the dhcp-users mailing list