<?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 Re: how to change subnet mask in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237868#M88154</link>
    <description>the only rules for route you need to add are those that aren't there by default and you wish to define them.&lt;BR /&gt;The 0.0.0.0 route may be configured from GATEWAY=x.x.x.x&lt;BR /&gt;in &lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;or&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth1</description>
    <pubDate>Fri, 02 Apr 2004 05:58:40 GMT</pubDate>
    <dc:creator>Alexander Chuzhoy</dc:creator>
    <dc:date>2004-04-02T05:58:40Z</dc:date>
    <item>
      <title>how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237864#M88150</link>
      <description>Hi,&lt;BR /&gt;I use the following command to check my linux server. When the destination is default (0.0.0.0), I want to change the Genmask to be 255.255.224.0 instead of 0.0.0.0.&lt;BR /&gt;Can you advice me which file I should change? And I was confused that it seems the following three line is configured in different files.&lt;BR /&gt;&lt;BR /&gt;#netstat -rn&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination  Gateway      Genmask      Iface&lt;BR /&gt;15.104.96.0  0.0.0.0      255.255.224.0 eth1&lt;BR /&gt;127.0.0.0    0.0.0.0      255.0.0.0     lo&lt;BR /&gt;0.0.0.0      15.104.96.1  0.0.0.0       eth1</description>
      <pubDate>Fri, 02 Apr 2004 04:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237864#M88150</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2004-04-02T04:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237865#M88151</link>
      <description>these lines are your routing table.&lt;BR /&gt;&lt;BR /&gt;To change your subnet mask edit the file &lt;BR /&gt;/etc/sysconfig-network-scripts/ifcfg-eth?&lt;BR /&gt;&lt;BR /&gt;where ? can be 0,1 etc&lt;BR /&gt;&lt;BR /&gt;to define permanent route edit the file (it doesn't exist by default&lt;BR /&gt;/etc/sysconfig/static-routes&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 05:49:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237865#M88151</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-02T05:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237866#M88152</link>
      <description>I also think you're mildly confused as to what a default route is all about!&lt;BR /&gt;&lt;BR /&gt;The default route is where the packet goes if it doesn't know where else to go.&lt;BR /&gt;&lt;BR /&gt;It's the last-resort route.&lt;BR /&gt;&lt;BR /&gt;In order for this to work, it can't be a match for *anything*, thus why it's a 0 bit subnet mask.&lt;BR /&gt;&lt;BR /&gt;If you have a subnet you want to route, that isn't on the local net (15.104.96.0/255.255.224.0), then you need t add a static route (as Alexander has pointed out).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 05:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237866#M88152</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-04-02T05:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237867#M88153</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;  But my routing table has two lines for eth1, does that mean I need to add both of them to the same file /etc/sysconf/network-scrips/eth1?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 05:56:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237867#M88153</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2004-04-02T05:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237868#M88154</link>
      <description>the only rules for route you need to add are those that aren't there by default and you wish to define them.&lt;BR /&gt;The 0.0.0.0 route may be configured from GATEWAY=x.x.x.x&lt;BR /&gt;in &lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;or&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth1</description>
      <pubDate>Fri, 02 Apr 2004 05:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237868#M88154</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-02T05:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237869#M88155</link>
      <description>Thanks for your advice.&lt;BR /&gt;I am trying to add the subnet mask to /etc/sysconfig/network and restarting and waiting for the result.&lt;BR /&gt; &lt;BR /&gt;I would like to know what's the difference between the following directory files:&lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;/etc/sysconfig/networking/&lt;BR /&gt;/etc/sysconfig/network-scripts/&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 06:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237869#M88155</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2004-04-02T06:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237870#M88156</link>
      <description>The system boot up.&lt;BR /&gt;&lt;BR /&gt;right now my /etc/sysconfig/network looks like this:&lt;BR /&gt;NETWORKING=yes&lt;BR /&gt;HOSTNAME=ssrvr260&lt;BR /&gt;GATEWAY=15.104.96.1&lt;BR /&gt;NETMASK=255.255.224.0&lt;BR /&gt;GATEWAYDEV=eth1&lt;BR /&gt;&lt;BR /&gt;But the subnet mask is still 0.0.0.0 for Gateway 15.104.96.1? why?</description>
      <pubDate>Fri, 02 Apr 2004 06:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237870#M88156</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2004-04-02T06:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237871#M88157</link>
      <description>you don't have to restart the whole system to see the result.&lt;BR /&gt;it's enough to restart the network service:&lt;BR /&gt;service network restart&lt;BR /&gt;/etc/sysconfig/network &lt;BR /&gt;is the file with system wide definitions:&lt;BR /&gt;like the hostname of the station, the default gateway.&lt;BR /&gt;/etc/sysconfig/network-scripts&lt;BR /&gt;directory holds the definitions for each network adapter and whatever is assigned with it.&lt;BR /&gt;Ip address,type, permission to disable etc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S.Please assign points if useful</description>
      <pubDate>Fri, 02 Apr 2004 06:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237871#M88157</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-02T06:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237872#M88158</link>
      <description>because the file /etc/sysconfig/netowrk holds the line GATEWAY=15.104.96.1&lt;BR /&gt;It makes the address 15.104.96.1 as default gateway for 0.0.0.0</description>
      <pubDate>Fri, 02 Apr 2004 06:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237872#M88158</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-02T06:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237873#M88159</link>
      <description>&lt;BR /&gt;i will assign the rest of the answers finally.&lt;BR /&gt;&lt;BR /&gt;Do you mean that if I use the default gateway the subnetmask must be 0.0.0.0 and can not be changed?&lt;BR /&gt;Does the netmask has any problem for this system? since I am trying to use "spdash" comunicate with another server existing in the same subnet, but it failed. while I could ping this server. Don't know why?</description>
      <pubDate>Fri, 02 Apr 2004 06:27:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237873#M88159</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2004-04-02T06:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237874#M88160</link>
      <description>that's why it's "default" gateway.&lt;BR /&gt;&lt;BR /&gt;to add route to a certain network try this command:&lt;BR /&gt;route add -net 10.10.0.0 netmask 255.255.0.0 gw 192.168.0.1&lt;BR /&gt;&lt;BR /&gt;The addresses here are just examples of course.This means to add a route to a subnet 10.10.0.0 with subnet mask 255.255.0.0 via gateway 192.168.0.1&lt;BR /&gt;&lt;BR /&gt;If you can ping some server -that means that you already can communicate with it.&lt;BR /&gt;So maybe you trying to access some service on that server that's blocked or unavailable.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 06:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237874#M88160</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-02T06:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237875#M88161</link>
      <description>I found the issue due to the lo subnet mask is not correct. Thanks.&lt;BR /&gt;&lt;BR /&gt;Please advice why the outside communication still need the lo setting?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 06:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237875#M88161</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2004-04-02T06:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237876#M88162</link>
      <description>Generally it doesn't -what did you change?</description>
      <pubDate>Fri, 02 Apr 2004 07:20:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237876#M88162</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-02T07:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to change subnet mask</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237877#M88163</link>
      <description>lo is your loopback device. If you get this screwed up, networking will experience problems:&lt;BR /&gt;&lt;BR /&gt;ifcfg-lo has:&lt;BR /&gt;&lt;BR /&gt;DEVICE=lo&lt;BR /&gt;IPADDR=127.0.0.1&lt;BR /&gt;NETMASK=255.0.0.0&lt;BR /&gt;NETWORK=127.0.0.0&lt;BR /&gt;&lt;BR /&gt;You host file should have (if its the default) the following lines:&lt;BR /&gt;&lt;BR /&gt;# Do not remove the following line, or various programs&lt;BR /&gt;# that require network functionality will fail.&lt;BR /&gt;127.0.0.1 localhost.localdomain localhost&lt;BR /&gt;&lt;BR /&gt;So, in having a problem with the loopback configuration you would have seen problems with some network services.&lt;BR /&gt;&lt;BR /&gt;Col.</description>
      <pubDate>Fri, 02 Apr 2004 08:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-change-subnet-mask/m-p/3237877#M88163</guid>
      <dc:creator>Colin Topliss</dc:creator>
      <dc:date>2004-04-02T08:30:42Z</dc:date>
    </item>
  </channel>
</rss>

