Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying out an ubuntu server in my home network and I am planning to use it as a dhcp server.

Since ubuntu is installed in a desktop with just 1 Ethernet port my question:

  1. Is it possible to configure both static public IP on the ethernet port at the same time that it is being used as a listening port for DHCP to distribute IP addresses on my network?
  2. If it is, will it have any negative effect on the connection speed?
share|improve this question
add comment

2 Answers 2

The answers to your querstions:

  1. It is possible to have two ip addresses on the same interface, and use dhcp-server with it. You will have to install the DHCP server using the command: sudo apt-get install dhcp3-server then configure using the steps given here: https://help.ubuntu.com/community/dhcp3-server.
  2. It will have no practical impact on your internet speed, as you're on a small home network.

Also note that you will have to set the routes and ip addresses for your ethernet interface using the network manager, or using the ip command. Hope this solves your query.

share|improve this answer
add comment

Yes it is possible.

What you're looking for is sub-interfaces. Depending on the networking equipment you're using, it's also possible to do this with vlans.

share|improve this answer
add comment

Your Answer

 
discard

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.