- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TCP and ports
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
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-12-2001 02:41 PM
тАО09-12-2001 02:41 PM
TCP and ports
Two processes, A and B, are running on the same host. Multiple IP addresses are bound to the same physical ethernet port: 192.168.0.1 and 192.168.0.2 bound to lan0:1 and lan0:2. Both processes open and using the same TCP port number, 7000, on different IP addresses running on the same host. For example:
Process A using 192.168.0.1:7000 bound to lan0:1
Process B using 192.168.0.2:7000 bound to lan0:2
The reason for this configuration is to support a clustered application.
Thanks for the help,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2001 05:10 PM
тАО09-12-2001 05:10 PM
Re: TCP and ports
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2001 07:54 PM
тАО09-12-2001 07:54 PM
Re: TCP and ports
My answer is also yes. I have 3 ip addresses bound to different lan ports and have SG on the system. No modification in the TCP port is required.
Hope this helps
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2001 10:15 PM
тАО09-12-2001 10:15 PM
Re: TCP and ports
Sure this will work, it is just the kind of functionality that multiple IP-Addresses were designed for.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2001 04:55 AM
тАО09-13-2001 04:55 AM
Re: TCP and ports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2001 07:32 AM
тАО09-13-2001 07:32 AM
Re: TCP and ports
a socket is this..
IPaddressHOSTA:PORT AND IPaddressHOSTB:PORT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2001 08:43 AM
тАО09-13-2001 08:43 AM
Re: TCP and ports
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2001 09:59 AM
тАО09-13-2001 09:59 AM
Re: TCP and ports
For further background, client processes from other hosts would connect to the two unique IP addresses on the same port number.
From your answers, I feel comfortable that this is within the capabilities of TCP. If anyone wants to post a link to the appropriate section of a standards document or other authoritative documentation answering this exact question, I will assign 10 pts to them.
Again, I consider this answered, thanks.
David Reno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2001 12:10 PM
тАО09-13-2001 12:10 PM
Re: TCP and ports
As far as the mechanics go, basically it is a matter of calling bind() with the sockaddr specifying both an IP address and a port number. Probably some details in the manpages for bind(), you might also peruse socket() and tcp.
There are no routing issues with multuiple aliases on the same NIC. However, if you decide to split the addresses across NICs, there can be some issues with having addresses in the same IP subnet on different NICs in the same system. You either have to start setting explicit static routes, or on 11.X you can set ip_strong_es_model to a value of one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2001 06:13 PM
тАО09-13-2001 06:13 PM
Re: TCP and ports
as well as the port. Many programs bind to the port
on all addresses by default, so can't share ip addresses.
If the program must accepts an IP address to bind to
as well as the port number, then you can have different
programs on each address. Oracle, WebLogic, and
Apache are all programs that will bind a specific address.
Oracle binds all available addresses when you specify
a home address for the machine. I haven't noticed
any other program doing this.
If you bind a specific address for a port, you can then catch the remaining addresses by binding only the port.
Clustering may also require one or more multicast
addreses so the processes can share information.