<?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 Having trouble adding a route.... in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/having-trouble-adding-a-route/m-p/5281471#M52997</link>
    <description>When I try to add a route the Gateway is defaulting to the default...&lt;BR /&gt;&lt;BR /&gt;I've coded the route file as:&lt;BR /&gt;# cat /etc/sysconfig/network-scripts/route-eth2&lt;BR /&gt;208.14.204.0/24 via 155.90.142.251 dev eth2&lt;BR /&gt;155.90.142.0/24 via 155.90.142.251 dev eth2&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;On network restart or reboot, the 208.14.204.0/24 is defined as expected, but the 155.90.142.0/24 defaults to: 0.0.0.0&lt;BR /&gt;&lt;BR /&gt;# netstat -rn&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;155.90.142.0    0.0.0.0         255.255.255.0   U         0 0          0 eth2&lt;BR /&gt;208.14.204.0    155.90.142.251  255.255.255.0   UG        0 0          0 eth2&lt;BR /&gt;192.168.35.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1&lt;BR /&gt;155.90.245.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0&lt;BR /&gt;169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth2&lt;BR /&gt;0.0.0.0         155.90.245.251  0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;When I try to add it manually I can't get it to set either:&lt;BR /&gt;&lt;BR /&gt;# ip route del 155.90.142.0/24 dev eth2&lt;BR /&gt;# netstat -rn&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;208.14.204.0    155.90.142.251  255.255.255.0   UG        0 0          0 eth2&lt;BR /&gt;192.168.35.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1&lt;BR /&gt;155.90.245.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0&lt;BR /&gt;169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth2&lt;BR /&gt;0.0.0.0         155.90.245.251  0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# ip route add 155.90.142.0/24 gw 155.90.142.251 dev eth2                       Error: either "to" is duplicate, or "gw" is a garbage.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Or if i try with -net I get:&lt;BR /&gt;# ip route add -net 155.90.142.0/24 gw 155.90.142.251 dev eth2&lt;BR /&gt;Error: an inet prefix is expected rather than "-net".&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Not sure what is wrong at this point....&lt;BR /&gt;Can anyone tell me where to look ??&lt;BR /&gt;</description>
    <pubDate>Fri, 06 May 2011 17:08:48 GMT</pubDate>
    <dc:creator>MikeL_4</dc:creator>
    <dc:date>2011-05-06T17:08:48Z</dc:date>
    <item>
      <title>Having trouble adding a route....</title>
      <link>https://community.hpe.com/t5/operating-system-linux/having-trouble-adding-a-route/m-p/5281471#M52997</link>
      <description>When I try to add a route the Gateway is defaulting to the default...&lt;BR /&gt;&lt;BR /&gt;I've coded the route file as:&lt;BR /&gt;# cat /etc/sysconfig/network-scripts/route-eth2&lt;BR /&gt;208.14.204.0/24 via 155.90.142.251 dev eth2&lt;BR /&gt;155.90.142.0/24 via 155.90.142.251 dev eth2&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;On network restart or reboot, the 208.14.204.0/24 is defined as expected, but the 155.90.142.0/24 defaults to: 0.0.0.0&lt;BR /&gt;&lt;BR /&gt;# netstat -rn&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;155.90.142.0    0.0.0.0         255.255.255.0   U         0 0          0 eth2&lt;BR /&gt;208.14.204.0    155.90.142.251  255.255.255.0   UG        0 0          0 eth2&lt;BR /&gt;192.168.35.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1&lt;BR /&gt;155.90.245.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0&lt;BR /&gt;169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth2&lt;BR /&gt;0.0.0.0         155.90.245.251  0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;When I try to add it manually I can't get it to set either:&lt;BR /&gt;&lt;BR /&gt;# ip route del 155.90.142.0/24 dev eth2&lt;BR /&gt;# netstat -rn&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;208.14.204.0    155.90.142.251  255.255.255.0   UG        0 0          0 eth2&lt;BR /&gt;192.168.35.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1&lt;BR /&gt;155.90.245.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0&lt;BR /&gt;169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth2&lt;BR /&gt;0.0.0.0         155.90.245.251  0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# ip route add 155.90.142.0/24 gw 155.90.142.251 dev eth2                       Error: either "to" is duplicate, or "gw" is a garbage.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Or if i try with -net I get:&lt;BR /&gt;# ip route add -net 155.90.142.0/24 gw 155.90.142.251 dev eth2&lt;BR /&gt;Error: an inet prefix is expected rather than "-net".&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Not sure what is wrong at this point....&lt;BR /&gt;Can anyone tell me where to look ??&lt;BR /&gt;</description>
      <pubDate>Fri, 06 May 2011 17:08:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/having-trouble-adding-a-route/m-p/5281471#M52997</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2011-05-06T17:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble adding a route....</title>
      <link>https://community.hpe.com/t5/operating-system-linux/having-trouble-adding-a-route/m-p/5281472#M52998</link>
      <description>Thought maybe I had the command syntax wrong, but if I try as follows I get network unreachable....&lt;BR /&gt;&lt;BR /&gt;# ip route add 155.90.142.0/24 via 155.90.142.251 dev eth2&lt;BR /&gt;RTNETLINK answers: Network is unreachable&lt;BR /&gt;#</description>
      <pubDate>Fri, 06 May 2011 17:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/having-trouble-adding-a-route/m-p/5281472#M52998</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2011-05-06T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble adding a route....</title>
      <link>https://community.hpe.com/t5/operating-system-linux/having-trouble-adding-a-route/m-p/5281473#M52999</link>
      <description>Your "ip route add" syntax is wrong.&lt;BR /&gt;&lt;BR /&gt;You should use:&lt;BR /&gt;ip route add 155.90.142.0/24 via 155.90.142.251 dev eth2&lt;BR /&gt;&lt;BR /&gt;Note: no "-net" and "via" instead of "gw".&lt;BR /&gt;&lt;BR /&gt;Alternatively, you're thinking about the syntax of the older "route" command:&lt;BR /&gt;&lt;BR /&gt;route add -net 155.90.142.0 netmask 255.255.255.0 gw 155.90.142.251 dev eth2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Besides, your post-reboot routing table suggests that your eth2 has an IP address like 155.90.142.x and netmask 255.255.255.0, so the system very reasonably expects to be able to contact all the 155.90.142.* hosts directly via eth2, without using any gateway at all. If this is not true, you either have a wrong netmask on eth2 or the network to which your eth2 is plugged into behaves very strangely.&lt;BR /&gt;&lt;BR /&gt;What kind of netmask does "ifconfig eth2" or "ip addr show dev eth2" display?&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 06 May 2011 17:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/having-trouble-adding-a-route/m-p/5281473#M52999</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-05-06T17:44:27Z</dc:date>
    </item>
  </channel>
</rss>

