fixed-address problem

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

fixed-address problem

Bernard Fay
Hello everyonw,

I am unable to assign fixed IP addresses to host.

I have the following configuration:

option domain-name "cts.org";
option domain-name-servers ns1.cts.org;

default-lease-time 300;
max-lease-time 1500;


subnet 192.168.99.0 netmask 255.255.255.0 {

#  range 192.168.99.201 192.168.99.250;
    option broadcast-address 192.168.99.255;
    option routers 192.168.99.1;
    option domain-name "cts.org";

  group {
    host vault {
      option host-name "vault.cts.org";
      hardware ethernet 52:af:12:cf:87:c5;
      fixed-address 192.168.98.101;
    }
  }
}


With "range 192.168.99.201 192.168.99.250;"  the host is assigned the first available IP address. If I disable "range" like in the shown configuration, the log says: "dhcpd: DHCPDISCOVER from 52:af:12:cf:87:c5 via eth1: network 192.168.99.0/24: no free leases".

This ISC DHCP 4.2.5.

What am I doing wrong?

Thanks,
Bernard


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: fixed-address problem

Sherman Lilly
Your subnet is wrong

Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Bernard Fay [[hidden email]]
Sent: Tuesday, January 26, 2016 2:30 PM
To: [hidden email]
Subject: fixed-address problem

Hello everyonw,

I am unable to assign fixed IP addresses to host.

I have the following configuration:

option domain-name "cts.org";
option domain-name-servers ns1.cts.org;

default-lease-time 300;
max-lease-time 1500;


subnet 192.168.99.0 netmask 255.255.255.0 {

#  range 192.168.99.201 192.168.99.250;
    option broadcast-address 192.168.99.255;
    option routers 192.168.99.1;
    option domain-name "cts.org";

  group {
    host vault {
      option host-name "vault.cts.org";
      hardware ethernet 52:af:12:cf:87:c5;
      fixed-address 192.168.98.101;
    }
  }
}


With "range 192.168.99.201 192.168.99.250;"  the host is assigned the first available IP address. If I disable "range" like in the shown configuration, the log says: "dhcpd: DHCPDISCOVER from 52:af:12:cf:87:c5 via eth1: network 192.168.99.0/24: no free leases".

This ISC DHCP 4.2.5.

What am I doing wrong?

Thanks,
Bernard


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: fixed-address problem

Patrick Trapp
I don't see a problem with the subnet. OP just isn't using the entire pool, right?

I'm not sure what the effect of the "group" declaration is. I believe on my configurations where I'm assigning a static address, I'm just using a "host" declaration. I don't declare these hosts within the subnet declaration, either. I would be inclined to try the host declaration outside the subnet first.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 1:35 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet is wrong

Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Bernard Fay [[hidden email]]
Sent: Tuesday, January 26, 2016 2:30 PM
To: [hidden email]
Subject: fixed-address problem

Hello everyonw,

I am unable to assign fixed IP addresses to host.

I have the following configuration:

option domain-name "cts.org";
option domain-name-servers ns1.cts.org;

default-lease-time 300;
max-lease-time 1500;


subnet 192.168.99.0 netmask 255.255.255.0 {

#  range 192.168.99.201 192.168.99.250;
    option broadcast-address 192.168.99.255;
    option routers 192.168.99.1;
    option domain-name "cts.org";

  group {
    host vault {
      option host-name "vault.cts.org";
      hardware ethernet 52:af:12:cf:87:c5;
      fixed-address 192.168.98.101;
    }
  }
}


With "range 192.168.99.201 192.168.99.250;"  the host is assigned the first available IP address. If I disable "range" like in the shown configuration, the log says: "dhcpd: DHCPDISCOVER from 52:af:12:cf:87:c5 via eth1: network 192.168.99.0/24: no free leases".

This ISC DHCP 4.2.5.

What am I doing wrong?

Thanks,
Bernard


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: fixed-address problem

Sherman Lilly
Your subnet clause is

