-2

Im new to networking.

I have 2 separate network that spans across 2 building, only one of the network has access to internet.

My question is how do i get those two connected while keeping both dhcp servers active, right now i have made them work using a bridge, but this is not the set up im looking for

Refer to the image

So i need to get network a's router and network b's router connected without messing up the dhcp server on both router, while letting network b have access to network a's internet. and to make the computers on both netwok not detect each other (network a's computers should not be able to see network b's computer), and i need them to be connected over wifi

closed as off-topic by Tero Kilkanen, Ward, mdpc, HBruijn Jul 29 '16 at 15:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – Tero Kilkanen, Ward, mdpc, HBruijn
If this question can be reworded to fit the rules in the help center, please edit the question.

2

DHCP requests don't cross routers unless there is a DHCP relay agent. So in your case, the PCs in one building will get their IP from their local router, and the PCs in the second building will get their IP from their own local router.

If you configure the gateway IP correctly for the dhcp clients, then all requests to IP addresses outside of their local IP subnet will route through their own local gateway, which is their router.

If you disable the bridging and just connect up the routers and configure the appropriate routes on them, then you can get router b to send any requests outside of it's local subnet to router a. Router a will send any requests to the internet out through it's internet interface. Depending on the routers, you can configure Access Control Lists and prevent the two subnets from communicating with each other.

Any wireless clients connecting to the WiFi access point should get IP addresses valid for that subnet and will behave like any other PCs in that subnet.

-Sysadmin Guy

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