{"id":653,"date":"2018-07-28T23:18:13","date_gmt":"2018-07-28T14:18:13","guid":{"rendered":"https:\/\/vongg.com\/?p=653"},"modified":"2018-10-06T16:54:50","modified_gmt":"2018-10-06T07:54:50","slug":"static%e8%b7%af%e7%94%b1","status":"publish","type":"post","link":"https:\/\/vongg.com\/?p=653","title":{"rendered":"static\u8def\u7531"},"content":{"rendered":"<p>https:\/\/www.fukudat.com\/wiki\/ja\/\u6c38\u7d9a\u7684\u306a\u9759\u7684\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/p>\n<p>this :\u00a0 https:\/\/blog.masasuzu.net\/entry\/20110204\/1296827618<\/p>\n<p><strong><span style=\"color: #ff0000;\">raspberry<\/span><\/strong><br \/>\nTo add a persistent static route, create or edit the following file<br \/>\n<span style=\"color: #ff99cc;\">\/lib\/dhcpcd\/dhcpcd-hooks\/40-route<\/span><br \/>\nand use the following syntax<br \/>\n<span style=\"color: #ff99cc;\">ip route add 192.168.100.0\/24 via 192.168.0.2<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>manjaro<\/strong><\/span><\/p>\n<p>sudo vi \/etc\/network\/if-up.d\/static-routes<br \/>\n#!\/bin\/sh<br \/>\n\/shin\/route add -net 192.168.7.0 gw 9.1.1.1 metric 1 netmask 255.255.255.0 eth0<br \/>\nsudo chmod +x \/etc\/network\/if-up.d\/static-routes<\/p>\n<p><span style=\"color: #ff0000;\"><strong>windows<\/strong><\/span><\/p>\n<p>route <span style=\"color: #ff00ff;\">-p<\/span> add 9.0.0.0 mask 255.0.0.0 192.168.0.33<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.fukudat.com\/wiki\/ja\/\u6c38\u7d9a\u7684\u306a\u9759\u7684\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0 this :\u00a0 ht [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,14,27],"tags":[],"_links":{"self":[{"href":"https:\/\/vongg.com\/index.php?rest_route=\/wp\/v2\/posts\/653"}],"collection":[{"href":"https:\/\/vongg.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vongg.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vongg.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vongg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=653"}],"version-history":[{"count":5,"href":"https:\/\/vongg.com\/index.php?rest_route=\/wp\/v2\/posts\/653\/revisions"}],"predecessor-version":[{"id":773,"href":"https:\/\/vongg.com\/index.php?rest_route=\/wp\/v2\/posts\/653\/revisions\/773"}],"wp:attachment":[{"href":"https:\/\/vongg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vongg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vongg.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}