- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: adding a route and gets an error when activati...
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
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
тАО09-02-2002 11:05 PM
тАО09-02-2002 11:05 PM
I want to add a route 217.174.65.4/32 to 192.168.100.225 and do it like this
I edit this file
/etc/rc.config.d/netconf
Add the following
ROUTE_DESTINATION[4]="217.174.65.4"
ROUTE_MASK[4]="255.255.255.255"
ROUTE_GATEWAY[4]="192.168.100.255"
ROUTE_COUNT[4]="1"
ROUTE_ARGS[4]=""
and then re-reads the routingtable with
/sbin/init.d/net start
and get an error
ERROR: usage: add destination [netmask mask] gateway [metric]
what am I doing wrong?
Regards
Paul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:13 PM
тАО09-02-2002 11:13 PM
Re: adding a route and gets an error when activating it
Revit your netmask .
From command line syustax is:-
route add net 10.125.0.0 netmask 255.255.0.0 192.1.0.254 1
To delete:-
route delete net 10.125.0.0 netmask 255.255.0.0 192.1.0.254
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:13 PM
тАО09-02-2002 11:13 PM
Re: adding a route and gets an error when activating it
Revisit your netmask .
From command line syustax is:-
route add net 10.125.0.0 netmask 255.255.0.0 192.1.0.254 1
To delete:-
route delete net 10.125.0.0 netmask 255.255.0.0 192.1.0.254
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:13 PM
тАО09-02-2002 11:13 PM
Re: adding a route and gets an error when activating it
Sorry - day for typos
Revisit your netmask .
From command line syntax is:-
route add net 10.125.0.0 netmask 255.255.0.0 192.1.0.254 1
To delete:-
route delete net 10.125.0.0 netmask 255.255.0.0 192.1.0.254
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:15 PM
тАО09-02-2002 11:15 PM
Re: adding a route and gets an error when activating it
Sorry, but I dont want to add a whole net. Only a specific host.
217.174.65.4
I had no problem in adding the whole net
//P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:38 PM
тАО09-02-2002 11:38 PM
Re: adding a route and gets an error when activating it
I think you are no need to specify the network mask.
i.e. route add 217.174.65.4 192.168.100.255 1
After that, you can type 'netstat -nr' to check it and it should show
217.174.65.4 192.168.100.255 UGH 0 lanX 0
Beware that there exist a 'H' in 'UGH' as your destination is a host.
Hope this help
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:46 PM
тАО09-02-2002 11:46 PM
Re: adding a route and gets an error when activating it
but, how do I edit this in the netconf file?
I dont add the netmask at all in this file?
ROUTE_DESTINATION[4]="217.174.65.4"
ROUTE_MASK[4]=""
ROUTE_GATEWAY[4]="192.168.100.255"
ROUTE_COUNT[4]="1"
ROUTE_ARGS[4]=""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:50 PM
тАО09-02-2002 11:50 PM
SolutionThis is the type of entry I've got in netconf for a host
ROUTE_DESTINATION[4]="host 194.75.33.133"
ROUTE_MASK[4]=""
ROUTE_GATEWAY[4]=131.131.1.34
ROUTE_COUNT[4]=1
ROUTE_ARGS[4]=""
Hope this helps.
Regards,
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:55 PM
тАО09-02-2002 11:55 PM
Re: adding a route and gets an error when activating it
Your syntax is OK.
Did you try adding the route in commnad prompt ? Is it work ?
Everytime I will first adding the route in command line, then edit netconf file to let it effective at next reboot.
Can you do a /sbin/init.d/net stop and then start ? Moreover, is it possible to reboot the machine now ?
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 12:21 AM
тАО09-03-2002 12:21 AM
Re: adding a route and gets an error when activating it
Thankyou. That was what I was after =)
Do you know anywhere on the web, where I can read about how I add routes, why it has to be in a specific way?