Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My network and my neighbors network are connected (we share my server). We both have our own WAN-connection to the internet. Right now we use the following setup:

Neighbor: Internet --> router (192.168.1.1, DHCP off) --> network devices (pc’s with static IP’s using 192.168.1.1 as gateway)

My setup: Internet --> router (192.168.1.2, DHCP on) --> network devices (all automatically determined IP’s through DHCP)

The two networks are connected with a network cable between a switch at my house and a switch at my neighbor’s house.

In essence this all works fine. But if my neighbour doesn’t specify a static IP on his devices they receive an IP from my dhcp-server and they use my internet connection to go online.

So is there a way to have 2 DHCP servers enabled on my network. One for my neighbour to use and one for me? So that we both use our own internet connections but still remain connected to each other.

I’m guessing there must be a simple solution but I cannot seem to find one. Who has any ideas?

Thanks!

share|improve this question

migrated from stackoverflow.com Mar 9 '13 at 19:59

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 0 down vote accepted

Unfortunately there is no "easy solution" to use two DHCP servers on the network. DHCP is first come first served, so which ever server responds first will be the one the configuration is pulled from.

You can set up DHCP servers to give different settings to different computers based on MAC address. However, the software built in to consumer grade routers do not support things like that. 3rd party firmware that would support it (DD-WRT or similar) I would not call the DHCP setup process "easy" to support different results based on MAC addresses.

Your best option, without buying more hardware, is stop using DHCP on both networks and configure your network to use static IP's too.

share|improve this answer

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.