{"id":328,"date":"2018-10-31T06:53:13","date_gmt":"2018-10-31T06:53:13","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/?p=328"},"modified":"2018-10-31T06:53:13","modified_gmt":"2018-10-31T06:53:13","slug":"how-to-add-ip-range-using-command-on-windows-servers","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/","title":{"rendered":"How to add Ip range using command on windows servers."},"content":{"rendered":"\n<p>Login to server.<br \/>Go to start >> run >> cmd<br \/>Type following command.<br \/>Ipconfig \/all<br \/>Copy the local area connection name that you get. (Adapter name)<br \/>Edit and use following command for it.<br \/><\/p>\n\n\n\n<p>&#8220;FOR \/L %A IN (10,1,20) DO netsh interface ipv4 add address \u201cLocal Area Connection\u201d 192.168.1.%A 255.255.255.0&#8221;<br \/>FOR \/L loop to add IP\u2019s 192.168.1.10-20 to this adapter:<br \/>replace this (10,1,20) with the starting and ending ip<br \/>like above 192.168.1.10-20 is the range to add so 10 is start and 20 is end<br \/>192.168.1.%A replace this with the range<br \/>255.255.255.0 this with subnet<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"336\" data-attachment-id=\"329\" data-permalink=\"https:\/\/www.24x7serversupport.com\/blog\/capture-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?fit=981%2C515&amp;ssl=1\" data-orig-size=\"981,515\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Capture\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?fit=300%2C157&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?fit=640%2C336&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?resize=640%2C336&#038;ssl=1\" alt=\"\" class=\"wp-image-329\" srcset=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?w=981&amp;ssl=1 981w, https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?resize=300%2C157&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?resize=768%2C403&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?resize=260%2C136&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?resize=50%2C26&amp;ssl=1 50w, https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2018\/10\/Capture-4.png?resize=143%2C75&amp;ssl=1 143w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Login to server.Go to start >> run >> cmdType following command.Ipconfig \/allCopy the local area connection name that you get. (Adapter name)Edit and use following command for it. &#8220;FOR \/L %A IN (10,1,20) DO netsh interface ipv4 add address \u201cLocal Area Connection\u201d 192.168.1.%A 255.255.255.0&#8221;FOR \/L loop to add IP\u2019s 192.168.1.10-20 to this adapter:replace this (10,1,20) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[37],"tags":[],"class_list":["post-328","post","type-post","status-publish","format-standard","hentry","category-windows"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to add ip range using command on windows servers<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add ip range using command on windows servers\" \/>\n<meta property=\"og:description\" content=\"Login to server.Go to start &gt;&gt; run &gt;&gt; cmdType following command.Ipconfig \/allCopy the local area connection name that you get. (Adapter name)Edit and use following command for it. &#8220;FOR \/L %A IN (10,1,20) DO netsh interface ipv4 add address \u201cLocal Area Connection\u201d 192.168.1.%A 255.255.255.0&#8221;FOR \/L loop to add IP\u2019s 192.168.1.10-20 to this adapter:replace this (10,1,20) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-31T06:53:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/\",\"name\":\"How to add ip range using command on windows servers\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png\",\"datePublished\":\"2018-10-31T06:53:13+00:00\",\"dateModified\":\"2018-10-31T06:53:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#primaryimage\",\"url\":\"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png\",\"contentUrl\":\"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add Ip range using command on windows servers.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add ip range using command on windows servers","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/","og_locale":"en_US","og_type":"article","og_title":"How to add ip range using command on windows servers","og_description":"Login to server.Go to start >> run >> cmdType following command.Ipconfig \/allCopy the local area connection name that you get. (Adapter name)Edit and use following command for it. &#8220;FOR \/L %A IN (10,1,20) DO netsh interface ipv4 add address \u201cLocal Area Connection\u201d 192.168.1.%A 255.255.255.0&#8221;FOR \/L loop to add IP\u2019s 192.168.1.10-20 to this adapter:replace this (10,1,20) [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/","og_site_name":"24x7serversupport Blog","article_published_time":"2018-10-31T06:53:13+00:00","og_image":[{"url":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png"}],"author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/","name":"How to add ip range using command on windows servers","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png","datePublished":"2018-10-31T06:53:13+00:00","dateModified":"2018-10-31T06:53:13+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#primaryimage","url":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png","contentUrl":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/wp-content\/uploads\/2018\/10\/Capture-4.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-add-ip-range-using-command-on-windows-servers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to add Ip range using command on windows servers."}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=328"}],"version-history":[{"count":0,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/328\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}