cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
749
Views
0
Helpful
3
Replies

Vlans and DHCP ?

IM-Design
Level 1
Level 1

Hi,

I have a network which has recently been subject to a power failure.

Upon re-powering switch (3560G), ap (1252), router (netgear), and servers (Windows 2k3, 2k8), I am unable to get a DHCP ip address on any except the native vlan (wired and wireless). I am able to assign an ip address manually in both wired and wireless modes on my test laptop, but if the laptop is set to retrieve an address using DHCP, it times out and gets an address in 169.254.x.x (APIPA).

The 3560G switch has 3 vlans:

Native: 192.168.5.0/24

VLAN15: 192.168.15.0/24

VLAN25: 192.168.25.0/24

The Vlans as defined on the switch include the command ip helper-address (see below):

interface Vlan1
ip address 192.168.5.16 255.255.255.0
ntp broadcast
!
interface Vlan15
ip address 192.168.15.2 255.255.255.0
ip helper-address 192.168.5.5
ntp broadcast
!
interface Vlan25
ip address 192.168.25.2 255.255.255.0
ip helper-address 192.168.5.5
ntp broadcast
!
ip default-gateway 192.168.5.1
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.5.1

The server at 192.168.5.5 has multiple DHCP scopes defined (one for each vlan). The default gateway at 192.168.5.1 is a netgear router

This was working prior to a power failure.

Any Ideas?

TIA

3 Replies 3

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi,

I have a network which has recently been subject to a power failure.

Upon re-powering switch (3560G), ap (1252), router (netgear), and servers (Windows 2k3, 2k8), I am unable to get a DHCP ip address on any except the native vlan (wired and wireless). I am able to assign an ip address manually in both wired and wireless modes on my test laptop, but if the laptop is set to retrieve an address using DHCP, it times out and gets an address in 169.254.x.x (APIPA).

The 3560G switch has 3 vlans:

Native: 192.168.5.0/24

VLAN15: 192.168.15.0/24

VLAN25: 192.168.25.0/24

The Vlans as defined on the switch include the command ip helper-address (see below):

interface Vlan1
ip address 192.168.5.16 255.255.255.0
ntp broadcast
!
interface Vlan15
ip address 192.168.15.2 255.255.255.0
ip helper-address 192.168.5.5
ntp broadcast
!
interface Vlan25
ip address 192.168.25.2 255.255.255.0
ip helper-address 192.168.5.5
ntp broadcast
!
ip default-gateway 192.168.5.1
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.5.1

The server at 192.168.5.5 has multiple DHCP scopes defined (one for each vlan). The default gateway at 192.168.5.1 is a netgear router

This was working prior to a power failure.

Any Ideas?

TIA

After Power failure DHCP server is reachable from vlan subnet (switch)  or not ? If they are not reachable then it wont get the ip address from DHCP server.

Hope to Help !!

Ganesh.H

Hi. Thanks for the reply.

I found the solution. The router (netgear) was unable to know what to do with the DHCP traffic that it was receiving (it being the default gateway). Once I set up DHCP relay on that device my vlans began to receive ip addresses correctly.

What is not clear to me is whether this was configured before the power failure. If it was then why dod the power failure cause it to lose this setting. If not, then why was it working previously?

Thanks Again.

Hi. Thanks for the reply.

I found the solution. The router (netgear) was unable to know what to do with the DHCP traffic that it was receiving (it being the default gateway). Once I set up DHCP relay on that device my vlans began to receive ip addresses correctly.

What is not clear to me is whether this was configured before the power failure. If it was then why dod the power failure cause it to lose this setting. If not, then why was it working previously?

Thanks Again.

It should be configured before as the DHCP relay feature relays a request from a remote client to a DHCP server for an IP address. When the router receives a DHCP request from an IP client, it forwards the request to the DHCP server and passes the response back to the IP client.

Hope to Help !!

Ganesh.H

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:

Review Cisco Networking products for a $25 gift card