Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Migrating ip addresses over

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

7 REPLIES

Re: Migrating ip addresses over

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 **

New Member

Re: Migrating ip addresses over

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 ?

Re: Migrating ip addresses over

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.

Re: Migrating ip addresses over

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 **

New Member

Re: Migrating ip addresses over

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 ?

Re: Migrating ip addresses over

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 **

New Member

Re: Migrating ip addresses over

U could try to create a Secundary Ip Addres in the Vlan 1.

116
Views
19
Helpful
7
Replies