DHCP on a per-vlan basis?

Discussion in 'Cisco' started by brut, Jan 6, 2006.

  1. brut

    brut Guest

    Hi everyone -

    Here's a questions thats probably easy and I'm glancing over the
    answer: is it possible to configure multiple DHCP pools on a router and
    have them had out addresses to clients on different VLANS without
    leaving the router?

    I've read that you can accomplish this by putting in a seperate DHCP
    server (either *nix or Windows based) and use helper-addresses to
    forward to a particular interface on the server, but I was looking to
    see if its possible to do this on the router (one would assume so with
    the ability to create multiple pools and sub-interfaces for VLANS).

    Any comments/feedback is greatly appreciated. Thanks for your time.

    brut, Jan 6, 2006
    1. Advertisements

  2. Like this, do you mean?

    ip dhcp pool net-1
    ip dhcp pool net-2
    interface vlan1
    ip address
    interface vlan2
    ip address
    Martin Gallagher, Jan 7, 2006
    1. Advertisements

  3. brut

    brut Guest

    Aha! That makes sense. I wish the cisco docs explained it a little
    simpler, but that does make perfect sense.

    In order for a router to hand out DHCP for a network, it obviously
    needs an IP address in that same network to receive the broadcast, and
    the router would match the network the broadcast was received on with
    the dhcp pool's "network" statement.

    Thanks for making the totally obvious appear before my eyes. Thanks a
    mil' mate.:)

    brut, Jan 8, 2006
  4. brut

    jefflin.choi Guest

    Not clear. Can you elaborate what you mean?

    if i understand you correctly,...
    router doesn't forward broadcast by default unless you allow them to.
    That is why ip helper-address is needed to be configured on the
    If dhcp request was received by the router and the router has a pool it
    can give, then it reply to the client without needing to relay. It will
    know which pool of address to give based on gi add.

    jefflin.choi, Jan 9, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.