LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-09-2020, 06:48 PM   #1
rksyeung
Member
 
Registered: Feb 2018
Posts: 71

Rep: Reputation: Disabled
How to access DHCP option 43 on client side


Option 43 contains vendor specific information. I'm trying to extract information passed in from server on my client (either dhclient, udhcpc).

I've heuristically experimented with various parameter names, but none of them produces anything. Does anyone know how this could be done?

Thanks,
Raymond
 
Old 05-10-2020, 03:11 PM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Does something like this inside dhclient-script work?
Code:
[ "$reason" = "BOUND" ] && echo $new_vendor_encapsulated_options $new_vivso $new_dhcp6.vendor_opts
Pay attention to the prefix new_ and underscores (_) rather than dashes (-) in the variable names. They must be defined on server with dashes and without the new_ prefix though.
 
2 members found this post helpful.
Old 05-10-2020, 04:12 PM   #3
rksyeung
Member
 
Registered: Feb 2018
Posts: 71

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Does something like this inside dhclient-script work?
Code:
[ "$reason" = "BOUND" ] && echo $new_vendor_encapsulated_options $new_vivso $new_dhcp6.vendor_opts
Pay attention to the prefix new_ and underscores (_) rather than dashes (-) in the variable names. They must be defined on server with dashes and without the new_ prefix though.
Thanks shruggy. I found my answer eventually, consistent with yours. I should have asked here earlier.
What I eventually did was to download the source code, and did some grep for "vendor". I ended up finding a look-up table mapping strings to 43.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Browse Websites Side by Side Using Side View Feature on Mozilla Firefox Web Browser | Test Pilot LXer Syndicated Linux News 0 06-08-2018 06:05 PM
Cant See Side By Side Option To Dual Boot With Win 7 home premium djmoohit Linux - Laptop and Netbook 10 06-20-2013 08:31 AM
Mounting multiple NFS or Samba shares: client-side or server-side? mariogiov Linux - Server 4 04-03-2012 08:11 AM
can't get access to client-side network from server-side network through openvpn nass Linux - Server 1 11-02-2009 04:41 AM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration