05-04-2007 01:26 AM - edited 03-05-2019 03:51 PM
Hi all
I am in process of migrating ip addresses over to a new scheme, the pc's are currently in vlan 1 and so is the dhcp server. I am putting them in a new vlan and want the dhcp server to issue the vlan a new ip address scope, they will both need to be running until all clients in vlan 1 have been swapped over. How would I do this ,as I dont want the dhcp server to issue the new scope to vlan 1, if I use the ip helper command on the switch for the new vlan, will the dhcp server issue the addresses accordingly, or will i need to put in a second network card and connect it to the new vlan?
thanks for your help ?
Carl
05-04-2007 02:32 AM
Hi there Carl,
All you need to do is create the new scope on the dhcp server and put an IP helper-address of the server on to the switch.
When the dhcp packet is relayed, the switch will put in a message telling the dhcp server which network the request came from. The dhcp server will then dish out an address accordingly.
Let me know how it goes!
LH
** Please rate all posts **
05-04-2007 04:46 AM
So Can I have 2 scopes for both vlan 1 and 2 ,will i have to use ip helper address on both vlans so they dont all go to one vlan ?
05-04-2007 04:53 AM
Hi,
IP-helper won't fit for VLAN1 as the DHCP server is in the same VLAN and will get the broadcast request, i am not sure if this solution would work why won't you use 2 NICs for the 2 VLANs with 2 DHCP scopes.
HTH, please rate if it does help,
Mohammed Mahmoud.
05-04-2007 08:12 AM
Hi there Carl,
You need to do this:
say the dhcp server is 10.0.0.1 for example
on the switch:-
interface vlan 1
ip add 10.0.0.254 255.255.255.0 (or whatever)
interface vlan 2
ip add 172.16.0.254 255.255.255.0 (or whatever)
ip helper-address 10.0.0.1
When a dhcp request arrives on vlan 2, the switch will take the packet and forward it to the dhcp server. In the packet that is forwarded, the switch will tell the dhcp server which network it came from (in the example 172.16.0.0/24 and the dchp will send back an address in that scope.
You need to do this only in the vlans that the dchp server is not on. This is because a dhcp request as a broadcast, and it will not pass between networks.
Hope this clarifies,
LH
** Please rate all posts **
05-09-2007 06:39 AM
If I do this though, when I add the 2 scopes to the dhcp server, will it definetly not pass the 172.17.0.0 scope to vlan 1 ?
05-09-2007 06:54 AM
Carl,
I promise you it won't!! In the DHCP packet, there is a section that tells the server which network the request came from. This is written in the DCHP and is not read from layer 3 headers.
Trust me!!
Regards,
LH
** Please rate all posts **
05-04-2007 04:56 AM
U could try to create a Secundary Ip Addres in the Vlan 1.
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