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. And see here for current known issues.

New Member

Add switchports to new VLAN/DHCP pool

Hello community,

 

Our company recently added a new VLAN/Subnet/DHCP pool  to seperate the physical workstations.   I updated a few interfaces to the new VLAN...which is fine for testing a few workstations,    however what is the best approach and least disruptive way to update a range of ports to the new VLAN/DHCP pool.  

 

Can we update the Interfaces to the new VLAN with the range command.....let the current DHCP lease expire and then they would get an ip from new Pool?  Should we lower the lease time on old pool? ...I think it is currenty set to 24hr (default)

 

Please include IOS commands

 

Much appreciated! 

2 REPLIES
Hall of Fame Super Blue

You can use the range command

You can use the range command eg -

switch(config)# int range gi0/5 - 12

switch(config-if-range)# switchport access vlan <x>

then main issue though is as you say the DHCP lease. You can either -

1) do an "ipconfig /release", change the port into the right vlan and then "ipconfig /renew but

that means doing it on every PC manually

2) change lease time to shorter time so it renews overnight

3) ask users to shut PCs down overnight.

Jon

New Member

Hello,Create the new DHCP

Hello,

Create the new DHCP pool on your DHCP server, and lower the lease time of old pool, after pcs are get the new ip addresses, create a new vlan and assign the ports to this vlan. 

ip dhcp pool OLDPOOL 

  network 192.168.1.0 255.255.255.0

  default-router 192.168.1.1

!

ip dhcp pool NEWPOOL 

  network 192.168.2.0 255.255.255.0

  default-router 192.168.2.1 

!

interface range f0/1 - 24

 switchport mode access

 switchport access vlan 1

!

63
Views
0
Helpful
2
Replies
CreatePlease login to create content