{"id":21,"date":"2014-09-28T15:08:56","date_gmt":"2014-09-28T15:08:56","guid":{"rendered":"http:\/\/marshallpdavis.com\/?page_id=21"},"modified":"2019-09-22T03:22:57","modified_gmt":"2019-09-22T03:22:57","slug":"static-ip","status":"publish","type":"page","link":"https:\/\/marshallpdavis.com\/?page_id=21","title":{"rendered":"Static IP"},"content":{"rendered":"<p>Debian\/Ubuntu based:<\/p>\n<pre>\/etc\/network\/interfaces<\/pre>\n<p>Example:<\/p>\n<pre>auto lo\niface lo inet loopback\n\nauto eth0\niface eth0 inet static\n\taddress 192.168.1.98\n\tnetmask 255.255.255.0\n\tbroadcast 192.168.1.255\n\tgateway 192.168.1.1\n\tnetwork 192.168.1.0\n\tdns-search mpd.local\n\tdns-nameservers 192.168.1.1 8.8.8.8<\/pre>\n<p>RedHat based:<\/p>\n<pre>\/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/pre>\n<p>Example:<\/p>\n<pre>DEVICE=eth0\nBOOTPROTO=static\nONBOOT=yes\nTYPE=ethernet\nIPADDR=192.168.1.98\nNETMASK=255.255.255.0\nBROADCAST=192.168.1.255\nNETWORK=192.168.1.0\nGATEWAY=192.168.1.1\nPEERDNS=yes\nDNS1=192.168.1.1\nDNS2=8.8.8.8<\/pre>\n<p>systemd-networkd:<\/p>\n<pre>\/etc\/systemd\/network\/10-enp5s0.network<\/pre>\n<pre>[Match]\nName=enp5s0\n[Network]\nAddress=192.168.1.98\/24\nGateway=192.168.1.254\nDNS=192.168.1.1\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Debian\/Ubuntu based: \/etc\/network\/interfaces Example: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.98 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1 network 192.168.1.0 dns-search mpd.local dns-nameservers 192.168.1.1 8.8.8.8 RedHat based: \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 Example: DEVICE=eth0 BOOTPROTO=static ONBOOT=yes TYPE=ethernet IPADDR=192.168.1.98 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 NETWORK=192.168.1.0 GATEWAY=192.168.1.1 PEERDNS=yes DNS1=192.168.1.1 DNS2=8.8.8.8 systemd-networkd: \/etc\/systemd\/network\/10-enp5s0.network [Match] Name=enp5s0 [Network] Address=192.168.1.98\/24 Gateway=192.168.1.254 DNS=192.168.1.1<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-21","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":3,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/21\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/21\/revisions\/188"}],"wp:attachment":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}