{"id":1978,"date":"2014-11-19T06:41:59","date_gmt":"2014-11-19T04:41:59","guid":{"rendered":"http:\/\/possiblelossofprecision.net\/?p=1978"},"modified":"2021-05-15T11:46:37","modified_gmt":"2021-05-15T09:46:37","slug":"no-default-route-with-fedoras-legacy-network-service","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=1978","title":{"rendered":"No default route with Fedora&#8217;s legacy network service"},"content":{"rendered":"<p>There&#8217;s a <a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=1062409\">bug in Fedora 20<\/a> and RHEL 7, where the legacy network service does not set the default route properly. This is due to the fact, that the network service does not evaluate the <code>GATEWAY0<\/code> directive in <code>\/etc\/sysconfig\/network-scripts\/ifcfg-ethX<\/code> that is used by NetworkManager.<br \/>\nTo set the default route with the legacy network service, simply <strong>change <code>GATEWAY0<\/code> to <code>GATEWAY<\/code><\/strong>:<\/p>\n<pre class=\"brush: plain; highlight: [11]; title: \/etc\/sysconfig\/network-scripts\/ifcfg-eth0; notranslate\" title=\"\/etc\/sysconfig\/network-scripts\/ifcfg-eth0\">\r\nUUID=57a49f0d-31f9-4b44-9730-4f9778f71521\r\nDNS1=192.168.2.1\r\nBOOTPROTO=none\r\nDEVICE=eth0\r\nONBOOT=yes\r\nIPV6INIT=yes\r\nHWADDR=46:46:46:46:46:46\r\nTYPE=Ethernet\r\nIPADDR0=192.168.2.180\r\nPREFIX0=24\r\nGATEWAY=192.168.2.1\r\nDEFROUTE=yes\r\nIPV4_FAILURE_FATAL=no\r\nIPV6_AUTOCONF=yes\r\nIPV6_DEFROUTE=yes\r\nIPV6_PEERDNS=yes\r\nIPV6_PEERROUTES=yes\r\nIPV6_FAILURE_FATAL=no\r\nNAME=&quot;System eth0&quot;\r\n<\/pre>\n<p>Of course, you have to <strong>set <code>DEFROUTE=yes<\/code><\/strong>, too. Note that this is going to be fixed in Fedora 21.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a bug in Fedora 20 and RHEL 7, where the legacy network service does not set the default route properly. This is due to the fact, that the network service does not evaluate the GATEWAY0 directive in \/etc\/sysconfig\/network-scripts\/ifcfg-ethX that is used by NetworkManager. To set the default route with the legacy network service, simply change GATEWAY0 to GATEWAY: UUID=57a49f0d-31f9-4b44-9730-4f9778f71521&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=1978\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7],"class_list":["post-1978","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-fedora"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1978"}],"version-history":[{"count":3,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1978\/revisions"}],"predecessor-version":[{"id":1982,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1978\/revisions\/1982"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}