回复: 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> </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> </div> <div>Firewall(config-= if)# vlan trunk</div> <div>......</div> <div> </div> <div>it like= on eth1 and eth0 only do trunk protocol only , didn't bridge or ot= her<BR><BR><B><I>Jonathan Petersson <[email protected]></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>> On Wed, Aug 01, 2007 at 11:19:53AM +0200, Jonathan Peters= son wrote:<BR>> <BR>>> I recently did a similar installation, ef= fectively, provided that LAN 2<BR>>> and 3 are tagged to eth0 in th= e switch and the same for eth1 it's enough<BR>>> to activate<BR>>= ;> sysctl net.ipv4.ip_forward=3D1<BR>>> <BR>><BR>> Unless = he expects LAN2 to be bridged to LAN2 :-).<BR>> I was thinking about creating a bridge between eth0.2 and eth1.2,<BR>> and = between eth0.3 and eth1.3, and route the bridge interfaces.<BR>> <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>> Anyway, with this suggestion a= dded, it should be rather easy to<BR>> envision a good solution :-). O= r better: to know what to ask next<BR>> :-).<BR>><BR>> _________= ______________________________________<BR>> Vlan mailing list<BR>> = [email protected]<BR>> http://www.candelatech.com/mailman/listinfo/= vlan<BR>> <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><___/ 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>  <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==--