{"id":1211,"date":"2021-05-28T07:42:50","date_gmt":"2021-05-28T07:42:50","guid":{"rendered":"http:\/\/blog.successionua.com\/?p=1211"},"modified":"2021-05-28T07:42:50","modified_gmt":"2021-05-28T07:42:50","slug":"%d0%94%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d1%82%d0%b0%d1%82%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%be%d0%b3%d0%be-%d0%bc%d0%b0%d1%80%d1%88%d1%80%d1%83%d1%82%d0%b0-%d0%b2-linux-ubun","status":"publish","type":"post","link":"https:\/\/geckich.space\/?p=1211","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432 Linux Ubuntu\/Debian"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo nano \/etc\/network\/interfaces<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0434\u0435\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0441\u0435\u043a\u0446\u0438\u044e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 em1 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0435\u043a\u0446\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432\u0438\u0434\u0430 (\u043c\u0435\u043d\u044f\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c, \u0448\u043b\u044e\u0437 \u0438 \u0438\u043c\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043d\u0430 \u0432\u0430\u0448\u0435):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">up route add -net 192.168.40.0\/24 gw 192.168.30.1 dev em1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0424\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># The loopback network interface\nauto lo\niface lo inet loopback\n# The primary network interface\nauto em1\niface em1 inet static\naddress 192.168.30.2\nnetmask 255.255.255.0\nbroadcast 192.168.30.255\ngateway 192.168.30.254\n#persistent static routes\nup route add -net 192.168.40.0\/24 gw 192.168.30.1 dev em1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u0432 \u0441\u0438\u043b\u0443, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo ifdown em1 &amp;&amp; sudo ifup em1<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>route -n<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0441\u044b\u043b\u043a\u0438:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>https:\/\/www.networkinghowtos.com\/howto\/adding-persistent-static-routes-on-ubuntu\/#:~:text=To%20set%20up%20a%20static,etc%2Fnetwork%2Finterfaces%20file.&amp;text=The%20route%20will%20get%20set,will%20be%20set%20up%20on.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432: sudo nano \/etc\/network\/interfaces \u0417\u0434\u0435\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0441\u0435\u043a\u0446\u0438\u044e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 em1 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0435\u043a\u0446\u0438\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432\u0438\u0434\u0430 (\u043c\u0435\u043d\u044f\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c, \u0448\u043b\u044e\u0437 \u0438 \u0438\u043c\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043d\u0430 \u0432\u0430\u0448\u0435): up route add -net 192.168.40.0\/24 gw 192.168.30.1 dev em1 \u0424\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a: # The loopback network interface auto lo &hellip; <a href=\"https:\/\/geckich.space\/?p=1211\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432 Linux Ubuntu\/Debian<\/span><\/a><\/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":""},"categories":[10,7],"tags":[48,176,174,175,75,100,177,178,112],"class_list":["post-1211","post","type-post","status-publish","format-standard","hentry","category-linux","category-sysadmin","tag-linux","tag-persistent","tag-route","tag-static","tag-ubuntu","tag-100","tag-177","tag-178","tag-112"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1211"}],"version-history":[{"count":2,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1211\/revisions"}],"predecessor-version":[{"id":1213,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1211\/revisions\/1213"}],"wp:attachment":[{"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}