HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- netconf question
Operating System - HP-UX
1830241
Members
5107
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
08-28-2003 11:54 AM
08-28-2003 11:54 AM
netconf question
I have tree nics, two are in the network (10.151.1.0/24 gateway=10.151.1.254) and the other in the network (192.168.3.0/24 gateway=192.168.3.254).
I have a router for subnet, How i can that the second gateway=192.168.3.254 work?
This netconf is right?
HOSTNAME="HP9000"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]="lan4"
IP_ADDRESS[0]="10.151.1.10"
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]=lan4
IP_ADDRESS[1]=10.151.1.11
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=10.151.1.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.151.1.254
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]=default
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
Thanks for the help
I have a router for subnet, How i can that the second gateway=192.168.3.254 work?
This netconf is right?
HOSTNAME="HP9000"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]="lan4"
IP_ADDRESS[0]="10.151.1.10"
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]=lan4
IP_ADDRESS[1]=10.151.1.11
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]=10.151.1.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.151.1.254
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]=default
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
Thanks for the help
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 12:01 PM
08-28-2003 12:01 PM
Re: netconf question
I don't think you can have two default gateways.
I would change....
ROUTE_DESTINATION[1]=default
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
to:
ROUTE_DESTINATION[1]=192.168.3.0
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
I'm not sure on that destination, but I know I would not want a system confused with two default gateways.
I might be wrong, remember trying to do this once on the command line and the default gateway kept changing.
SEP
I would change....
ROUTE_DESTINATION[1]=default
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
to:
ROUTE_DESTINATION[1]=192.168.3.0
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
I'm not sure on that destination, but I know I would not want a system confused with two default gateways.
I might be wrong, remember trying to do this once on the command line and the default gateway kept changing.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 12:13 PM
08-28-2003 12:13 PM
Re: netconf question
Thanks Stevens.
I try your configuratoion but the idea is that the two routers work at the same time because they point to diferent networks.
Then the asignamet.
I try your configuratoion but the idea is that the two routers work at the same time because they point to diferent networks.
Then the asignamet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2003 08:42 PM
08-28-2003 08:42 PM
Re: netconf question
Hi
It is fairly straight forward to add multiple routes, however as Steven said you cannot have 2 default gateways. The normal setup is to have 1 default gateway where all traffic that is not destined for your local network is sent.
If you have multiple NICs you can configure additional routes.
Let's assume you use 10.151.1.254 as your default gateway so that all traffic not destined for 10.151.1.0 or 192.168.3.0 network will be sent to the 10.151.1.254 gateway.
You netconf entry should be as follows:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.151.1.254
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Now suppose you want to add a route to the 192.168.2.0 network that is reachable from the 192.168.3.254 gateway, you would add another entry to netconf as follows:
ROUTE_DESTINATION[1]="net 192.168.2.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
You can add multiple routes to different networks in this way but it does get complicated. It is far simpler to use one default gateway where all non local network traffic is forwarded and for that gateway to have the rules in place to be able to forward all traffic to the relevant network.
Cheers
Con
It is fairly straight forward to add multiple routes, however as Steven said you cannot have 2 default gateways. The normal setup is to have 1 default gateway where all traffic that is not destined for your local network is sent.
If you have multiple NICs you can configure additional routes.
Let's assume you use 10.151.1.254 as your default gateway so that all traffic not destined for 10.151.1.0 or 192.168.3.0 network will be sent to the 10.151.1.254 gateway.
You netconf entry should be as follows:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.151.1.254
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Now suppose you want to add a route to the 192.168.2.0 network that is reachable from the 192.168.3.254 gateway, you would add another entry to netconf as follows:
ROUTE_DESTINATION[1]="net 192.168.2.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]=192.168.3.254
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
You can add multiple routes to different networks in this way but it does get complicated. It is far simpler to use one default gateway where all non local network traffic is forwarded and for that gateway to have the rules in place to be able to forward all traffic to the relevant network.
Cheers
Con
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP