<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic probelem adding default gateway in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906091#M87273</link>
    <description>Here is my problem, every time I try to add the default gateway, it doesn't add it properly the command I use is &lt;BR /&gt;&lt;BR /&gt;route add default gw (ip address) dev eth0&lt;BR /&gt;&lt;BR /&gt;and when I do a netstat -nar to see the routing tables. I see instead of default and the ip address, it gives 0.0.0.0, the ip address and a genmask of 0.0.0.0.. I even tried adding the gateway through netconf to no avai.</description>
    <pubDate>Tue, 07 Jun 2005 15:10:08 GMT</pubDate>
    <dc:creator>Deoncia Grayson_1</dc:creator>
    <dc:date>2005-06-07T15:10:08Z</dc:date>
    <item>
      <title>probelem adding default gateway</title>
      <link>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906091#M87273</link>
      <description>Here is my problem, every time I try to add the default gateway, it doesn't add it properly the command I use is &lt;BR /&gt;&lt;BR /&gt;route add default gw (ip address) dev eth0&lt;BR /&gt;&lt;BR /&gt;and when I do a netstat -nar to see the routing tables. I see instead of default and the ip address, it gives 0.0.0.0, the ip address and a genmask of 0.0.0.0.. I even tried adding the gateway through netconf to no avai.</description>
      <pubDate>Tue, 07 Jun 2005 15:10:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906091#M87273</guid>
      <dc:creator>Deoncia Grayson_1</dc:creator>
      <dc:date>2005-06-07T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: probelem adding default gateway</title>
      <link>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906092#M87274</link>
      <description>Hello Deoncia Grayson,&lt;BR /&gt;&lt;BR /&gt;In RedHat, the default gateway is written in /etc/sysconfig/network. After you edit that file, restart network (/etc/init.d/network restart).&lt;BR /&gt;If you don't write the default gateway in that file, then after reboot, it wont be configured.&lt;BR /&gt;&lt;BR /&gt;Max.</description>
      <pubDate>Tue, 07 Jun 2005 16:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906092#M87274</guid>
      <dc:creator>Maxim Rozin</dc:creator>
      <dc:date>2005-06-07T16:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: probelem adding default gateway</title>
      <link>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906093#M87275</link>
      <description>'netstat -nr' will show the default route as:&lt;BR /&gt;&lt;BR /&gt;0.0.0.0 &lt;GATEWAYIP&gt; 0.0.0.0 UG 0 0 0 eth0&lt;BR /&gt;&lt;BR /&gt;using that format.&lt;BR /&gt;&lt;BR /&gt;The Destination is be 0.0.0.0 with a genmask (netmask) of 0.0.0.0 as it has to match *EVERYTHING*.&lt;BR /&gt;&lt;BR /&gt;It's also why the route will always appear at the end of the routing list.&lt;BR /&gt;&lt;BR /&gt;If you have multiple lines with the destination of '0.0.0.0', then you have multiple default routes.  Make sure to remove the incorrect ones.&lt;BR /&gt;&lt;BR /&gt;The file 'maxim' mentions is if you use 'netconf' and only have one interface.  If you have multiple interfaces, the keyword 'DEFAULT' can appear within the individual interface's configuration file (usually '/etc/sysconfig/network-scripts/ifcfg-&lt;INTERFACE&gt;' or '/etc/sysconfig/networking/' somewhere).&lt;/INTERFACE&gt;&lt;/GATEWAYIP&gt;</description>
      <pubDate>Tue, 07 Jun 2005 17:44:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906093#M87275</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-07T17:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: probelem adding default gateway</title>
      <link>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906094#M87276</link>
      <description>&lt;BR /&gt;see whether this is what you are getting:&lt;BR /&gt;&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;0.0.0.0         x.x.x.x     0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;&lt;BR /&gt;as you see the first entry is destination IP address range match. 0.0.0.0 is a wild card which will match all ip address ranges and x.x.x.x shows the gateway server ip address.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2005 02:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906094#M87276</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-08T02:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: probelem adding default gateway</title>
      <link>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906095#M87277</link>
      <description>There is nothing wrong in 0.0.0.0/0.0.0.0, this refers to everything.&lt;BR /&gt;&lt;BR /&gt;Look for the Flags column. an UG in the row containing 0.0.0.0 0.0.0.0 shows that the IP present in the Gateway column is indeed the default gateway.&lt;BR /&gt;&lt;BR /&gt;You may check this by issuing a traceroute command to an unknown IP, and see what is the first hop in the o/p.&lt;BR /&gt;&lt;BR /&gt;eg, traceroute 1.2.3.4&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 08 Jun 2005 05:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906095#M87277</guid>
      <dc:creator>Suraj Singh_1</dc:creator>
      <dc:date>2005-06-08T05:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: probelem adding default gateway</title>
      <link>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906096#M87278</link>
      <description>Everyone response was greatly appreciated but I went the first guys response and it worked just fine... Thanks guys!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2005 13:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/probelem-adding-default-gateway/m-p/4906096#M87278</guid>
      <dc:creator>Deoncia Grayson_1</dc:creator>
      <dc:date>2005-06-08T13:47:39Z</dc:date>
    </item>
  </channel>
</rss>

