<?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: configuring a gateway in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961600#M577793</link>
    <description>As Ron Cornwall said you can simply add the default gateway with:&lt;BR /&gt;&lt;BR /&gt;route add default A.B.C.D 1 &lt;BR /&gt;where A.B.C.D is the IP address of the gateway router.&lt;BR /&gt;&lt;BR /&gt;This will work fine until the next reboot.&lt;BR /&gt;&lt;BR /&gt;If you want it to remain after a reboot you need to modify the /etc/rc.config.d.&lt;BR /&gt;&lt;BR /&gt;You do this using vi.  I assume you may not know how to use it so will throw in some of the commands.  You will need to be root for this to work.  You might want to practice a little on another text file just to get the hang of it.  (You can exit without changing anything by typing :q!)&lt;BR /&gt;&lt;BR /&gt;vi /etc/rc.config.d&lt;BR /&gt;&lt;BR /&gt;This will bring up the file.  Now just hit &lt;ENTER&gt; or j until the cursor moves to the line you need to edit.  k will move the cursor up. h left and l right.  I don't think it really matters where you put the default route stuff but for safety's sake I always put it right after the comments about the routes. Comments start with #.  On an 11.0 system the comments just before where my route statement are: &lt;BR /&gt;&lt;BR /&gt;"# For each additional route, add a set of variable assignments like the ones&lt;BR /&gt;# below, changing the index to "[1]", "[2]" et cetera.&lt;BR /&gt;#&lt;BR /&gt;# IMPORTANT:  for 9.x-to-10.0 transition, do not put blank lines between&lt;BR /&gt;# the next set of statements"&lt;BR /&gt;&lt;BR /&gt;I like to leave a few spaces then:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]="default"&lt;BR /&gt;ROUTE_MASK[0]=""&lt;BR /&gt;ROUTE_GATEWAY[0]="A.B.C.D"&lt;BR /&gt;ROUTE_COUNT[0]="1"&lt;BR /&gt;ROUTE_ARGS[0]="" &lt;BR /&gt;&lt;BR /&gt;Where A.B.C.D is the gateway's IP address.  You need to type an "a" to get into the append mode. Then type what you need and when finished hit the &lt;ESC&gt; key.  If the entry already exists and you need to make a change, position the cursor over the letter and press "r" then the new letter.  You can also use "x" to remove one letter.  "i" allows you to add text at the insertion point.  When finished hit the &lt;ESC&gt; to leave the insert/append mode then :w! to save the file even tho it is write protected then :q to exit. &lt;BR /&gt;&lt;BR /&gt;While there you might want to check that your ip address and mask setup has been saved correctly.  You will need:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LANCONFIG_ARGS[0]="ether"&lt;BR /&gt;DHCP_ENABLE[0]=0&lt;BR /&gt;                    &lt;BR /&gt;&lt;BR /&gt;somewhere before the default route statement and the following at the end.&lt;BR /&gt;&lt;BR /&gt;GATED=0&lt;BR /&gt;GATED_ARGS=""&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Router Discover Protocol daemon configuration.  See rdpd(1m)&lt;BR /&gt;#&lt;BR /&gt;# RDPD:         Set to 1 to start rdpd daemon&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;RDPD=0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[0]=A.B.C.E&lt;BR /&gt;SUBNET_MASK[0]=255.255.255.0&lt;BR /&gt;INTERFACE_NAME[0]=lan0&lt;BR /&gt;BROADCAST_ADDRESS[0]=A.B.C.255&lt;BR /&gt;INTERFACE_STATE[0]=up              &lt;BR /&gt;&lt;BR /&gt;Where A.B.C.E is the address of you assigned.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can view the finished product with &lt;BR /&gt;cat /etc/rc.config.d/netconf&lt;BR /&gt;&lt;BR /&gt;inetd -c&lt;BR /&gt;&lt;BR /&gt;will cause it to reread the netconf file.&lt;BR /&gt;&lt;BR /&gt;Ron&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ENTER&gt;</description>
    <pubDate>Tue, 29 Apr 2003 13:48:09 GMT</pubDate>
    <dc:creator>Ron Kinner</dc:creator>
    <dc:date>2003-04-29T13:48:09Z</dc:date>
    <item>
      <title>configuring a gateway</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961594#M577787</link>
      <description>I need help.  Our system administrator is off on business travel and I need to configure the lan0 interface on a HP 700 series workstation running HP-UX 10.20.  So far I've used the ifconfig command to set the IP address and subnet mask and I'm able to ping the workstation.  I now need to know how to configure the gateway.  My knowledge of Unix is limited so please explain in English as best as you can.</description>
      <pubDate>Tue, 29 Apr 2003 11:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961594#M577787</guid>
      <dc:creator>Glenn W. Beatty</dc:creator>
      <dc:date>2003-04-29T11:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: configuring a gateway</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961595#M577788</link>
      <description>Hi,&lt;BR /&gt;What about using the command set_parms?&lt;BR /&gt;Usage: set_parms &lt;ARGUMENT&gt;&lt;BR /&gt;   Where &lt;ARGUMENT&gt; can be:&lt;BR /&gt;hostname&lt;BR /&gt;timezone&lt;BR /&gt;date_time&lt;BR /&gt;root_passwd&lt;BR /&gt;ip_address&lt;BR /&gt;addl_netwrk&lt;BR /&gt;font_c-s&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor&lt;/ARGUMENT&gt;&lt;/ARGUMENT&gt;</description>
      <pubDate>Tue, 29 Apr 2003 11:28:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961595#M577788</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2003-04-29T11:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: configuring a gateway</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961596#M577789</link>
      <description>Otherwise you would have to edit /etc/rc.config.d/netconf and modify the correct fields for lan0&lt;BR /&gt;&lt;BR /&gt;.. and reboot ..&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 29 Apr 2003 11:31:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961596#M577789</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2003-04-29T11:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: configuring a gateway</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961597#M577790</link>
      <description>"route add" is the command you are looking for.  Here are some examples.&lt;BR /&gt;&lt;BR /&gt;route add default 10.0.0.1 1&lt;BR /&gt;route add net 10.0.0.0 netmask 255.0.0.0 10.0.0.1 1&lt;BR /&gt;route add host 10.0.1.2 10.0.0.1 1&lt;BR /&gt;&lt;BR /&gt;These are different commands for adding different types of routes for more information see the man page on route.  "man route"</description>
      <pubDate>Tue, 29 Apr 2003 11:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961597#M577790</guid>
      <dc:creator>Ron Cornwell</dc:creator>
      <dc:date>2003-04-29T11:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: configuring a gateway</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961598#M577791</link>
      <description>hi,&lt;BR /&gt;ifconfig configuration is temporary and when you reboot your box, the ip address will be gone.&lt;BR /&gt;&lt;BR /&gt;use&lt;BR /&gt;&lt;BR /&gt;set_parms ip_address&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;set_parms addl_netwrk &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or use sam.&lt;BR /&gt;&lt;BR /&gt;-balaji</description>
      <pubDate>Tue, 29 Apr 2003 11:39:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961598#M577791</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-04-29T11:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: configuring a gateway</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961599#M577792</link>
      <description>Easiest to use SAM for this.</description>
      <pubDate>Tue, 29 Apr 2003 12:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961599#M577792</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2003-04-29T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: configuring a gateway</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961600#M577793</link>
      <description>As Ron Cornwall said you can simply add the default gateway with:&lt;BR /&gt;&lt;BR /&gt;route add default A.B.C.D 1 &lt;BR /&gt;where A.B.C.D is the IP address of the gateway router.&lt;BR /&gt;&lt;BR /&gt;This will work fine until the next reboot.&lt;BR /&gt;&lt;BR /&gt;If you want it to remain after a reboot you need to modify the /etc/rc.config.d.&lt;BR /&gt;&lt;BR /&gt;You do this using vi.  I assume you may not know how to use it so will throw in some of the commands.  You will need to be root for this to work.  You might want to practice a little on another text file just to get the hang of it.  (You can exit without changing anything by typing :q!)&lt;BR /&gt;&lt;BR /&gt;vi /etc/rc.config.d&lt;BR /&gt;&lt;BR /&gt;This will bring up the file.  Now just hit &lt;ENTER&gt; or j until the cursor moves to the line you need to edit.  k will move the cursor up. h left and l right.  I don't think it really matters where you put the default route stuff but for safety's sake I always put it right after the comments about the routes. Comments start with #.  On an 11.0 system the comments just before where my route statement are: &lt;BR /&gt;&lt;BR /&gt;"# For each additional route, add a set of variable assignments like the ones&lt;BR /&gt;# below, changing the index to "[1]", "[2]" et cetera.&lt;BR /&gt;#&lt;BR /&gt;# IMPORTANT:  for 9.x-to-10.0 transition, do not put blank lines between&lt;BR /&gt;# the next set of statements"&lt;BR /&gt;&lt;BR /&gt;I like to leave a few spaces then:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROUTE_DESTINATION[0]="default"&lt;BR /&gt;ROUTE_MASK[0]=""&lt;BR /&gt;ROUTE_GATEWAY[0]="A.B.C.D"&lt;BR /&gt;ROUTE_COUNT[0]="1"&lt;BR /&gt;ROUTE_ARGS[0]="" &lt;BR /&gt;&lt;BR /&gt;Where A.B.C.D is the gateway's IP address.  You need to type an "a" to get into the append mode. Then type what you need and when finished hit the &lt;ESC&gt; key.  If the entry already exists and you need to make a change, position the cursor over the letter and press "r" then the new letter.  You can also use "x" to remove one letter.  "i" allows you to add text at the insertion point.  When finished hit the &lt;ESC&gt; to leave the insert/append mode then :w! to save the file even tho it is write protected then :q to exit. &lt;BR /&gt;&lt;BR /&gt;While there you might want to check that your ip address and mask setup has been saved correctly.  You will need:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LANCONFIG_ARGS[0]="ether"&lt;BR /&gt;DHCP_ENABLE[0]=0&lt;BR /&gt;                    &lt;BR /&gt;&lt;BR /&gt;somewhere before the default route statement and the following at the end.&lt;BR /&gt;&lt;BR /&gt;GATED=0&lt;BR /&gt;GATED_ARGS=""&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Router Discover Protocol daemon configuration.  See rdpd(1m)&lt;BR /&gt;#&lt;BR /&gt;# RDPD:         Set to 1 to start rdpd daemon&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;RDPD=0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IP_ADDRESS[0]=A.B.C.E&lt;BR /&gt;SUBNET_MASK[0]=255.255.255.0&lt;BR /&gt;INTERFACE_NAME[0]=lan0&lt;BR /&gt;BROADCAST_ADDRESS[0]=A.B.C.255&lt;BR /&gt;INTERFACE_STATE[0]=up              &lt;BR /&gt;&lt;BR /&gt;Where A.B.C.E is the address of you assigned.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can view the finished product with &lt;BR /&gt;cat /etc/rc.config.d/netconf&lt;BR /&gt;&lt;BR /&gt;inetd -c&lt;BR /&gt;&lt;BR /&gt;will cause it to reread the netconf file.&lt;BR /&gt;&lt;BR /&gt;Ron&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ENTER&gt;</description>
      <pubDate>Tue, 29 Apr 2003 13:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/configuring-a-gateway/m-p/2961600#M577793</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2003-04-29T13:48:09Z</dc:date>
    </item>
  </channel>
</rss>

