- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: adding a second route
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-11-2003 05:03 AM
тАО07-11-2003 05:03 AM
Configure LAN interfaces
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
"/sbin/rc2.d/S340net start" FAILED
The first route entry adds just fine:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.3.24.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
The second route entry fails to add:
ROUTE_DESTINATION[1]="10.3.23.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="10.3.24.249"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
Can someone tell me why this won't add properly?
Also, what is the proper "route add" command to add the above route from the command line.
Thanks,
..Joe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 05:17 AM
тАО07-11-2003 05:17 AM
Re: adding a second route
First my standard disclaimer: I normally avoid routing questions because routing gives me a headache.
Second, with your subnet mask, I don't believe you can reach 10.3.23 via 10.3.24.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 05:17 AM
тАО07-11-2003 05:17 AM
Re: adding a second route
# 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".
No preceding word
=================================
if [[ -z $MASK ]]; then
# No subnet mask
if [[ -z $ARGS ]]; then
# No arguments
emsg=$(route add $DEST $GWAY $COUNT 2>&1)
else
# With arguments
emsg=$(route $ARGS add $DEST $GWAY $COUNT 2>&1)
fi
else
# Subnet mask has been entered.
if [[ -z $ARGS ]]; then
# No arguments
emsg=$(route add $DEST netmask $MASK $GWAY $COUNT 2>&1)
else
# With arguments
emsg=$(route $ARGS add $DEST netmask $MASK $GWAY $COUNT 2>&1)
fi
fi
/etc/route add 10.3.23.0 255.255.255.0 10.3.24.249 1
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 05:28 AM
тАО07-11-2003 05:28 AM
SolutionPhone call got me to stop last input
Here are some examples to clarify it.
route add default 16.32.17.1 1
Last '1' signifies that this gateway is external to the host system (ex a router ). If there is nothing at the end a '0' is assumed which means local interface/internal to the host.
route add net 16.43.9.0 16.32.17.1 1
Anything on the 15.43.9 subnet to use gateway 16.32.17.1
route delete default 16.32.17.1
Deleting default route and gateway
route delete net 15.43.9.0 16.32.17.1
Delete directive for the 15.43.9 subnet.
Command statements are until the next reboot. Anything permanent must be in /etc/rc.config.d/netconf.
Save a backup before modifying, backup
(netconf.old, .save, etc) to a different directory.
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=16.32.17.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[1]="net" 15.43.9
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=16.32.17.1
ROUTE_COUNT[1]=1
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 05:52 AM
тАО07-11-2003 05:52 AM
Re: adding a second route
..Joe