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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Running dhclient gets me an IPv4 address.

Running dhclient -6 gets me an IPv6 address.

And the man page says you can't combine v4 and v6. So how to get both v4 and v6 addresses at the same time?

share|improve this question
Doesn't your operating system distribution have network startup scripts to handle this for you? – Michael Hampton May 24 '13 at 16:40
up vote 2 down vote accepted

You can issue both commands and have them run concurrently in one line like:

(dhclient &); (dhclient -6 &)

You could then add it to a BASH script or alike, named how you'd like. :)

More info on combining commands in Linux:

share|improve this answer

If they can't be combined, you'll have to make two separate calls of dhclient and if you want this to run with one command, you could wrap it in a little shell-script. You can find infos on Bash-scripting here.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.