Re: [Dnsmasq-discuss] what is 'next-server' ? is it dhcp-option 66?

2021-06-27 Thread Bino Oetomo
Dear Geert Stappers

On Sun, Jun 27, 2021 at 4:31 PM Geert Stappers via Dnsmasq-discuss <
dnsmasq-discuss@lists.thekelleys.org.uk> wrote:

>
>
> OK, it got implemented well.
>
>
> with your helps

>
> > > --
> > > Silence is hard to parse
> > >
> > >
> > Thankyou Geert Stappers,
> > I really really appreciate your helps.
>
> Share with the Internet
> the working  Freeradius DHCP server configuration.
>
> At first, I think option-66 is what I need to point PXE client to TFTP
server.
But it's not.
DHCP-Server-IP-Address (siaddr) is the right one,

Sincerely
-bino-

>
>
> Groeten
> Geert Stappers
> --
> Silence is hard to parse
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] what is 'next-server' ? is it dhcp-option 66?

2021-06-27 Thread Geert Stappers via Dnsmasq-discuss
On Sun, Jun 27, 2021 at 03:06:14PM +0700, Bino Oetomo wrote:
> On Sun, Jun 27, 2021 at 12:03 AM Geert Stappers wrote:
> > On Sat, Jun 26, 2021 at 02:58:16PM +0700, Bino Oetomo wrote:
> > > On Sat, Jun 26, 2021 at 1:24 PM Geert Stappers wrote:
> > > > On Sat, Jun 26, 2021 at 09:55:01AM +0700, Bino Oetomo wrote:
> > > > > Dear All.
> > > >
> > > > > Is 'next-server' different from dhcp-option-66?
> > > >
> > > > Yes, they are two different "fields" in a DHCP network packet.
> > > >
> > >
> >
> > Qouting https://datatracker.ietf.org/doc/html/rfc2131#page-9
> > RFC-2131 Dynamic Host Configuration Protocol
> >
> >
> >0   1   2   3
> >0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
> >+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >| op (1)|   htype (1)   |   hlen (1)|   hops (1)|
> >+---+---+---+---+
> >|xid (4)|
> >+---+---+
> >|   secs (2)|   flags (2)   |
> >+---+---+
  ...
> >+---+
> >|  siaddr  (4)  |
> >+---+
  ...
> >+---+
> >|  options (variable)   |
> >+---+
> >
> >
> > > So, what is it's option number?
> > > is it the same as siaddr?
> >
> > The above model of a DHCP network packet should answer those questions.
> >
> >
> > Regards
> > Geert Stappers
> > Fully are that knowning what is in the network packet,
> > does not mean knowning how it is implemented.
> 
> After blindly guessing, I found that I have to add
> ''DHCP-Server-IP-Address'' in rest response to freeradius.
> And now it works smooth.

OK, it got implemented well.



> > --
> > Silence is hard to parse
> >
> > 
> Thankyou Geert Stappers,
> I really really appreciate your helps.

Share with the Internet
the working  Freeradius DHCP server configuration.
 


Groeten
Geert Stappers
-- 
Silence is hard to parse

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] what is 'next-server' ? is it dhcp-option 66?

2021-06-27 Thread Bino Oetomo
On Sun, Jun 27, 2021 at 12:03 AM Geert Stappers via Dnsmasq-discuss <
dnsmasq-discuss@lists.thekelleys.org.uk> wrote:

> On Sat, Jun 26, 2021 at 02:58:16PM +0700, Bino Oetomo wrote:
> > On Sat, Jun 26, 2021 at 1:24 PM Geert Stappers wrote:
> > > On Sat, Jun 26, 2021 at 09:55:01AM +0700, Bino Oetomo wrote:
> > > > Dear All.
> > >
> > > > Is 'next-server' different from dhcp-option-66?
> > >
> > > Yes, they are two different "fields" in a DHCP network packet.
> > >
> >
>
> Qouting https://datatracker.ietf.org/doc/html/rfc2131#page-9
> RFC-2131 Dynamic Host Configuration Protocol
>
>
>0   1   2   3
>0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>| op (1)|   htype (1)   |   hlen (1)|   hops (1)|
>+---+---+---+---+
>|xid (4)|
>+---+---+
>|   secs (2)|   flags (2)   |
>+---+---+
>|  ciaddr  (4)  |
>+---+
>|  yiaddr  (4)  |
>+---+
>|  siaddr  (4)  |
>+---+
>|  giaddr  (4)  |
>+---+
>|   |
>|  chaddr  (16) |
>|   |
>|   |
>+---+
>|   |
>|  sname   (64) |
>+---+
>|   |
>|  file(128)|
>+---+
>|   |
>|  options (variable)   |
>+---+
>
>
> > So, what is it's option number?
> > is it the same as siaddr?
>
> The above model of a DHCP network packet should answer those questions.
>
>
> After blindly guessing, I found that I have to add
''DHCP-Server-IP-Address'' in rest response to freeradius.
And now it works smooth.

Thankyou Geert Stappers,
I really really appreciate your helps.

Sincerely
-bino-


> Regards
> Geert Stappers
> Fully are that knowning what is in the network packet,
> does not mean knowning how it is implemented.
> --
> Silence is hard to parse
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] what is 'next-server' ? is it dhcp-option 66?

