- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Configuring multiple Interfaces on HP-UX
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
02-07-2006 04:16 PM
02-07-2006 04:16 PM
I have servers which meed to be part of multiple networks. In fact my server needs to be part of 4 different subnets. I have managed to configure 3 interfaces correctly and route them properly using the route add command. routing the 4th interface is a total nightmare. I was wondering could anyone out there advice me if I can set default gateways for each interface by editing the netconf file. Also are these defualt gateways the equivalent of windows defualt gateways. In windows my understanding is that it is not advisable to configure defualt gateways for more than one interface. Is it the same for HP-UX as well.
TIA
Sid
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 04:19 PM
02-07-2006 04:19 PM
Re: Configuring multiple Interfaces on HP-UX
But then I'm not a networking guru...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 04:21 PM
02-07-2006 04:21 PM
Re: Configuring multiple Interfaces on HP-UX
You can configure your NICs with "sam". Its easy and efficient way too. No need to edit any files manually, sam will take care.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:16 PM
02-07-2006 07:16 PM
Re: Configuring multiple Interfaces on HP-UX
You can set default gateway to separate network. How it will work is,
It will try to resolve with the allocated gateway else use default (*) gateway.
Can you post your,
# netstat -rnv
to help you out exactly.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:25 PM
02-07-2006 07:25 PM
Re: Configuring multiple Interfaces on HP-UX
Routing tables
Dest/Netmask Gateway Flags Refs Interface Pmtu
127.0.0.1/255.255.255.255 127.0.0.1 UH 0 lo0 4136
10.154.231.21/255.255.255.255 10.154.231.21 UH 0 lan0 4136
10.154.230.21/255.255.255.255 10.154.230.21 UH 0 lan1 4136
10.54.230.54/255.255.255.255 10.54.230.54 UH 0 lan7 4136
10.154.231.0/255.255.255.0 10.154.231.21 U 2 lan0 1500
10.154.230.0/255.255.255.0 10.154.230.21 U 2 lan1 1500
10.54.230.0/255.255.255.0 10.54.230.54 U 2 lan7 1500
192.168.0.0/255.255.255.0 10.154.231.253 UG 0 lan0 0
127.0.0.0/255.0.0.0 127.0.0.1 U 0 lo0 0
default/0.0.0.0 10.154.230.253 UG 0 lan1 0
Hi Muthu... that is the my netstat -rnv
you said that i could assign a default gw to each interface right. so do i do that by editing my netconf file in rc.config.d?
arun... thanks for the sam update, but i dont think that sam allows to configure any deafult gateways on the interfaces, just the IP and the netmask and the broadcast address
cheers,
sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:28 PM
02-07-2006 07:28 PM
Re: Configuring multiple Interfaces on HP-UX
Take a look at these links,
http://www.faqs.org/faqs/hp/hpux-faq/section-120.html
http://www.faqs.org/faqs/hp/hpux-faq/section-113.html
http://docs.hp.com/en/B2355-90796/ch07s01.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:34 PM
02-07-2006 07:34 PM
Re: Configuring multiple Interfaces on HP-UX
Else you can add that routing setting command with startup scripts. It is not good do this always.
Fill this:
ROUTE_DESTINATION1]="network | ip"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="gateway"
ROUTE_COUNT[1]="1" # Try to change based on route man page prefix setting
ROUTE_ARGS[1]=""
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:36 PM
02-07-2006 07:36 PM
Re: Configuring multiple Interfaces on HP-UX
Count Destination Type Flags
________________________________
=0 network U
>0 network UG
=0 host UH
>0 host UGH
=0 default U
>0 default UG
________________________________
Take flag from netstat -rnv output and use that count in that setting.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:37 PM
02-07-2006 07:37 PM
Re: Configuring multiple Interfaces on HP-UX
# Internet routing configuration. See route(1m), routing(7)
#
# ROUTE_DESTINATION: Destination hostname (in /etc/hosts) or host or network
# IP address in decimal-dot notation, preceded by the word
# "host" or "net"; or simply the word "default".
#
# ROUTE_MASK: Subnetwork mask in decimal-dot notation, or C language
# hexadecimal notation. This is an optional field.
# A IP address, subnet mask pair uniquely identifies
# a subnet to be reached. If a subnet mask is not given,
# then the system will assign the longest subnet mask
# of the configured network interfaces to this route.
# If there is no matching subnet mask, then the system
# will assign the default network mask as the route's
# subnet mask.
#
# ROUTE_GATEWAY: Gateway hostname (in /etc/hosts) or IP address in
# decimal-dot notation. If local interface, must use the
# same form as used for IP_ADDRESS above (hostname or
# decimal-dot notation). If loopback interface, i.e.,
# 127.0.0.1, the ROUTE_COUNT must be set to zero.
#
# ROUTE_COUNT: An integer that indicates whether the gateway is a
# remote interface (one) or the local interface (zero)
# or loopback interface (e.g., 127.*).
#
# ROUTE_ARGS: Route command arguments and options. This variable
# may contain a combination of the following arguments:
# "-f", "-n" and "-p pmtu".
#
# For each additional route, add a set of variable assignments like the ones
# below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=172.23.150.2
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
# Dynamic routing daemon configuration. See gated(1m)
#
# GATED: Set to 1 to start gated daemon.
# GATED_ARGS: Arguments to the gated daemon.
GATED=0
GATED_ARGS=""
#
# Router Discover Protocol daemon configuration. See rdpd(1m)
#
# RDPD: Set to 1 to start rdpd daemon
#
RDPD=0
#
# Reverse ARP daemon configuration. See rarpd(1m)
#
# RARP: Set to 1 to start rarpd daemon
#
RARP=0
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:38 PM
02-07-2006 07:38 PM
Re: Configuring multiple Interfaces on HP-UX
grep -Ev '^#|^$' /etc/rc.config.d/netconf | grep ROUTE
to configure netconf file with your route settings.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:40 PM
02-07-2006 07:40 PM
Re: Configuring multiple Interfaces on HP-UX
http://72.14.207.104/search?q=cache:5Cl7yNq4ZJgJ:sybooks.sybase.com/onlinebooks/group-asarc/srp1100e/hpinst11/%40Generic__BookTextView/10799+Configuring+multiple+Interfaces+on+HP-UX&hl=en&gl=us&ct=clnk&cd=9&lr=lang_en&client=firefox-a
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:41 PM
02-07-2006 07:41 PM
Re: Configuring multiple Interfaces on HP-UX
http://groups.google.com/group/comp.sys.hp.hpux/browse_thread/thread/4876eb7416061467/48592bfb7366891b%2348592bfb7366891b?sa=X&oi=groupsr&start=0&num=3
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:42 PM
02-07-2006 07:42 PM
Re: Configuring multiple Interfaces on HP-UX
192.168.0.0/255.255.255.0 10.154.231.253 UG 0 lan0 0
is needing netconf file setting. Since other interface must be default and configured with INTERFACE_NAME setting.
For this:
ROUTE_DESTINATION[1]="192.168.0.0"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.154.231.253"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
If you are using 1 as ROUTE_*[index] setting then increase that.
That is it.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 07:48 PM
02-07-2006 07:48 PM
Re: Configuring multiple Interfaces on HP-UX
Take a look at HP-UX Lan administrator guide for editing LAN configuration files,
http://docs.hp.com/en/B2355-90796/ch03s04.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 08:09 PM
02-07-2006 08:09 PM
Re: Configuring multiple Interfaces on HP-UX
Will try all of this tomm morning ... leavin for the day now... sorry could not assign points for ur previous replies... the system appeared to be down... more clarification would be rewarded generously :)
Cheers,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 08:13 PM
02-07-2006 08:13 PM
Re: Configuring multiple Interfaces on HP-UX
As the description says,
#
# ROUTE_DESTINATION: Destination hostname (in /etc/hosts) or host or network
# IP address in decimal-dot notation, preceded by the word
# "host" or "net"; or simply the word "default".
You can give any host name or network name proceded by "host" or "net"
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 10:21 AM
02-08-2006 10:21 AM
Re: Configuring multiple Interfaces on HP-UX
Arun with ur previous reply, i get that one can set default for more than one NIC on the same subent right.
Also guys does anyone have any more information on the link which one of you sent me about the ip_strong_es_model. Am i correct in assuming that this is something that is not inbuilt and has to be installed separately?
Cheers,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 12:55 PM
02-08-2006 12:55 PM
Re: Configuring multiple Interfaces on HP-UX
the downside is that with ip_strong_es_model set IP datagrams will only be accepted on NICs to which the matching IP address has been assigned.
there may still be some "gotcha's" for applications that call connect() without binding to a local IP address - it is conceivable that the routing code may select an outbound path other than the one you might want. in that case, adding specific static routes is the way to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 06:34 PM
02-08-2006 06:34 PM
Re: Configuring multiple Interfaces on HP-UX
Any light on the TOUR2.4 though, if it is needed to make my routeing work?
cheers,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 04:47 AM
02-09-2006 04:47 AM
Solutionif so, then you are in what may only be semi-supported territory (it has been a moving target) and would almost certainly need to set ip_strong_es_model. ip_strong_es_model has no dependency on a given TOUR (IIRC) unless one of the tours introduces the "semi-strong" es model - that would be where the route selection still uses the source IP address, but acceptance of datagrams is not limited to the interface with the matchine IP. I have no idea if that has shipped ina given TOUR or release
without ip_strong_es_model, the default gateway used should be considered random, although it will likely be either the first or last configured - I say random because no one should _ever_ depend on it remaining the first or the last
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 05:06 AM
02-09-2006 05:06 AM
Re: Configuring multiple Interfaces on HP-UX
Basic rule applies.
No two interfaces can be on the same network.
I'm not talking about physical wire here, I'm talking about network and host.
If your ip is 192.168.0.20 and your subnet is 255.255.255.0 then the network is 192.168.0 and the hsot is 20.
If you try and bring of a second NIC on the 192.168.0 network under HP-UX, the results are often spectaculary.
As to your original question, concerning default gateways, one is sufficient.
You can have secondary routes, in netconf as others have indicated but must choose which the default route is. I generally pick default route for the Interface I'm getting Internet access to to insure good access patchs and downloads.
One post, of reasonable length. I'll respond again only if you seek clarification from me.
SEP
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
02-09-2006 01:24 PM
02-09-2006 01:24 PM
Re: Configuring multiple Interfaces on HP-UX
Steve/Rick,
what I am trying to achieve in my scenario is to actually make the machine part of two different environments, since the management did not want to go for a dual boot, I have set up different filesystems for both "virtual" machines, and I am trying to route traffic to each logical machine to make it kind of a separate entity.
I will post the results after i try out the ip_strong_es_model to 1...
thanks for the help guys, while im here one quick clarification, what are my options of impolementing a sort of a virtual server in HP-UX? (trying to draw parallel to the windows world wherein its possible to run a totally independent virtual machine on top of the physical server)
cheers,
sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 04:27 AM
02-10-2006 04:27 AM
Re: Configuring multiple Interfaces on HP-UX
Within a single OS image there is also the workload manager to assign fractions of total resources to different applications.
Also, you _can_ assign multiple IP addresses to a single interface. The transport has no problem with this, and unless you have some serious bandwidth issues with the applications, may be preferable to trying to have mulitple NICs in the same IP subnet. You could even take the multiple NICs you have, gather them into a link aggregate with Auto Port Aggregation, and assign all the IPs to the link aggregate. Then you have NIC HA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2006 09:12 PM
02-12-2006 09:12 PM
Re: Configuring multiple Interfaces on HP-UX
had built my system from an ignite image of another system. After a lotta cleaning up and configuring routes towards networks by using the net before the Network IP in the ROUTE_DESTINATION field, got everything working.
Cheers,
sid