cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
750
Views
0
Helpful
12
Replies

DHCP for vlan

csc010854800
Level 1
Level 1

Hi,

we have three vlan's 44,45,46 but dhcp is in vlan 44.All the users are getting ip address.Do we need to put command IP HELPER-address for each vlan ???

12 Replies 12

guruprasadr
Level 7
Level 7

HI,

Yes, ip helper-address is mandatory.

"ip helper-address" - Forwards UDP Broadcasts, including BOOTP, received on a Interface.

PLS RATE if HELPS

Best Regards,

Guru Prasad R

Hi,

But in my network it's already working without "ip helper-address" command.

All the PC's are getiing correct IP address.

I am not able to understand how it is working.

Config of my switch is attached herewith..

HI,

I hope the DHCP Server and VLANs are in the same Broadcast Domain and normally operating in L2 Mode.

In this way, the DHCP Server and VLANs communicate each other, since DHCP is a Broadcast Protocol.

Hope i am Informative.

PLS RATE if HELPS

Best Regards,

Guru Prasad R

Hi ,

Can u plz tell me any command to verify that they are all in same broadcast domain.

bCZ different vlan's means different broadcast domain .i have 3 vlans,so there must be three broadcast domains.

So, how come they be in the same broadcast domain.

Is there anything else routing between the VLANs? I know there is a reference to a router in VLAN 10 - but does it have interfaces elsewhere? Does the DHCP server ackowledge that it is giving out the addresses? Could there be other DHCP servers? Does the server itself have interfaces in the VLANs?

Hi,

what they have done is,they put one interface of dhcp in one vlan 44 and second interface of dhcp in other vlan 45 .So, users from respective vlans are getting ip addresses.

Can we do this , like putting DHCP in vlan 44 and issue "ip helper-address" on every vlan.Bcz that will be a good configuration...

HI, [Pls Rate if HELPS]

"DHCP-RELAY" concept will meet your requirement.

Normlly, Relay agent is any Host that forwards dhcp packets between the DHCP Sever and CLients.

DHCP Relay can be used when the Server and Client are not in same Physical Subnet.

DHCP Agent use the support feature of Un-numbered Interface. With this Un-numbered Interface the relay agent automatically adds the static-route to the destination.

RFC for DHCP Relay Agent:

http://www.ietf.org/rfc/rfc3993.txt

Sample Eg:

interface ethernet 0

ip address 10.108.6.6 255.255.255.0

!

interface serial 0

ip unnumbered ethernet 0

ip helper-address 10.24.43.2

In the above example, the DHCP relay receives a DHCP request on serial 0 and sends the request to the DHCP server located at IP helper-address 10.24.43.2. When it sends the DHCP request, the DHCP relay uses the IP address of Ethernet 0 for identification purposes and maintains this information for the life of the assigned IP address. This ensures that DHCP packets are sent to the proper DHCP server (10.24.43.2) and are returned to the client originator located at the other end of the unnumbered interface (serial 0).

PLS RATE if HELPS.

Best Regards,

Guru Prasad R

Having the DHCP server single homed (ie just on one VLAN) is tider, generally safer and scales better than an interface in each vlan.

As has been suggested, ip helper address on all other VLANs will forward packets from those VLANs to the DHCP server.

Paul.

Hi Guys,

There is a Situations that u can forward UDP broadcast through an IP Helper-address command to a directed-broadcast address on other segment and enable specific interface to forward drected broadcast.

Ex:

Int s0/1

ip add 192.168.1.1 255.255.255.0

ip directed-broadcast

ip helper-address 10.10.10.255

Does this suffice in this Scenario?

Regards,

Mohamed Sobair

Hi ,

Can we use this command "ip directed-broadcast" for broadcast traffic between vlan.bcz i have my dhcp in one vlan 44.and users in vlan 44 and vlan 45.

HI, [Pls Rate if HELPS]

"YES" you can go ahead and use this command.

This will allow dhcp server to receive the Broadcast at Layer 2.

Hope I am Informative.

DO RATE ALL HELPFUL POSTS.

Best Regards,

Guru Prasad R

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