Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2001 21:02:09 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        sl@zeus.dnt.md (Veaceslav Revutchi)
Cc:        questions@freebsd.org
Subject:   Re: 802.1q vlan trunking on fbsd
Message-ID:  <bb1nstsqvkeqshu8p2d01hiddjblhj68ta@4ax.com>
In-Reply-To: <SEN.1003129947.940846147@news.sentex.net>
References:  <SEN.1003129947.940846147@news.sentex.net>

index | next in thread | previous in thread | raw e-mail

On Mon, 15 Oct 2001 07:12:27 +0000 (UTC), in sentex.lists.freebsd.questions
you wrote:

>hi
>
>I've seen on mail archives people making fxp interfaces undestand
>802.1q frames. I was wondering if it was possible to have the
>FreeBSD box with two interfaces fxp0 and fxp1 forward 802.1q
>frames from one interface to another, in other words trunk 
>a vlan received on fxp0 to fxp1, just like cisco's do it
>on FastE interfaces.  
>
>I will be using 4.4 and two i82559. Do I need bridging support
>for that?  


You mean route it from one VLAN to another ? Yes, thats no problem. If you
want to go switch to switch, you dont need the FreeBSD box. 

To get things going, 

compile a customer kernel with 
device   vlan 10   #gives you 10 vlan interfaces to work with

install and reboot

then, lets say you have fxp0 and fxp1


On fxp0, you want to add 
192.168.1.1/24 on vlan 453
172.16.1.1/24 on vlan 449

On fxp1 you want to add
10.0.0.1/24 on vlan 33
10.255.250.1/24 on vlan 993

ifconfig vlan0 192.168.1.1 netmask 255.255.255.0 vlan 453 vlandev fxp0 mtu
1500 up
ifconfig vlan1 172.16.1.1 netmask 255.255.255.0 vlan 449 vlandev fxp0 mtu
1500 up
ifconfig vlan2 10.0.0.1 netmask 255.255.255.0 vlan 33 vlandev fxp1 mtu 1500
up
ifconfig vlan3 10.255.250.1 netmask 255.255.255.0 vlan 993 vlandev fxp1 mtu
1500 up

	---Mike
Mike Tancsa  (mdtancsa@sentex.net)		
Sentex Communications Corp,   		
Waterloo, Ontario, Canada
"Given enough time, 100 monkeys on 100 routers 
could setup a national IP network." (KDW2)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

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