DHCP on a per port switch . Help! [networking problem] [dhcp client]

admin / June 5th, 2011/ Posted in Networking / No Comments »

Q: Hi,

I am looking for a solution to a network problem:

Like a router, where there is a DHCP server on the router,
I need a 12 or 16 or 24-port switch that is able to to grant specific pre-configured IP address each port. (Ie 192.168.0.1 DHCP protocol to port 1, port2 to 192.168.0.2, so if I put a device on port 1 gets the 192.168.0.1 as the address, the plug the same device port2 gets 192,168. 0.2)

The switch must also be able to monitor SNMP, so its probably a managed switch.

Anyone know a solution? let me know.


Re:well it seems like you have your solution then.

should do exactly what you want it to do.

I'd make the mask a /28. that gives you 6 IPs for each subnet. Or if you want use a /30 for only two IPs per subnet (one would be the switchport and the other would be the host)

pretty easy to configure. If fact I would acutally turn the ports into routed ports with the no switchport command. That way it looks like you are plugged directly into a router and you won't have to mess with vlans, flooding, etc. As far as routing if you use a /30 you can summarize the whole thing into a /24 routing advertisement. I don't know about the rest of the network or routing protocol in use.


Re:http://www.hardforum.com/showthread.php?p=1029160852

why i want to do this is discussed in the concurrent thread in the hardforum. looks like single IP scope on each VLAN is the only way of accomplishing this now.


Re:none, providing it is a real layer3 switch.

But more importantly, why are you needing to do this? There could be a much more simple solution depending on what you want to do.


Re:what's the performance penalty of having each port as its VLAN(latency, bandwidth throughput)

Re:Originally posted by: guy
i did a freaking ton of research lately, and only few Level 3 Switches support DHCP relay agent Option 82 RFC 3046.

The ones that does work are: Netgear FSM73xx series, Cisco IOS based Layer 3 Swtiches.

We will be using ISC DHCPD server, however google turns up very few instructions on how to configure the ISC DHCPD server to use the agent.circuitID provided by the option 82 feature on the Layer 3 Switches mentioned above

please help!

Get a normal DHCP server, MS ones work easily with this. We run a Cat6500 with this type of setup, single addy DHCP that serves IP's to 6 different VLANS from 6 diff scopes


Re:well next option is a multiport router .. I did see an Imagestream Gateway configed like this once … it was a nightmare to config and a salty price but it did the job when finished. had an OC-3 in and 2 gig ethernet and 16 10/100 NIC's out. They did exactly what you are asking for here but it makes a very hot box and a high cost.

Re:i did a freaking ton of research lately, and only few Level 3 Switches support DHCP relay agent Option 82 RFC 3046.

The ones that does work are: Netgear FSM73xx series, Cisco IOS based Layer 3 Swtiches.

We will be using ISC DHCPD server, however google turns up very few instructions on how to configure the ISC DHCPD server to use the agent.circuitID provided by the option 82 feature on the Layer 3 Switches mentioned above

please help!


Re:Yes, you cannot do layer 3 stuff with a layer 2 device. Your absolute worst case had to do it thing would be to router on a stick, and a DHCP server with iphelper enabled, but it would be ugly , and as mentioned above, every port is a private network.

Re:can't really be done with a layer2 switch.

You'll need a layer3 switch with each port in it's own vlan. That layer3 switch could also provide DHCP services. So each port would be it's own network.


Re:You could probably doign it by setting up VLANs or something if you have a programmable switch but that'd be a bit of work. I don' thave an answer but it's an interesting question and I'll look forward to someone else answering it…

Related posts


Tags: ,

Leave a Reply

Name required

Mail (will not be published) required

Website