Community discussions

MikroTik App
 
sonimar
newbie
Topic Author
Posts: 33
Joined: Thu Oct 11, 2007 10:29 am

DHCP Server Option 122

Sat Jul 17, 2010 12:26 pm

Hi,

I need to configure DHCP server with Option 122 and suboptions 1, 2, 3 y 6. Anybody can say me how to configure suboptions?

Thank You
 
sonimar
newbie
Topic Author
Posts: 33
Joined: Thu Oct 11, 2007 10:29 am

Re: DHCP Server Option 122

Tue Jul 20, 2010 9:35 am

Please, anybody can help me?

Thank you
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: DHCP Server Option 122

Tue Jul 20, 2010 9:44 am

Option specifics are exlained in RFC
http://www.networksorcery.com/enp/rfc/rfc3495.txt
From RFC
+------+--------+----------------+----------------+---+----------------+
| 122 | Length | Sub-option 1 | Sub-option 2 |-----| Sub-option n |
+------+--------+----------------+----------------+---+----------------+

+-------------------+--------+------------------------+
| Sub-option Code | Length | Sub-option information |
+-------------------+--------+------------------------+

You need to write this information as hexadecimal value into dhcp options configuration
 
sonimar
newbie
Topic Author
Posts: 33
Joined: Thu Oct 11, 2007 10:29 am

Re: DHCP Server Option 122

Tue Jul 20, 2010 8:09 pm

Could you say me if this is correct?

For Option 122 with suboption 1, I know that:

Code Len Address
+-----+-----+-----+-----+-----+-----+
| 1/2 | 4 | a1 | a2 | a3 | a4 |
+-----+-----+-----+-----+-----+-----+
where a1,a2,a3,a4 are an ip address, 192.168.10.10

Is correct if I write in suboption: 0x014c0a80a0a ?

Regards
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: DHCP Server Option 122

Wed Jul 21, 2010 9:30 am

Sub option 1 for 192.168.10.10
should look like this:
0x060104C0a80a0a
 
sonimar
newbie
Topic Author
Posts: 33
Joined: Thu Oct 11, 2007 10:29 am

Re: DHCP Server Option 122

Wed Jul 21, 2010 9:55 am

Hi,

What is the me meaning from the first two digits 06?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: DHCP Server Option 122

Wed Jul 21, 2010 11:42 am

total length.

Who is online

Users browsing this forum: Andreas, GoogleOther [Bot] and 85 guests