- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem to add static route using netconf
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:12 PM
09-07-2005 09:12 PM
problem to add static route using netconf
I've got a problem to make static route permanent usinf /etc/rc.config.d/netconf file on HPUX 11.11.
I've got 2 lan interfaces lan0 and lan1. The content of /etc/hosts file:
172.17.13.132 testmts
127.0.0.1 localhost loopback
192.168.4.1 lan1
I would like to make a static route for the net 10.0.1.0 255.255.255.0 via lan1 (192.168.4.1).
In the terminal I issue the following command
route add net 10.0.1.0 netmask 255.255.255.0 192.168.4.1
after it I issue netstat -r and the line for net 10.0.1.0 is displayed in the output of this command. Anyway it's ok until the reboot, so I modify the /etc/rc.config.d/netconf file adding the following lines
ROUTE_DESTINATION[1]="net 10.0.1.0"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="192.168.4.1"
ROUTE_COUNT[1]="0"
ROUTE_ARGS[1]=""
After the reboot I enter netstat -r again and I see no line dedicated to net 10.0.1.0. That means there is no such a route in the routing table. Can you help me to find the problem, please?
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:16 PM
09-07-2005 09:16 PM
Re: problem to add static route using netconf
ROUTE_MASK[1]=255.255.255.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:18 PM
09-07-2005 09:18 PM
Re: problem to add static route using netconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:19 PM
09-07-2005 09:19 PM
Re: problem to add static route using netconf
I tried both variants - no success. going to check the log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:32 PM
09-07-2005 09:32 PM
Re: problem to add static route using netconf
These are the lines related to routind
Configure pseudo devices for MAC/LLA access
Output from "/sbin/rc2.d/S462maclan start":
----------------------------
Start multicast routing daemon
Output from "/sbin/rc2.d/S490mrouted start":
----------------------------
"/sbin/rc2.d/S490mrouted start" SKIPPED
Start Internet services daemon
Output from "/sbin/rc2.d/S500inetd start":
----------------------------
Internet Services started
Start dynamic routing daemon
Output from "/sbin/rc2.d/S510gated start":
----------------------------
"/sbin/rc2.d/S510gated start" SKIPPED
Start router discover protocol daemon
Output from "/sbin/rc2.d/S520rdpd start":
----------------------------
"/sbin/rc2.d/S520rdpd start" SKIPPED
Configuring PPP Interface
Output from "/sbin/rc2.d/S522ppp start":
----------------------------
Creating 16 tunnel device nodes at major 31...
Start RARP protocol daemon
Output from "/sbin/rc2.d/S525rarpd start":
----------------------------
"/sbin/rc2.d/S525rarpd start" SKIPPED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:35 PM
09-07-2005 09:35 PM
Re: problem to add static route using netconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:36 PM
09-07-2005 09:36 PM
Re: problem to add static route using netconf
# route add net 10.0.1.0 netmask 255.255.255.0 192.168.4.1 0
# route del net 10.0.1.0 netmask 255.255.255.0 192.168.4.1 0
# route add net 10.0.1.0 netmask 255.255.255.0 192.168.4.1 1
# route del net 10.0.1.0 netmask 255.255.255.0 192.168.4.1 1
May be a problem with ROUTE_COUNT[1]="" entry.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:42 PM
09-07-2005 09:42 PM
Re: problem to add static route using netconf
these commands work fine - add command output is
add net 10.0.1.0: gateway 192.168.4.1
delete command output is
delete net 10.0.1.0: gateway 192.168.4.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:43 PM
09-07-2005 09:43 PM
Re: problem to add static route using netconf
Routes are added by this rc script (/sbin/init.d/net), not by /sbin/rc2.d/S490mrouted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 09:45 PM
09-07-2005 09:45 PM
Re: problem to add static route using netconf
ll /etc/rc.config.d/netcon*
There should not be files like *.bak, *.org etc. The directory /etc/rc.config.d/ should hold only configuration files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 10:20 PM
09-07-2005 10:20 PM
Re: problem to add static route using netconf
Thanks again