Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I do "dhclient eth1", it obtains the information (IP address, router, DNS, etc.) and applies it to routing table, /etc/resolv.conf and so on.

How to only get and print the information from DHCP server without touching the network configuration?

Currently I use dhcdrop -t, but it is not the right tool for the job.

share|improve this question
Should the information to be obtained be related to the interface eth1 as in your sample? – Serge Oct 2 '12 at 19:16
Yes.󠀠󠀠󠀠󠀠󠀠󠀠 – Vi. Oct 2 '12 at 19:50
One more question. The already cached information is not enough? – Serge Oct 2 '12 at 19:57
Already cached information on freshly set up or not DHCP-maanged interface? Actually the one use case is to set IP and some routes based on DHCP reply, but not DNS. – Vi. Oct 2 '12 at 20:04
You did not mention in the question that this is a freshly setup machine as well as that the interface is not dhcp managed. – Serge Oct 2 '12 at 20:06
show 3 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.