{"id":1169,"date":"2022-07-11T22:06:13","date_gmt":"2022-07-11T20:06:13","guid":{"rendered":"https:\/\/hentati.org\/?p=1169"},"modified":"2023-01-26T20:47:27","modified_gmt":"2023-01-26T19:47:27","slug":"change-gateway-or-dns-on-vcenter","status":"publish","type":"post","link":"https:\/\/hentati.org\/index.php\/2022\/07\/11\/change-gateway-or-dns-on-vcenter\/","title":{"rendered":"Change Gateway or DNS on vCenter"},"content":{"rendered":"<p><span style=\"color: #000000;\">In our case, I have vCenter in dark site (no gateway for internet), I want to change gateway to connect on internet<\/span><\/p>\n<p><span style=\"color: #000000;\">(we are using vCenter version 7.0.1)<\/span><\/p>\n<p><span style=\"color: #000000;\">How can we do this ?<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">We have to connect to vCenter on ssh or console :<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1172\" src=\"http:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/reset11.png\" alt=\"\" width=\"656\" height=\"309\" srcset=\"https:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/reset11.png 656w, https:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/reset11-300x141.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">So we have to enter command sudo su or su root to connect with sudo user &#8220;root&#8221;<\/span><\/p>\n<p><span style=\"color: #000000;\"> <img loading=\"lazy\" class=\"alignnone size-full wp-image-1163\" src=\"http:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/reset4.png\" alt=\"\" width=\"689\" height=\"214\" srcset=\"https:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/reset4.png 689w, https:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/reset4-300x93.png 300w\" sizes=\"(max-width: 689px) 100vw, 689px\" \/><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">now as we are logged with root, we have to enter this command \u00a0\/opt\/vmware\/share\/vami\/vami_config_net<\/span><\/p>\n<p><span style=\"color: #000000;\">we have to select 2 to change gateway, 3 for hostname, 4 for DNS ..<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1177\" src=\"http:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/change.png\" alt=\"\" width=\"626\" height=\"610\" srcset=\"https:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/change.png 626w, https:\/\/hentati.org\/wp-content\/uploads\/2023\/01\/change-300x292.png 300w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Now it&#8217;s changed, and we can connect on internet \ud83d\ude42\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">Thanks !<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our case, I have vCenter in dark site (no gateway for internet), I want to change gateway to connect on internet (we are using vCenter version 7.0.1) How can &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1302,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/1169"}],"collection":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/comments?post=1169"}],"version-history":[{"count":5,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/1169\/revisions"}],"predecessor-version":[{"id":1179,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/1169\/revisions\/1179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media\/1302"}],"wp:attachment":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media?parent=1169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/categories?post=1169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/tags?post=1169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}