Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP address assignment problem?

Status
Not open for further replies.

atdawgie

Technical User
Sep 29, 2001
60
US
Hi, I have two routers on two subnets 192.168.0.0 and 192.168.1.0. Both are running DHCP. I added a static route between the two routers so clients can talk to each other.

How do I make sure that DHCP traffic doesn't cross subnets? I don't want a client on subnet 192.168.0.0 to receive a DHCP address from 192.168.1.1 when the client is restarted. Or is there another way to limit traffic?

Thanks,
Aaron
 
DHCP is a broadcast, it should not ever route. There can be 'DHCP helper' firmware in your routers if you need it to route.

I tried to remain child-like, all I acheived was childish.
 
Do you mean even if I set two static routes DHCP traffic won't cross over to the other network?

I have one router 192.168.0.1 in gateway mode which hosts the internet connection.

The other is 192.168.1.1 in router mode where I'm trying to get it to see the 192.168.0.1 router but I can't seem to get it to unless I set it in gateway mode as well.
 
That's right, DHCP is broadcast and routers, by design, do not pass broadcast traffic.

 
The other is 192.168.1.1 in router mode where I'm trying to get it to see the 192.168.0.1 router but I can't seem to get it to unless I set it in gateway mode as well.

The 1.1 router needs to have the 0.1 router set as its default gateway.

I have been known to be wrong.
The best way to thank someone who helps you is give them a star.
 
But the problem is which router will the machine receive an IP address from? When a client computer comes online both routers race to give it a DHCP address. Both routers and computer are on the same physical network but I wont to separate them into logical networks if possible to prevent this type of problem and separate network traffic to two subnets.

 
The 192.168.1.1 router should have its mask set to 255.255.255.0 and should assign IP's in the range 192.168.1.2 through 192.168.1.253 to its logical network.
The 192.168.0.1 router should have its mask set to 255.255.255.0 and should assign IP's in the range 192.168.0.2 through 192.168.0.253 to its logical network.
Each router's DCHP will only assign IP's to devices attached directly to it, or connected to it via a bridge, switch or hub.

If you have set the subnet mask to anything other than 255.255.255.0 then that could be the cause of your problems.

I have been known to be wrong.
The best way to thank someone who helps you is give them a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top