View previous topic :: View next topic |
Author |
Message |
doublehp Guru
Joined: 11 Apr 2005 Posts: 473 Location: FRANCE
|
Posted: Mon Dec 24, 2012 3:31 am Post subject: [SOLVED] manual DHCP request |
|
|
Hello.
I want to perform a DHCP querry manually. I want to simulate a DHCP request to a specific DHCP server, but not use any of the returned values.
dhclient -n should theoretically do it using the ISC client, but in practice, the command does not work for me. So I need any alternative to do it. Netcat scripts are welcome. Never used it, no clue where to start. Other approches accepted.
I want to check the DNS. But not use them at once. The IP of DHCP server is fixed and known.
Thanks. _________________ DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Last edited by doublehp on Thu Jan 03, 2013 5:17 pm; edited 1 time in total |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Mon Dec 24, 2012 3:43 am Post subject: |
|
|
dhcpcd has a "--test" option, which should do what you want. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
doublehp Guru
Joined: 11 Apr 2005 Posts: 473 Location: FRANCE
|
Posted: Thu Jan 03, 2013 5:17 pm Post subject: |
|
|
Yes, dhcpcd --test could do it, but on the machine where I need it, i can't install dhcpcd. I have found an other way to do it, via heavily altering the conf files /etc/dhcpcd.conf and friends. _________________ DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|