2021-06-26 Thread Geert Stappers via Dnsmasq-discuss
On Sat, Jun 26, 2021 at 02:58:16PM +0700, Bino Oetomo wrote:
> On Sat, Jun 26, 2021 at 1:24 PM Geert Stappers wrote:
> > On Sat, Jun 26, 2021 at 09:55:01AM +0700, Bino Oetomo wrote:
> > > Dear All.
> >
> > > Is 'next-server' different from dhcp-option-66?
> >
> > Yes, they are two different "fields" in a DHCP network packet.
> >
> 

Qouting https://datatracker.ietf.org/doc/html/rfc2131#page-9
RFC-2131 Dynamic Host Configuration Protocol


   0   1   2   3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | op (1)|   htype (1)   |   hlen (1)|   hops (1)|
   +---+---+---+---+
   |xid (4)|
   +---+---+
   |   secs (2)|   flags (2)   |
   +---+---+
   |  ciaddr  (4)  |
   +---+
   |  yiaddr  (4)  |
   +---+
   |  siaddr  (4)  |
   +---+
   |  giaddr  (4)  |
   +---+
   |   |
   |  chaddr  (16) |
   |   |
   |   |
   +---+
   |   |
   |  sname   (64) |
   +---+
   |   |
   |  file(128)|
   +---+
   |   |
   |  options (variable)   |
   +---+


> So, what is it's option number?
> is it the same as siaddr?

The above model of a DHCP network packet should answer those questions.



Regards
Geert Stappers
Fully are that knowning what is in the network packet,
does not mean knowning how it is implemented.
-- 
Silence is hard to parse

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] what is 'next-server' ? is it dhcp-option 66?

2021-06-26 Thread Bino Oetomo
Dear Geert Stappers
I really appreciate your help

On Sat, Jun 26, 2021 at 1:24 PM Geert Stappers via Dnsmasq-discuss <
dnsmasq-discuss@lists.thekelleys.org.uk> wrote:

> On Sat, Jun 26, 2021 at 09:55:01AM +0700, Bino Oetomo wrote:
> > Dear All.
>
> > Is 'next-server' different from dhcp-option-66?
>
> Yes, they are two different "fields" in a DHCP network packet.
>
> So, what is it's option number?
is it the same as siaddr?

Sincerely
-bino-
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] what is 'next-server' ? is it dhcp-option 66?

2021-06-26 Thread Geert Stappers via Dnsmasq-discuss
On Sat, Jun 26, 2021 at 09:55:01AM +0700, Bino Oetomo wrote:
> Dear All.

Hello,

 
> I have 3 Virtualbox guest.
> A. tftp-server DNSMASQ v.2.80 with IP address 10.10.254.1
> B. dhcp-server DNSMASQ v.280 with IP address 10.10.254.2 and 10.10.253.1 
> (This one facing IPXE client)
> C. IPXE client




+-+   +-+   +-+
| |10.10.254  | | 10.10.253 | |
|  A  +---+  B  +---+  C  |
| |.1   .2| |.1.dhcp| |
+-+   +-+   +-+


 
> When I config dhcp server with:
> 'dhcp-boot=lpxelinux.0,server.name,10.10.254.1'
> IPXE client received 'next server' 10.10.254.1
> 
> Next try, I commented 'dhcp-boot' line, and put
> dhcp-option=66,10.10.254.1
> dhcp-option=67,lpxelinux.0
> 
> DNSMASQ log says:
> 
> dnsmasq-dhcp: 3891074361 next server: 10.10.253.1
> dnsmasq-dhcp: 3891074361 sent size:  1 option: 53 message-type  5
> dnsmasq-dhcp: 3891074361 sent size:  4 option: 54 server-identifier 
> 10.10.253.1
> dnsmasq-dhcp: 3891074361 sent size:  4 option: 51 lease-time  12h
> dnsmasq-dhcp: 3891074361 sent size:  4 option: 58 T1  6h
> dnsmasq-dhcp: 3891074361 sent size:  4 option: 59 T2  10h30m
> dnsmasq-dhcp: 3891074361 sent size:  4 option:  1 netmask  255.255.255.0
> dnsmasq-dhcp: 3891074361 sent size:  4 option: 28 broadcast  10.10.253.255
> dnsmasq-dhcp: 3891074361 sent size:  4 option:  3 router  10.10.253.1
> dnsmasq-dhcp: 3891074361 sent size: 12 option: 67 bootfile-name  lpxelinux.0
> dnsmasq-dhcp: 3891074361 sent size: 12 option: 66 tftp-server  10.10.254.1
> 
> and the IPXE client receive 10.10.253.1, not as described by option:66

Come again, because I do see

 > dnsmasq-dhcp: 3891074361 next server: 10.10.253.1
 > dnsmasq-dhcp: 3891074361 sent size: 12 option: 66 tftp-server  10.10.254.1
 


> Is 'next-server' different from dhcp-option-66?

Yes, they are two different "fields" in a DHCP network packet.


Regards
Geert Stappers
Did invest yesterday (in his timezone) a lot of time
in an interesting DHCPrelay related problem.
-- 
Silence is hard to parse

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss