1833415 Members
3042 Online
110052 Solutions
New Discussion

using secondary lan

 
Paul_481
Respected Contributor

using secondary lan

Hi guys,

I have two lan configured with different subnet. lan0 and lan1. By checking glance the traffic is currently concentrated on lan0.

Question1: How can I force incoming packets to lan0 and outgoing packets to lan1.

Question2: How can I force the incoming and outging packets of a particular server to use lan1.

Thanks,
Paul
4 REPLIES 4
Paul_481
Respected Contributor

Re: using secondary lan

OS: HPUX 11i
Devender Khatana
Honored Contributor

Re: using secondary lan

Hi Paul,

The easiest way of achiving this will be adding both physical ports to a single logical port using APA and assign two IP's to this logical port.

The incoming traffic in your current scenario can not be altered as it it marked for IP that is assigned for that particular card. Moreover if your system calls for some data on lan from some other hosts you can route that traffic by plainning your routes to those hosts using the other lan i.e. lan1. But for this your hosts which is called should be on the subnet on lan1 atleast.

You can add default routes to lan1 to be used for any outbond traffic. But in that case packets of your lan1 subnet should be forwarded to lan0.

HTH,
Devender
Impossible itself mentions "I m possible"
Suraj Singh_1
Trusted Contributor

Re: using secondary lan

Hi Paul,

Do you really require your system to be on two different subnets?

If not, you may want to use Auto Port Aggregation!!

Regards
What we cannot speak about we must pass over in silence.
C. Beerse_1
Regular Advisor

Re: using secondary lan

If you have 2 nics, each on a different subnet (that is an IP address and netmask combination that gives a different network-address) Then trafic for each subnet will go over the direct attached subnet and for other trafic it is in the router (routing tables) which trafic goes to what router in the attached subnet.

If you have 2 nics, each connected to a different section of your local lan, all with ip addresses and netmask combinations with the same network-address, Then your machine will random use one of the 2 nics (where always using one nic is a random variant!) Here you need to do something like teaming or bonding or how it is called.

btw: you can use different subnets on the sam e physical lan, you can even give a single nic more than one ip-address (in most os-es).
make everything as simple as possible, not simpler (A.Einstein??)