Question regarding vlans and lagg

Marat N.Afanasyev amarat at ksu.ru
Sun Sep 13 17:56:06 UTC 2009


Louis Kowolowski wrote:
> On Sep 12, 2009, at 4:48 PM, Marat N.Afanasyev wrote:
> 
>> * PGP - S/MIME Signed by an unverified key: September 12, 2009 4:48:19 PM
>>
>> Svein Skogen (listmail account) wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>> Can the vlan "vlandev" be a lagg port of multiple physical interfaces
>>> (for redundancy)?
>>> //Svein
>>
>> i think that you should try the following:
>>
>> 1. join two ports on switch to trunk, say vport1
>> 2. assign allowed vlans to this vport1
>> 3. create lagg0 on freebsd
>> 4. create vlan interfaces on freebsd using vlandev lagg0
>>
>> and i suppose it just should work ;)
>>
> You're looking for something along these lines:
> cloned_interfaces="lagg0 vlan0 vlan1"
> ifconfig_em0="up"
> ifconfig_em1="up"
> ifconfig_lagg0="laggproto failover laggport em0 laggport em1 up"
> ifconfig_vlan0="vlan 2 vlandev lagg0 up"
> ifconfig_vlan1="vlan 3 vlandev lagg0 up"
> ifconfig_vlan0_alias0="inet 192.168.1.41/24"
> ifconfig_vlan1_alias1="inet 172.16.0.20/24"
> 
> This will give you failover for your lagg(8) interface, I believe you 
> can also use something like etherchannel.

lagg can be configured as etherchannel, afaik

and yes, everything i'd proposed could be done from rc.conf

and remember that cloned_interfaces could not be restarted via
/etc/rc.d/neif restart ifN

-- 
SY, Marat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3221 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090913/d0fd744e/smime.bin


More information about the freebsd-stable mailing list