- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- route add
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
Forums
Discussions
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
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
10-01-2002 11:46 AM
10-01-2002 11:46 AM
i.e) route add 0.0.0.0 192.168.x.x 1 where 192.168.x.x is the gateway router.
appreciate your support...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 11:50 AM
10-01-2002 11:50 AM
Re: route add
what you need to modify is
/etc/rc.config.d/netconf
the netconf file is the file that contatins the routes that will be added upon reboot.
~ Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 11:51 AM
10-01-2002 11:51 AM
Re: route add
It will look like this:
HOSTNAME="hostname"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
GATED=0
GATED_ARGS=""
RDPD=0
RARP=0
ROUTE_GATEWAY[0]=10.1.1.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
IP_ADDRESS[0]=10.1.1.2
SUBNET_MASK[0]=255.255.252.0
INTERFACE_NAME[0]=lan0
BROADCAST_ADDRESS[0]=10.1.1.255
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0
You want to set the route gateway, count, and default for the specific items your question addresses.
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 11:51 AM
10-01-2002 11:51 AM
Re: route add
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 11:55 AM
10-01-2002 11:55 AM
SolutionYou'll add it to the /etc/rc.config.d/netconf file as follows:
ROUTE_DESTINATION[1]="0.0.0.0"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="192.168.x.x"
ROUTE_COUNT[1]="1"
Note that the index # in brackets MUST be unique from all other route statements in the file & consistent for THIS route. If you need a subnet mask other than default - 255.255.255.0 - be sure to put that in the ROUTE_MASK field.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 12:06 PM
10-01-2002 12:06 PM
Re: route add
Once again, appreciate your quick reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 07:49 PM
10-01-2002 07:49 PM
Re: route add
I've modified the netconf with
the destination IP and gateway
could anyone tell me how can I
find out that is has been enabled after I reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 07:50 PM
10-01-2002 07:50 PM
Re: route add
Just run
netstat -rn
You should see the route in the output.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2005 05:02 AM
02-24-2005 05:02 AM