{"id":1257,"date":"2019-09-14T10:07:19","date_gmt":"2019-09-14T10:07:19","guid":{"rendered":"http:\/\/general.sio57.info\/wp\/?p=1257"},"modified":"2022-04-03T14:49:09","modified_gmt":"2022-04-03T14:49:09","slug":"netsh","status":"publish","type":"post","link":"https:\/\/general.sio57.info\/wp\/?p=1257","title":{"rendered":"Netsh"},"content":{"rendered":"\n<p>Les commandes Netsh sous Windows permettent en ligne de commande de g\u00e9rer le r\u00e9seau:<\/p>\n\n\n\n<p>Pour modifier des interfaces, il faut ouvrir l&rsquo;invite de commande en mode administrateur :<\/p>\n\n\n\n<p>Voir la configuration<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">netsh interface ipv4 show config\n\n<img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"83\" class=\"wp-image-1258\" style=\"width: 150px;\" src=\"http:\/\/general.sio57.info\/wp\/wp-content\/uploads\/2019\/09\/netsh.png\" alt=\"\" srcset=\"https:\/\/general.sio57.info\/wp\/wp-content\/uploads\/2019\/09\/netsh.png 1057w, https:\/\/general.sio57.info\/wp\/wp-content\/uploads\/2019\/09\/netsh-300x166.png 300w, https:\/\/general.sio57.info\/wp\/wp-content\/uploads\/2019\/09\/netsh-768x424.png 768w, https:\/\/general.sio57.info\/wp\/wp-content\/uploads\/2019\/09\/netsh-1024x566.png 1024w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/>\n<strong>\nChanger son adresse IP :<\/strong>\n netsh interface ipv4 set address name=\"Nom Interface\" static IP_ADDRESS SUBNET_MASK GATEWAY \n<em>par exemple avec une interface virtuelle:<\/em>\nnetsh interface ipv4 set address name=\"vEthernet (Wan)\" static 192.168.3.7 255.255.255.0 192.168.3.254\n<strong>Changer ses DNS :<\/strong>\n netsh interface ipv4 set dns name=\"vEthernet (Wan)\" static 1.1.1.1\n netsh interface ipv4 set dns name=\"vEthernet (Wan)\" static 89.2.0.1 index=2\n\n<strong>Remettre en DHCP : <\/strong>\nnetsh interface ipv4 set address name=\u201dvEthernet (Wan)\u201d source=dhcp\n<em>Les DNS<\/em>\nnetsh interface ipv4 set dnsservers name=\"vEthernet (Wan)\u00a0\" source=dhcp<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Les commandes Netsh sous Windows permettent en ligne de commande de g\u00e9rer le r\u00e9seau: Pour modifier des interfaces, il faut ouvrir l&rsquo;invite de commande en mode administrateur : Voir la configuration netsh interface ipv4 show config Changer son adresse IP : netsh interface ipv4 set address name=\u00a0\u00bbNom Interface\u00a0\u00bb static IP_ADDRESS SUBNET_MASK GATEWAY par exemple avec [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57,69,182,121,44,39],"tags":[124,158],"class_list":["post-1257","post","type-post","status-publish","format-standard","hentry","category-3-reseau","category-3-reseau-routeur","category-b2","category-si2","category-sisr5","category-windows","tag-ip","tag-netsh"],"_links":{"self":[{"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1257"}],"version-history":[{"count":1,"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions"}],"predecessor-version":[{"id":1259,"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions\/1259"}],"wp:attachment":[{"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/general.sio57.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}