Operating System - HP-UX
1832609 Members
2499 Online
110043 Solutions
New Discussion

Re: Isolate application traffic to a particular lan card

 
rudy smith_1
Occasional Advisor

Isolate application traffic to a particular lan card

Does anyone know if there is a way to isolate network traffic for a particular application to a single nic on a server with multiple nics?
If all else fails...read the manual!
3 REPLIES 3
Sundar_7
Honored Contributor

Re: Isolate application traffic to a particular lan card

hmm..you will have to manipulate the network routes unless if you can hardcode the application to bind to a certain interface while creating sockets for outbound connections.

Other than that, I cannot think of any other way to do it.
Learn What to do ,How to do and more importantly When to do ?

Re: Isolate application traffic to a particular lan card

The important thing to remember is the HPUX doesn't support two seperate physical NICs in the same IP subnet, so unless you can add an additional IP subnet and setup a router to handle traffic to/from the subnet, you're on a hiding to nothing.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
rick jones
Honored Contributor

Re: Isolate application traffic to a particular lan card

If you want to constrain all traffic for a particular application to a particular NIC, you need to bind() that application to the IP address of that NIC (ie the application has to be induced to call bind() with that IP) and set ip_strong_es_model such that datagrams with that as the destination IP address are only accepted on that NIC, and outbound route selection for trafic coming from that IP address selects routes associated with that NIC.

At that point, I'm not sure it would matter if the NICs were configured into the same or separate IP subnets.
there is no rest for the wicked yet the virtuous have no pillows