11-09-2011 01:07 PM - edited 03-07-2019 03:18 AM
I have a router I'm setting up for a branch office. I got NAT and VPN working. All good. DHCP is failing me though.
Here's what I added to make the router do DHCP:
no ip dhcp use vrf connected
ip dhcp excluded-address 172.16.31.1 172.16.31.9
!
ip dhcp pool [pool-name]
network 172.16.31.0 255.255.255.224
default-router 172.16.31.5
I then went into int fa2 and did "no shutdown."
I also did "service dhcp" from config t, but I think I read that's already enabled.
But my laptop will not pull a DHCP address when I plug into int fa2.
I know the laptop is good bcs it pulls fine from the live network DHCP server when I retried it to see if it was the laptop.
ty
11-09-2011 01:13 PM
You have given us some information. But not enough to see what the problem is. The configuration of the DHCP pool looks ok. You tell us that you connect to fa2 but do not tell us how fa2 is configured. If you can tell us that we might be on the way to finding your problem.
HTH
Rick
11-09-2011 01:38 PM
It is an 1811 router. For fa2, I did, "no shutdown".
It looks like this:
interface FastEthernet2
!
Is there more?
11-09-2011 01:28 PM
Hi,
Fa2 should be in the same subnet as ip dchp pool or in vlan that is in the same subnet as the pool.
Best regards,
Alex
11-09-2011 01:50 PM
In other 1811 configs I've found online with DHCP, the client interfaces look the same. I tried giving fa2 an ip and got this:
(config-if)#ip address 172.16.31.6 255.255.255.224
% IP addresses may not be configured on L2 links.
I'm not setting any vlans and/or, it should have the access vlan gtg right?
I can set a static IP on the laptop and it works great. Just not DHCP.
11-09-2011 01:56 PM
Hi,
From the output you got when trying to configure an ip address, the port is a switch port and so you must configure the correct vlan interface with an ip address
Regards.
Alain
11-09-2011 02:07 PM
Based on what you have told us so far the fa2 interface is a layer 2 switch port. So it would default to be in VLAN 1. So you need to configure VLAN 1. And since your DHCP says the default router is 172.16.31.5 then this needs to be the IP address assigned to VLAN 1.
HTH
Rick
11-09-2011 02:16 PM
Hi,
In addition to what Alain and Rick said:
config t
int vlan1
ip address 172.16.31.5 255.255.255.224 (if is not used somewhere else, then you have to modify maybe your config)
exit
Best regards,
Alex
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide