{"id":21,"date":"2019-07-17T17:17:20","date_gmt":"2019-07-17T15:17:20","guid":{"rendered":"https:\/\/kb.smalldata.ch\/?p=21"},"modified":"2019-08-22T13:03:41","modified_gmt":"2019-08-22T11:03:41","slug":"statische-route-auf-esxi-host","status":"publish","type":"post","link":"https:\/\/kb.smalldata.ch\/?p=21","title":{"rendered":"statische route auf esxi host"},"content":{"rendered":"\n<p>\n\nmanchmal kann es von der netzarchitektur her n\u00f6tig sein, dass auf einem esxi host eine statische route definieren muss damit er korrekt das entsprechende ziel erreichen kann.<\/p>\n\n\n\n<p>\u00fcber das gui l\u00e4sst sich das nicht machen da somit die verbindung via ssh n\u00f6tig ist.<\/p>\n\n\n\n<p>als erstes wird ssh auf dem esxi host aktiviert wenn nicht schon gemacht: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kb.smalldata.ch\/wp-content\/uploads\/2019\/07\/grafik-1.png\"><img decoding=\"async\" src=\"https:\/\/kb.smalldata.ch\/wp-content\/uploads\/2019\/07\/grafik-1.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>als n\u00e4chstes z.b. per putty auf die vmkernel ip des esxi host verbinden und folgenden befehl ausl\u00f6sen:<\/p>\n\n\n\n<p><code>esxcli network ip route ipv4 add --gateway 192.168.0.1 --network 192.168.100.0\/24<\/code><\/p>\n\n\n\n<p>in diesem beispiel ist die 192.168.0.1 der router hinter welchem sich das zeilnetz 192.168.100.0 befindet.<\/p>\n\n\n\n<p>anschliessend kann man sich die neue route mit&nbsp;<code>esxcli network ip route ipv4 list<\/code>&nbsp;anzeigen lassen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>manchmal kann es von der netzarchitektur her n\u00f6tig sein, dass auf einem esxi host eine statische route definieren muss damit er korrekt das entsprechende ziel erreichen kann. \u00fcber das gui l\u00e4sst sich das nicht machen da somit die verbindung via ssh n\u00f6tig ist. als erstes wird ssh auf dem esxi host aktiviert wenn nicht schon &#8230; <a title=\"statische route auf esxi host\" class=\"read-more\" href=\"https:\/\/kb.smalldata.ch\/?p=21\" aria-label=\"Read more about statische route auf esxi host\">mehr lesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":2,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions\/71"}],"wp:attachment":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}