- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- route add host
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-05-2006 10:06 PM
03-05-2006 10:06 PM
ROUTE_DESTINATION[22]="host 193.28.103.163"
ROUTE_MASK[22]="255.255.255.0"
ROUTE_GATEWAY[22]="10.120.3.10"
ROUTE_COUNT[22]="1"
ROUTE_ARGS[22]=""
But after a reboot the route doesn't exist?!
When I add the route manual, then it works:
route add host 193.28.103.163 10.120.3.10 1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2006 10:35 PM
03-05-2006 10:35 PM
Re: route add host
ROUTE_DESTINATION[22]="host 193.28.103.163"
-should read_
ROUTE_DESTINATION[22]="193.28.103.163"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 01:44 AM
03-06-2006 01:44 AM
Re: route add host
The should be
ROUTE_DESTINATION[22]="default"
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 01:58 AM
03-06-2006 01:58 AM
Re: route add host
I will test your alternative ..
@ HGN:
The default route already exist. The system has three NIC's and many routes.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 02:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 03:04 AM
03-06-2006 03:04 AM
Re: route add host
The problem is the netmask, when I delete the line ROUTE_MASK[22]="255.255.255.0" and reboot the system, than it works.
In the /etc/rclog I find a entry that the netmask is not OK!
Very freaky ...
Thank you very much Pete!
Regards Timo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 03:07 AM
03-06-2006 03:07 AM
Re: route add host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 12:14 AM
03-07-2006 12:14 AM
Re: route add host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 12:47 AM
03-07-2006 12:47 AM
Re: route add host
when I add the new entry in the netconf (within the 32bit netmask) and reboot the system, the route doesn't exist.
ROUTE_DESTINATION[22]="host 193.28.103.163"
ROUTE_MASK[22]="255.255.255.255"
ROUTE_GATEWAY[22]="10.120.3.10"
ROUTE_COUNT[22]="1"
ROUTE_ARGS[22]=""
I found the following message in the /etc/rc.log:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 12:54 AM
03-07-2006 12:54 AM
Re: route add host
Personally, I would leave it blank.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 01:15 AM
03-07-2006 01:15 AM
Re: route add host
when I keep the field for the netmask clear and reboot the system, then it works.
ROUTE_MASK[11]=""
Timo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 01:19 AM
03-07-2006 01:19 AM
Re: route add host
# route add host 10.1.1.1 netmask 255.255.255.255 16.113.144.1 1
netmask: bad value
# route add host 10.1.1.1 16.113.144.1 1
add host 10.1.1.1: gateway 16.113.144.1
# netstat -rvn
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1/255.255.255.255
127.0.0.1
UH 0 3316 lo0 4136
16.113.145.147/255.255.255.255
16.113.145.147
UH 0 174982 lan0 4136
10.1.1.1/255.255.255.255
16.113.144.1
UGH 0 0 lan0 1500
16.113.144.0/255.255.254.0
16.113.145.147
U 2 0 lan0 1500
127.0.0.0/255.0.0.0 127.0.0.1
U 0 0 lo0 4136
default/0.0.0.0 16.113.144.1
UG 0 0 lan0 1500
Thanks for the info, though! Sorry I misled you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2006 01:55 AM
03-07-2006 01:55 AM
Re: route add host
This is a very nice case! :-) Thank you for your help and have a nice day!
Best regards, Timo