- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting "final route_gateway[0]" automatically...
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
11-01-2002 02:45 PM
11-01-2002 02:45 PM
If I don't specify anything for the "final route_gateway[0]=xxx.xxx.xxx.xxx" it will always default to the gateway on the ignite server. This is okay for that subnet, but I am igniting HP's over 18 different subnets. How can I derive the final route_gateway value automatically from the IP address that I want to set the target server to? For example, say the target is 148.162.196.100 and I want the final route_gateway[0]= to automatically be 148.162.196.1
Is it possible to manuiplate strings in the config files and make a new string for the route_gateway? How would I do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2002 06:29 AM
11-02-2002 06:29 AM
Re: Setting "final route_gateway[0]" automatically...
Yes, use perl.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2002 02:45 PM
11-02-2002 02:45 PM
Re: Setting "final route_gateway[0]" automatically...
I think you can easily accomplish this in your post-install script. In that, you'll grep for "route_gateway" keyword in /etc/rc.config.d/netconf file and change the IP to that of lan?[0] replacing last octect to 1.
HTH
...Manjeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 02:21 AM
11-04-2002 02:21 AM
SolutionWe have the same situation and have achieved it by creating a 'settings_cfg' file that contains the IP ranges of all our subnets, and sets the final_route_gateway accordingly. For example:-
ip_addr[] ~ "10.1.10"
{
final route_gateway[0] = "10.1.10.1"
final route_destination[0] = "default"
final route_count[0] = 1
}
ip_addr[] ~ "10.1.11"
{
final route_gateway[0] = "10.1.11.1"
final route_destination[0] = "default"
final route_count[0] = 1
}
Hope that helps,
Nei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 06:51 AM
11-04-2002 06:51 AM