Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Sep 2009 21:55:37 +0400
From:      "Marat N.Afanasyev" <amarat@ksu.ru>
To:        Louis Kowolowski <louisk@cryptomonkeys.org>
Cc:        FreeBSD <freebsd-stable@freebsd.org>
Subject:   Re: Question regarding vlans and lagg
Message-ID:  <4AAD3219.9040806@ksu.ru>
In-Reply-To: <9DAD6CD5-0BD7-4B06-8FA7-D0159419FEAE@cryptomonkeys.org>
References:  <4AAC140F.2070203@stillbilde.net> <4AAC3343.5030806@ksu.ru> <9DAD6CD5-0BD7-4B06-8FA7-D0159419FEAE@cryptomonkeys.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms030806020107070400090004
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------ms030806020107070400090004
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII8zCC
AtQwggI9oAMCAQICEHpsMo6nkbUVegxjAzzxYCkwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA5MDQwMTE5MTUxOFoX
DTEwMDQwMTE5MTUxOFowPzEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEcMBoG
CSqGSIb3DQEJARYNYW1hcmF0QGtzdS5ydTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBALqa7MfgjbsxmgpTOKxAN7w+cFViFA8NrULAARwVQJQJCnVRGf3i97EwNdLE8VTNniU4
ybS4gtLsy9gfNuuyPV2AJESpgrxaG+KZyHu1f6P4e31YBbnbtWVTUxZ3U/vWoL+BOAOI4S84
Cx834a4uYK75WhpZKd56qet5loyn9N1wBZNgCh9AwU31lA/Q0iCSKpEIxuhbElNXHNnqAlts
CtNXsKgsT8mP7QI52h0cBOPSZqvz++e/wruJGgKeCECqo8ftwwya3CYkH1lhH2Q1zeXwez1E
1+solM48odH+odn29ctmOqr3PzZfmBJyGFf5FagTKNia/ys48yBtVU/RXHsCAwEAAaMqMCgw
GAYDVR0RBBEwD4ENYW1hcmF0QGtzdS5ydTAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBBQUA
A4GBAG4Pj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1X/EGw8G2U05kkV7tCa9E+Zm
/xsOe3tbjCpRpd0EjVZtDEicenV4IOVwAXWsYr5qjaZYCVur30ZEW5/nBW616GDbyXIE77g+
V5KXxK1EXnvWzNknNIqzfCsOPhfBu3lPec0XaXrmryaatoo+jH86x+1ptDTL+ejSjnQ3e6Sf
bEf9a+3JCF2A+vcbj6b9IDOWHrQhI7Ll7fF13lbHM/XGXItzTTg06J7sAVTd5lww3mrsZWRU
LOaSXJtCsXXvkyCYpglDnHmiZIafuyPIIJ9Rk5MAAAAAAAA=
--------------ms030806020107070400090004--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AAD3219.9040806>