回复: Re: How to support inter face vlan trunk

liang jian <[email protected]> Wed, 1 Aug 2007 22:19:08 +0800 (CST)
Newsgroups gmane.linux.drivers.vlan
Message-ID <[email protected]>
--===============0925909436==
Content-Type: multipart/alternative; boundary="0-122776444-1185977948=:32948"

--0-122776444-1185977948=:32948
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by ns2.lanforge.com id l71EJLge010298

Thanks ALL
  =20
  I tested bridge eth0 and eth1 , LAN2 and LAN3 can pass to box.
  but I saw some firewall system , do it like blow:
  =20
  Firewall(config-if)# vlan trunk
  ......
  =20
  it like on eth1 and eth0 only do trunk protocol only ,  didn't bridge o=
r other

Jonathan Petersson <[email protected]> =D0=B4=B5=C0=A3=BA
  Ard van Breemen wrote:
> On Wed, Aug 01, 2007 at 11:19:53AM +0200, Jonathan Petersson wrote:
>=20
>> I recently did a similar installation, effectively, provided that LAN =
2
>> and 3 are tagged to eth0 in the switch and the same for eth1 it's enou=
gh
>> to activate
>> sysctl net.ipv4.ip_forward=3D1
>>=20
>
> Unless he expects LAN2 to be bridged to LAN2 :-).
> I was thinking about creating a bridge between eth0.2 and eth1.2,
> and between eth0.3 and eth1.3, and route the bridge interfaces.
>=20
I was thinking about that as well, but based on his question I cannot=20
really tell if that was what he wanted.

Iiang, if you want to do the bridge look into brctl

To add:

brctl addbr br0
brctl addif br0 eth0.2
brctl addif br0 eth1.2

brctl addbr br1
brctl addif br1 eth0.3
brctl addif br1 eth1.3

To take down:

brctl delbr br0
brctl delbr br1
> Anyway, with this suggestion added, it should be rather easy to
> envision a good solution :-). Or better: to know what to ask next
> :-).
>
> _______________________________________________
> Vlan mailing list
> [email protected]
> http://www.candelatech.com/mailman/listinfo/vlan
>=20


--=20
-----------------------------------------------------------------------
__ ___ ___ ____ __ Jonathan Petersson, Systems Administrator
/ |/ /_ __/ __/ __ \/ / Mobile SWE: +46 732 00 1678
/ /|_/ / // /\ \/ /_/ / /__ Phone SWE: +46 18 17 44 31
/_/ /_/\_, /___/\___\_\___/ Mobile US: +1 408 931 3994
<___/ www.mysql.com Phone US: +1 408 213 6790
-----------------------------------------------------------------------
(I'm currently located in Sweden but travels frequently to the US,
unless I answer my Swedish phones please try the US ones)

Are you MySQL certified? www.mysql.com/certification



      =20
---------------------------------
 =D1=C5=BB=A2=C3=E2=B7=D1=D3=CA=CF=E43.5G=C8=DD=C1=BF=A3=AC20M=B8=BD=BC=FE=
=A3=A1
--0-122776444-1185977948=:32948
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by ns2.lanforge.com id l71EJLge010298

<div>Thanks ALL</div>  <div>&nbsp;</div>  <div>I tested bridge eth0 and e=
th1 , LAN2 and LAN3 can pass to box.</div>  <div>but I saw some firewall =
system , do it like blow:</div>  <div>&nbsp;</div>  <div>Firewall(config-=
if)# vlan trunk</div>  <div>......</div>  <div>&nbsp;</div>  <div>it like=
 on eth1 and eth0 only do trunk protocol only ,&nbsp; didn't bridge or ot=
her<BR><BR><B><I>Jonathan Petersson &lt;[email protected]&gt;</I></B> =
=D0=B4=B5=C0=A3=BA</div>  <BLOCKQUOTE class=3Dreplbq style=3D"PADDING-LEF=
T: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Ard van Breemen=
 wrote:<BR>&gt; On Wed, Aug 01, 2007 at 11:19:53AM +0200, Jonathan Peters=
son wrote:<BR>&gt; <BR>&gt;&gt; I recently did a similar installation, ef=
fectively, provided that LAN 2<BR>&gt;&gt; and 3 are tagged to eth0 in th=
e switch and the same for eth1 it's enough<BR>&gt;&gt; to activate<BR>&gt=
;&gt; sysctl net.ipv4.ip_forward=3D1<BR>&gt;&gt; <BR>&gt;<BR>&gt; Unless =
he expects LAN2 to be bridged to LAN2 :-).<BR>&gt; I was
 thinking about creating a bridge between eth0.2 and eth1.2,<BR>&gt; and =
between eth0.3 and eth1.3, and route the bridge interfaces.<BR>&gt; <BR>I=
 was thinking about that as well, but based on his question I cannot <BR>=
really tell if that was what he wanted.<BR><BR>Iiang, if you want to do t=
he bridge look into brctl<BR><BR>To add:<BR><BR>brctl addbr br0<BR>brctl =
addif br0 eth0.2<BR>brctl addif br0 eth1.2<BR><BR>brctl addbr br1<BR>brct=
l addif br1 eth0.3<BR>brctl addif br1 eth1.3<BR><BR>To take down:<BR><BR>=
brctl delbr br0<BR>brctl delbr br1<BR>&gt; Anyway, with this suggestion a=
dded, it should be rather easy to<BR>&gt; envision a good solution :-). O=
r better: to know what to ask next<BR>&gt; :-).<BR>&gt;<BR>&gt; _________=
______________________________________<BR>&gt; Vlan mailing list<BR>&gt; =
[email protected]<BR>&gt; http://www.candelatech.com/mailman/listinfo/=
vlan<BR>&gt; <BR><BR><BR>-- <BR>-----------------------------------------=
------------------------------<BR>__
 ___ ___ ____ __ Jonathan Petersson, Systems Administrator<BR>/ |/ /_ __/=
 __/ __ \/ / Mobile SWE: +46 732 00 1678<BR>/ /|_/ / // /\ \/ /_/ / /__ P=
hone SWE: +46 18 17 44 31<BR>/_/ /_/\_, /___/\___\_\___/ Mobile US: +1 40=
8 931 3994<BR>&lt;___/ www.mysql.com Phone US: +1 408 213 6790<BR>-------=
----------------------------------------------------------------<BR>(I'm =
currently located in Sweden but travels frequently to the US,<BR>unless I=
 answer my Swedish phones please try the US ones)<BR><BR>Are you MySQL ce=
rtified? www.mysql.com/certification<BR><BR></BLOCKQUOTE><BR><p>&#32;
      <hr size=3D1><a href=3D"http://cn.mail.yahoo.com/" target=3Dblank>=20
=D1=C5=BB=A2=C3=E2=B7=D1=D3=CA=CF=E43.5G=C8=DD=C1=BF=A3=AC20M=B8=BD=BC=FE=
=A3=A1</a>
--0-122776444-1185977948=:32948--

--===============0925909436==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

_______________________________________________
Vlan mailing list
[email protected]
http://www.candelatech.com/mailman/listinfo/vlan

--===============0925909436==--