[c-nsp] DHCP configuration
Patrick Bohannon
pbohanno at kiva.net
Mon Dec 13 10:48:01 EST 2004
Each of your subinterfaces will have an IP address, correct? The
'default-router' keyword will 'tie' your DHCP pool to a particular
subinterface.
See:
ip dhcp pool pool2
network 10.0.1.0 255.255.255.0
default-router 10.0.1.1
dns-server x.x.x.x x.x.x.x
Will answer DHCP requests for the following subinterface:
interface FastEthernet0/0.2
encapsulation dot1Q 2
ip address 10.0.1.1 255.255.255.0
ip nat inside
no cdp enable
But not this one:
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 10.0.2.1 255.255.255.0
ip nat inside
no cdp enable
You can create another pool by a different name and simply change the
'default-router' variable to run two (or more) DHCP servers.
Does this help?
Patrick
-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Lucas Iglesias
Sent: Monday, December 13, 2004 10:38 AM
To: cisco-nsp at puck.nether.net
Subject: [c-nsp] DHCP configuration
Hi All,
I've never had to configure a DHCP server service on a router, and I can't
find a way to do what I need. I have a router (1760) connected to a 2950,
which handle 2 vlans (router-on-stick). I saw the configuration to configure
it as a DHCP server, but I can't find a way to enable it only on one of the
subinterfaces (one of the vlans) and not in the other one.
Any ideas?
_______________________________________________
cisco-nsp mailing list cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
More information about the cisco-nsp
mailing list