subnet 192.168.99.0 netmask 255.255.255.0 {

Your fixed address is

fixed-address 192.168.98.101;

You can't service a subnet out side of the subnet in your declaration


Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Patrick Trapp [[hidden email]]
Sent: Tuesday, January 26, 2016 4:24 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

I don't see a problem with the subnet. OP just isn't using the entire pool, right?

I'm not sure what the effect of the "group" declaration is. I believe on my configurations where I'm assigning a static address, I'm just using a "host" declaration. I don't declare these hosts within the subnet declaration, either. I would be inclined to try the host declaration outside the subnet first.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 1:35 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet is wrong

Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Bernard Fay [[hidden email]]
Sent: Tuesday, January 26, 2016 2:30 PM
To: [hidden email]
Subject: fixed-address problem

Hello everyonw,

I am unable to assign fixed IP addresses to host.

I have the following configuration:

option domain-name "cts.org";
option domain-name-servers ns1.cts.org;

default-lease-time 300;
max-lease-time 1500;


subnet 192.168.99.0 netmask 255.255.255.0 {

#  range 192.168.99.201 192.168.99.250;
    option broadcast-address 192.168.99.255;
    option routers 192.168.99.1;
    option domain-name "cts.org";

  group {
    host vault {
      option host-name "vault.cts.org";
      hardware ethernet 52:af:12:cf:87:c5;
      fixed-address 192.168.98.101;
    }
  }
}


With "range 192.168.99.201 192.168.99.250;"  the host is assigned the first available IP address. If I disable "range" like in the shown configuration, the log says: "dhcpd: DHCPDISCOVER from 52:af:12:cf:87:c5 via eth1: network 192.168.99.0/24: no free leases".

This ISC DHCP 4.2.5.

What am I doing wrong?

Thanks,
Bernard


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: fixed-address problem

Patrick Trapp
Ah, since you called out the subnet, I looked at the subnet. Not the host address where the error appears to be. My apologies.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 3:27 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet clause is

subnet 192.168.99.0 netmask 255.255.255.0 {

Your fixed address is

fixed-address 192.168.98.101;

You can't service a subnet out side of the subnet in your declaration


Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Patrick Trapp [[hidden email]]
Sent: Tuesday, January 26, 2016 4:24 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

I don't see a problem with the subnet. OP just isn't using the entire pool, right?

I'm not sure what the effect of the "group" declaration is. I believe on my configurations where I'm assigning a static address, I'm just using a "host" declaration. I don't declare these hosts within the subnet declaration, either. I would be inclined to try the host declaration outside the subnet first.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 1:35 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet is wrong

Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Bernard Fay [[hidden email]]
Sent: Tuesday, January 26, 2016 2:30 PM
To: [hidden email]
Subject: fixed-address problem

Hello everyonw,

I am unable to assign fixed IP addresses to host.

I have the following configuration:

option domain-name "cts.org";
option domain-name-servers ns1.cts.org;

default-lease-time 300;
max-lease-time 1500;


subnet 192.168.99.0 netmask 255.255.255.0 {

#  range 192.168.99.201 192.168.99.250;
    option broadcast-address 192.168.99.255;
    option routers 192.168.99.1;
    option domain-name "cts.org";

  group {
    host vault {
      option host-name "vault.cts.org";
      hardware ethernet 52:af:12:cf:87:c5;
      fixed-address 192.168.98.101;
    }
  }
}


With "range 192.168.99.201 192.168.99.250;"  the host is assigned the first available IP address. If I disable "range" like in the shown configuration, the log says: "dhcpd: DHCPDISCOVER from 52:af:12:cf:87:c5 via eth1: network 192.168.99.0/24: no free leases".

This ISC DHCP 4.2.5.

What am I doing wrong?

Thanks,
Bernard


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: fixed-address problem

Graham Clinch
In reply to this post by Bernard Fay

On 26/01/2016 19:30, Bernard Fay wrote:
> subnet 192.168.99.0 netmask 255.255.255.0 {
> [...]
>        fixed-address 192.168.98.101;
 > [...]
> What am I doing wrong?

There's no subnet defined that contains the fixed-address, so dhcpd
can't offer that address to a client.  Perhaps you meant to allocate
'192.168.99.101', or use a different netmask?

Unrelated to the problem, option inheritance can work unexpectedly when
hosts are defined within subnets - you might find this less confusing in
future:

=-=
subnet 192.168.99.0 netmask 255.255.255.0 {
#   range 192.168.99.201 192.168.99.250;
     option broadcast-address 192.168.99.255;
     option routers 192.168.99.1;
     option domain-name "cts.org";
}

group {
     host vault {
         option host-name "vault.cts.org";
         hardware ethernet 52:af:12:cf:87:c5;
         fixed-address 192.168.98.101;
     }
}
=-=

(additionally the 'empty' group (i.e. no options defined) doesn't really
gain anything in this case, so you could move the 'host' to the outer
layer and dispense with the group entirely)

Graham
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: fixed-address problem

Sherman Lilly
In reply to this post by Patrick Trapp
No problem. Typos are the root of all evil.

Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Patrick Trapp [[hidden email]]
Sent: Tuesday, January 26, 2016 4:30 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Ah, since you called out the subnet, I looked at the subnet. Not the host address where the error appears to be. My apologies.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 3:27 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet clause is

subnet 192.168.99.0 netmask 255.255.255.0 {

Your fixed address is

fixed-address 192.168.98.101;

You can't service a subnet out side of the subnet in your declaration


Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Patrick Trapp [[hidden email]]
Sent: Tuesday, January 26, 2016 4:24 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

I don't see a problem with the subnet. OP just isn't using the entire pool, right?

I'm not sure what the effect of the "group" declaration is. I believe on my configurations where I'm assigning a static address, I'm just using a "host" declaration. I don't declare these hosts within the subnet declaration, either. I would be inclined to try the host declaration outside the subnet first.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 1:35 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet is wrong

Sherman Lilly
(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Bernard Fay [[hidden email]]
Sent: Tuesday, January 26, 2016 2:30 PM
To: [hidden email]
Subject: fixed-address problem

Hello everyonw,

I am unable to assign fixed IP addresses to host.

I have the following configuration:

option domain-name "cts.org";
option domain-name-servers ns1.cts.org;

default-lease-time 300;
max-lease-time 1500;


subnet 192.168.99.0 netmask 255.255.255.0 {

#  range 192.168.99.201 192.168.99.250;
    option broadcast-address 192.168.99.255;
    option routers 192.168.99.1;
    option domain-name "cts.org";

  group {
    host vault {
      option host-name "vault.cts.org";
      hardware ethernet 52:af:12:cf:87:c5;
      fixed-address 192.168.98.101;
    }
  }
}


With "range 192.168.99.201 192.168.99.250;"  the host is assigned the first available IP address. If I disable "range" like in the shown configuration, the log says: "dhcpd: DHCPDISCOVER from 52:af:12:cf:87:c5 via eth1: network 192.168.99.0/24: no free leases".

This ISC DHCP 4.2.5.

What am I doing wrong?

Thanks,
Bernard


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: fixed-address problem

Bernard Fay
I just stopped banging my head against the wall..  Yes, a ..... typo!  It should have been "fixed-address 192.168.99.101;"

Damn!

Thanks Sherman
 

On Tue, Jan 26, 2016 at 4:34 PM, Sherman Lilly <[hidden email]> wrote:
No problem. Typos are the root of all evil.

Sherman Lilly
<a href="tel:%28865%29%20215-3536" value="+18652153536" target="_blank">(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Patrick Trapp [[hidden email]]
Sent: Tuesday, January 26, 2016 4:30 PM

To: Users of ISC DHCP
Subject: RE: fixed-address problem

Ah, since you called out the subnet, I looked at the subnet. Not the host address where the error appears to be. My apologies.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 3:27 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet clause is

subnet 192.168.99.0 netmask 255.255.255.0 {

Your fixed address is

fixed-address 192.168.98.101;

You can't service a subnet out side of the subnet in your declaration


Sherman Lilly
<a href="tel:%28865%29%20215-3536" value="+18652153536" target="_blank">(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Patrick Trapp [[hidden email]]
Sent: Tuesday, January 26, 2016 4:24 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

I don't see a problem with the subnet. OP just isn't using the entire pool, right?

I'm not sure what the effect of the "group" declaration is. I believe on my configurations where I'm assigning a static address, I'm just using a "host" declaration. I don't declare these hosts within the subnet declaration, either. I would be inclined to try the host declaration outside the subnet first.


From: [hidden email] [[hidden email]] on behalf of Sherman Lilly [[hidden email]]
Sent: Tuesday, January 26, 2016 1:35 PM
To: Users of ISC DHCP
Subject: RE: fixed-address problem

Your subnet is wrong

Sherman Lilly
<a href="tel:%28865%29%20215-3536" value="+18652153536" target="_blank">(865) 215-3536
Senior Systems Administrator
Knox County


From: [hidden email] [[hidden email]] on behalf of Bernard Fay [[hidden email]]
Sent: Tuesday, January 26, 2016 2:30 PM
To: [hidden email]
Subject: fixed-address problem

Hello everyonw,

I am unable to assign fixed IP addresses to host.

I have the following configuration:

option domain-name "cts.org";
option domain-name-servers ns1.cts.org;

default-lease-time 300;
max-lease-time 1500;


subnet 192.168.99.0 netmask 255.255.255.0 {

#  range 192.168.99.201 192.168.99.250;
    option broadcast-address 192.168.99.255;
    option routers 192.168.99.1;
    option domain-name "cts.org";

  group {
    host vault {
      option host-name "vault.cts.org";
      hardware ethernet 52:af:12:cf:87:c5;
      fixed-address 192.168.98.101;
    }
  }
}


With "range 192.168.99.201 192.168.99.250;"  the host is assigned the first available IP address. If I disable "range" like in the shown configuration, the log says: "dhcpd: DHCPDISCOVER from 52:af:12:cf:87:c5 via eth1: network 192.168.99.0/24: no free leases".

This ISC DHCP 4.2.5.

What am I doing wrong?

Thanks,
Bernard


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users