On 5/31/10 3:56 AM, Al wrote:
> Can someone please provide an example config for setting up one physical 
> interface with 2 logical IP addresses/subnets and 4 different VLAN, where 
> each IP subnet (broadcast domains) is on 2 of the VLANs?
> 
> I have seen examples of setting a single VLAN per physical interface and well 
> as examples of one physical interface on more than one VLAN. I'm not sure if 
> there is anything special done when 2 logical interfaces are involved.
> 
> I assume the setup is the same for opensolaris and solaris 10 and is subject 
> to support from the NIC / its driver.

There's no difference in setting up logical interfaces on top of VLANs
versus setting them up on top of regular interfaces; just use "ifconfig
plumb" or "ifconfig addif" and drive on.

However, the first part of your statement has me puzzled.  How would you
configure the same IP subnet on multiple interfaces, regardless of the
interface type?  If you do that, then either you're using IPMP and those
two interfaces are actually bridged together, or you're inviting
unsupported chaos.

Having two interfaces (again, either VLAN or regular) configured with
the same subnet on the same system just isn't supportable.  To
understand why, suppose that you have "vlan0" and "vlan1" configured as
192.168.0.1/24 and 192.168.0.2/24, respectively.

Now suppose that an application tries to send a packet to 192.168.0.3.
What should the OS do?  Should it send ARP on vlan0 or vlan1?  Both
match.  Should it send it on both?  Well, if it does, then what should
the system do if it gets responses on _both_ interfaces?  Just randomly
pick where to send the packet?  Duplicate the packet and hope for the best?

And that's without getting into the turmoil such interfaces would cause
in the routing protocols ...

-- 
James Carlson         42.703N 71.076W         <carls...@workingcode.com>
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to