multi vlan subnet, wrong netmask and wrong router offer in PXE

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

multi vlan subnet, wrong netmask and wrong router offer in PXE

nono monbou
Hello
I have a problem on pxe boot on one of my vlan.
Dhcp offers the wrong netmask and the wrong router ip.
Dhcp offer the netmask and the router ip  of the first declarated subnet in the dhcpd.conf.
I join my dhcpd.conf

For example
A machine of the vlan 10 (subnet 149.55.10.0/24) obtain 148.55.10.180 ip address but 255.255.248 netmask and 149.55.7.254 router ip.

Could you help me ?

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

dhcpd.conf (28K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: multi vlan subnet, wrong netmask and wrong router offer in PXE

Niall O'Reilly
On 7 Apr 2020, at 10:51, nono monbou wrote:

> Could you help me ?

You should keep host declarations global: that is, not contained in any subnet
declaration. This is almost certainly the most common single piece of advice
given on this mailing list.

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

Re: multi vlan subnet, wrong netmask and wrong router offer in PXE

Sten Carlsen
In reply to this post by nono monbou


On 07-04-2020 11.51, nono monbou wrote:
Hello
I have a problem on pxe boot on one of my vlan.
Dhcp offers the wrong netmask and the wrong router ip.
Dhcp offer the netmask and the router ip  of the first declarated subnet in the dhcpd.conf.
I join my dhcpd.conf

For example
A machine of the vlan 10 (subnet 149.55.10.0/24) obtain 148.55.10.180 ip address but 255.255.248 netmask and 149.55.7.254 router ip.

Host statement are ALWAYS global BUT take some of their parameters from the place where they are declared.


It looks like the host you refer to here is one of the following:

admin01
admin02
admin05
d001m01
d279m01
d270m01
d279m02
e003m01
e003m02

since these are declared in "subnet 149.55.0.0 netmask 255.255.248.0" and this is the only place where the router is mentioned.


Your class definitions are seemingly identical for each subnet? I believe this is a big mistake, AFAIK class statements are global in nature, so they may pick up the router from any of the places they are declared.


Proposal:

Collect all host statements in one place outside the scope of all subnets. E.g. at the end of the file.

Collect the class statements in the same way, as hosts. Then look for another way to set the differentiating details in each pool.


Could you help me ?

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

Sten Carlsen

No improvements come from shouting:

"MALE BOVINE MANURE!!!" 

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

RE: multi vlan subnet, wrong netmask and wrong router offer in PXE

nono monbou
In reply to this post by Niall O'Reilly
Hello,
That was the problem, hosts must be declared out of the subnet declartion.

Thank you very much 😊


De : dhcp-users <[hidden email]> de la part de Niall O'Reilly <[hidden email]>
Envoyé : mardi 7 avril 2020 12:57
À : Users of ISC DHCP <[hidden email]>
Objet : Re: multi vlan subnet, wrong netmask and wrong router offer in PXE
 
On 7 Apr 2020, at 10:51, nono monbou wrote:

> Could you help me ?

You should keep host declarations global: that is, not contained in any subnet
declaration. This is almost certainly the most common single piece of advice
given on this mailing list.

Best regards,
Niall O'Reilly
_______________________________________________
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