- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Automatic Route addition problem
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
03-20-2003 12:16 AM
03-20-2003 12:16 AM
Automatic Route addition problem
I want to add following route to my HP 11.11 server everytime it boots. The command which works fine on prompt is
# route add net 10.10.2.0 netmask 255.255.255.0 192.168.8.149
192.168.8.149 is the server's own IP.
My entires in /etc/rc.config.d/netconf corresponding to this route are
ROUTE_DESTINATION[1]=10.10.2.0
ROUTE_MASK[1]=255.255.255.0
ROUTE_GATEWAY[1]=192.168.8.149
ROUTE_COUNT[1]=0
Somehow the startup script fails to add the static route. Is anything wrong with my netconf entries ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 12:46 AM
03-20-2003 12:46 AM
Re: Automatic Route addition problem
is there any error it is giving.
try running the /sbin/init.d/net start & see if there is any errors reported. also, can u see /etc/rc.log if there are any errors.
is there any duplicate route_..[1] entry in the netconf file.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 01:09 AM
03-20-2003 01:09 AM
Re: Automatic Route addition problem
Output from "/sbin/rc2.d/S340net start":
----------------------------
ERROR: Failed to add route entry because its interface is not yet initialized. May need to add this route entry with a route commad after the interface is up :
netmask: bad value
Point to note this server NIC has 2 IPs assigned to it.
lan0 = 192.168.8.149
lan0:1 = 192.168.8.201
Is the script referring to the virtual interface when adding net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 01:34 AM
03-20-2003 01:34 AM
Re: Automatic Route addition problem
INTERFACE_NAME[0]="lan0"
ROUTE_DESTINATION[0]=10.10.2.0
ROUTE_MASK[0]=255.255.255.0
ROUTE_GATEWAY[0]=192.168.8.149
ROUTE_COUNT[0]=0
replace [1] with [0]
you can use something like this
INTERFACE_NAME[0]="lan0"
INTERFACE_NAME[1]="lan0:1"
Then do a /sbin/init.d/net stop
& start
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 02:03 AM
03-20-2003 02:03 AM
Re: Automatic Route addition problem
I think you misunderstood the 2 IPs thing. I am attaching my entire 'netconf' file for your reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 02:22 AM
03-20-2003 02:22 AM
Re: Automatic Route addition problem
i am a bit confused.
the netconf file says as below
++++++++++++
# ROUTE_DESTINATION: Destination hostname (in /etc/hosts) or host or network
# IP address in decimal-dot notation, preceded by the word
# "host" or "net"; or simply the word "default".
++++++++++++++
so can u try adding a net:10.X.X.X in the route destination and see if it works. coz, the error message also says netmask: bad value.
pls check and revert.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 02:43 AM
03-20-2003 02:43 AM
Re: Automatic Route addition problem
route add net 10.10.2.0 netmask 255.255.255.0 192.168.8.149 1
and in the netconf Route_count=1
are you sure the netmask is correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 03:05 AM
03-20-2003 03:05 AM
Re: Automatic Route addition problem
I tried all combinations of 'net' preceding the 10.x.x.x
net:10.x.x.x gives 'bad value' error.
Amod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 03:13 AM
03-20-2003 03:13 AM
Re: Automatic Route addition problem
On command prompt I didn't specified any hop count but it still works.
In 'netconf' ROUTE_COUNT is '0' for this perticular route entry. Which according to the text in netconf for local interface.
ROUTE_COUNT:An integer that indicates whether the gateway is a remote interface (one) or the local interface (zero) or loopback interface (e.g., 127.*)
Amod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 03:28 AM
03-20-2003 03:28 AM
Re: Automatic Route addition problem
I have always been told (HP internal & external courses) that the hop/count should always be "1" no matter what. If in reality it does need more hops, the routers take care of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2003 07:10 AM
03-20-2003 07:10 AM
Re: Automatic Route addition problem
Since you are getting an error message about the netmask and there is obviously nothing wrong with the netmask you may need to turn off subnet checking in ndd.
ndd -get /dev/ip ip_check_subnet_addr
If you get a 1 then you need to do the following:
Edit the file /etc/rc.config.d/nddconf
to add the following entries using whatever is the next available integer in the brackets if you already have entries:
TRANSPORT_NAME[0]=ip
NDD_NAME[0]= ip_check_subnet_addr
NDD_VALUE[0]=0
Reboot and see if you still have your problem.
Ron