Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Mohamed_Gaber
Contributor

How to find DHCP Options Hex value

I' m confused. To convert an IP address to Hex value to be added as DHCP option. Should I use Ascii to Hex converter or Decimal to Hex converter and convert the bytes? They give different results.
Mohamed Gaber
Cell : +201001615878
E-mail : mohamed.gaber@alkancit.com
Mohamed GaberCell : +201001615878E-mail : mohamed.gaber@alkancit.com
3 REPLIES 3
ipranger
Contributor

Yes, i like this problem. I hope i can help you with this: https://forum.fortinet.com/FindPost/91209 Greetings IPranger

Fortigate 60E v7.x (GA)

Fortigate 60E v7.x (GA)
Mohamed_Gaber

Thank You ipranger. I just read this before writing the post. They sometimes use calculator and sometimes use Ascii to Hex. I used the calculator before and it did not work. It seems that I have to try.
Mohamed Gaber
Cell : +201001615878
E-mail : mohamed.gaber@alkancit.com
Mohamed GaberCell : +201001615878E-mail : mohamed.gaber@alkancit.com
Mohamed_Gaber
Contributor

I tested it and found that: 1- We should use ASCI to Hexadecimal converter. Not Decimal to Hexadecimal converter. So, we could not use Windows Calculator. 2- We should convert the complete data including the dots between the numbers. 3- For AVAYA 1608 IP Phones we should convert the word, MCIPADD=X.X.X.X from ASCI to Hexadecimal. And use it for option 242. 4- Here is a useful site. I tried three sites but this is the best because it provides the data with no dots or space between the values. http://tomeko.net/online_tools/hex_to_ascii.php?lang=en
Mohamed Gaber
Cell : +201001615878
E-mail : mohamed.gaber@alkancit.com
Mohamed GaberCell : +201001615878E-mail : mohamed.gaber@alkancit.com
Labels
Top Kudoed Authors