cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
431
Views
19
Helpful
7
Replies

Migrating ip addresses over

carl_townshend
Spotlight
Spotlight

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 7

leighharrison
Level 7
Level 7

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

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 ?

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.

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

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 ?

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

b.petronio
Level 3
Level 3

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

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco