{"id":4017,"date":"2019-07-04T14:55:55","date_gmt":"2019-07-04T17:55:55","guid":{"rendered":"https:\/\/www.radians.com.ar\/blog\/?p=4017"},"modified":"2019-07-04T14:55:55","modified_gmt":"2019-07-04T17:55:55","slug":"migracion-del-servicio-dhcp-da-error-error-while-importing-class-default-bootp-class-this-class-conflicts-with-the-existing-class-default-bootp-class","status":"publish","type":"post","link":"https:\/\/www.radians.com.ar\/blog\/?p=4017","title":{"rendered":"Migracion del servicio DHCP da error &ldquo;Error while importing class &ldquo;Default BOOTP Class&rdquo;. This class conflicts with the existing class &ldquo;Default BOOTP Class&rdquo;&rdquo;"},"content":{"rendered":"<p align=\"justify\"><a href=\"http:\/\/www.radians.com.ar\/Articulos\/Images2018\/d7cf6f5cf886_CCAA\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"float: left; display: inline; background-image: none;\" border=\"0\" alt=\"image\" src=\"http:\/\/www.radians.com.ar\/Articulos\/Images2018\/d7cf6f5cf886_CCAA\/image_thumb.png\" width=\"344\" align=\"left\" height=\"188\" \/><\/a>Esta semana estuve migrando un servicio de DHCP desde un windows server 2008 r2 a un Windows Server 2016. Una tarea realmente sencilla pero engorrosa si tenemos que realizar todas las configuraciones a mano nuevamente, y mas si tenes muchas reservaciones como era mi caso.<\/p>\n<p align=\"justify\">La migracion se supone que es sencilla, via cmd o via powershell, pero que pasa si un equipo esta en castellano y otro en ingles??? bueno ahi tenemos un problemon, ya que da el error \u201c<font color=\"#ff0000\" face=\"OCR A Extended\">Error while importing class \u201cDefault BOOTP Class\u201d. This class conflicts with the existing class \u201cDefault BOOTP Class\u201d\u201d<\/font>\u201d.<\/p>\n<p align=\"justify\">Una solucion podria ser exportar los dos archivos en ambos equipos, compararlos y hacer las traducciones. Es decir, cambiamos los titulos de las secciones de castellano a ingles y luego lo importamos nuevamente con el comando netsh, desde el origen y el servidor de destino, exportando las clases DHCP definidas:<\/p>\n<ul>\n<li><font color=\"#ffc000\" face=\"OCR A Extended\">NETSH DHCP SERVER DUMP&gt; c:\\Temp\\SourceDHCPDump.txt <\/font><\/li>\n<li><font color=\"#ffc000\" face=\"OCR A Extended\">NETSH DHCP SERVER DUMP&gt; c:\\Temp\\TargetDHCPDump.txt<\/font> <\/li>\n<\/ul>\n<p align=\"justify\">y luego: <font color=\"#ffc000\" face=\"OCR A Extended\">NETSH DHCP SERVER IMPORT&gt; c:\\Temp\\TargetDHCPDump.txt<\/font> <\/p>\n<p align=\"justify\">Ahora, si nuestro scope tiene mucha informacion es bastante molesto y podemos tener varios errores. Entonces la otra solucion que tenemos es exportar solamente las reservaciones, ya que se supone que el resto del scope son IPs tomadas por los equipos, con lo cual en el peor de los casos tenemos que hacer un IPCONFIG \/RELEASE y luego IPCONFIG \/RENEW.<\/p>\n<p align=\"justify\"><a href=\"http:\/\/www.radians.com.ar\/Articulos\/Images2018\/d7cf6f5cf886_CCAA\/image_3.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"margin: 5px auto; float: none; display: block; background-image: none;\" border=\"0\" alt=\"image\" src=\"http:\/\/www.radians.com.ar\/Articulos\/Images2018\/d7cf6f5cf886_CCAA\/image_thumb_3.png\" width=\"544\" height=\"195\" \/><\/a><\/p>\n<p align=\"justify\">Para migrar las reservaciones DHCP con Powershell, solo necesitamos una simple l\u00ednea de c\u00f3digo. En powershel podemos hacerlo de la siguiente manera:<\/p>\n<ul>\n<li><font color=\"#ffc000\" face=\"OCR A Extended\">Get-DhcpServerv4Reservation -computername SRVDHCP01 -ScopeId &quot;192.168.22.0&quot; | Add-DhcpServerv4Reservation -ComputerName NEWDHCP02 -ScopeId &quot;192.168.22.0&quot;<\/font><\/li>\n<\/ul>\n<p align=\"justify\">Con este comando primero obtendr\u00e1 (<font color=\"#ffc000\" face=\"OCR A Extended\">Get-DhcpServerv4Reservation<\/font>) las reservaciones actuales en SRVDHCP01 para el Scope ID 192.168.22.0, luego, agregar\u00e1 cada reservacion (<font color=\"#ffc000\" face=\"OCR A Extended\">Add-DhcpServerv4Reservation<\/font>) al servidor llamado <font color=\"#ffc000\" face=\"OCR A Extended\">NEWDHCP02 <\/font>para el Scope ID 192.168.22.0.0.    <\/p>\n<p align=\"justify\">La migraci\u00f3n de las reservas DHCP con powershell har\u00e1 que las migraciones sean un poco menos dolorosas.<\/p>\n<p align=\"justify\">Espero les sea de utilidad. Saludos, Roberto Di Lello.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Esta semana estuve migrando un servicio de DHCP desde un windows server 2008 r2 a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4291,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11,158,281,342],"tags":[233,243,290,343],"class_list":["post-4017","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2008-r2","category-windows-server-2012","category-281","category-342","tag-dhcp","tag-windows-server-2012-r2","tag-windows-server-2016","tag-windows-server-2019"],"_links":{"self":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4017"}],"version-history":[{"count":1,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4017\/revisions"}],"predecessor-version":[{"id":4018,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4017\/revisions\/4018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/media\/4291"}],"wp:attachment":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}