cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
462
Views
0
Helpful
2
Replies

Using cisco router as dhcp gateway

chris.lau
Level 1
Level 1

hello,

I have a cisco 3825 router. On the f0/1 interface:

int f0/1

ip address 198.11.2.1 255.255.255.128

ip address 203.11.1.1 255.255.255.192 secondary

!

I have defined a dhcp ip pool based on this 2 subnets. However, I found out that the secondary will never be used even though the primary pool was full!!

Can I know whether there is any command that I need to turn on in order to let the router to assign the ip pool based on secondary ip subnet?

2 Replies 2

ARUNPRABHU A
Level 1
Level 1

Hi,

I think Your option of making the second pool to work when the primary DHCP pool fulfilled will not work, But you can try the below option to obtain the same.

Create 2 sub interfaces in the f0/1 interface and assign ip address to each sub-interface.

Whereas in your Switch you need to make the port connecting to the router as a trunk port. and configure 2 vlan in the switch say 1 and 2.

Assign switch ports to vlan based on your requirement.

Now your router will release IP's from both pools, based on the port( VLAN ) to which your user connected.

Warm Rgds, Arun

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Chris,

the better solution is probably that suggested by Arun.

I've found a doc that explains that in a scenario like yours the primary address pool needs commands to monitor its usage level.

see

http://www.cisco.com/en/US/docs/ios/ipaddr/configuration/guide/iad_dhcp_svr_cfg_ps6922_TSD_Products_Configuration_Guide_Chapter.html#wp1155472

Hope to help

Giuseppe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: