How to configure linux box as vlan based switch

Manoj Kumar manojkumarshetty at gmail.com
Wed Jan 3 06:06:44 UTC 2007


I feel thats true.

I want the linux machine to behave as switch. forwarding the frames at
layer2 across two ports. but with filtering and forwarding based on VLAN id.


THe reply posted here stats how to enable VLAN tagging and IP forowarding
but how to enable L2 switching on linux machine.

Thank you
Manoj

On 1/3/07, Guillermo Garron <guillermo.fedora at gmail.com> wrote:
>
> On 1/3/07, Jeffrey Ross <jeff at bubble.org> wrote:
> >
> >
> > Manoj Kumar wrote:
> > > Hello Everyone,
> > >
> > > Wish you all a very happy new year.
> > >
> > > I'am trying to test a VLAN based network. Hence, i wanted to know if
> it
> > > possible to configure a Linux Machine with multiple NIC card (i.e.,
> > > ports)
> > > to be configured to behave as a switch. If it possible then how to do
> the
> > > same any know resource where i coudl get some material on the same.
> > >
> > > Secondly, if it possible to configure it as a switch then is it
> > > possible to
> > > configure as VLAN based switch. And also know resources for the same.
> > >
> > > Thank you,
> > > regards,
> > > manoj
> > >
> >
> > VLANs? you want to do Dot1Q? and use multiple virtual interfaces (ie
> > eth0.2 eth0.3 etc)?  If so look at vconfig.  Then just assigned
> > different ip addresses (and network numbers) to each physical (or
> > virtual) nic.
> >
> > Also you will need to enable IP forwarding as I believe it is off by
> > default, issue the command:
> >
> > *echo 1 > /proc/sys/net/ipv4/ip_forward
> >
> sorry,
> but that isn't going to work as a router and not as a Switch?, it will
> worked based on IPs and the
> route table of the linux box. Right?
> a Switch worked based on MAC addresses, and a VLAN switch even more.
> as the 802.1Q works on Eth Header, so on MAC address (Layer two).
>
> Correct me if I am wrong please.
>
> --
> Guillermo Garron
> "Linux IS user friendly... It's just selective about who its friends are."
> (Using FC6, CentOS4.4 and Ubuntu 6.06)
> http://www.go2linux.org
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20070103/48b08092/attachment-0002.html 


More information about the users mailing list