Date: Mon, 11 Dec 2006 08:27:49 -0800 From: Freddie Cash <fcash@ocis.net> To: freebsd-isp@freebsd.org Subject: Re: Problem implementing vlan on release 6.1 amd64 Message-ID: <200612110827.49866.fcash@ocis.net> In-Reply-To: <200612111801.03438.janasamit@wlink.com.np> References: <200612111801.03438.janasamit@wlink.com.np>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 11 December 2006 04:16 am, Samit Jana wrote: > I am stuck making VLAN operational in FreeBSD 6.1-RELEASE , amd64. The > same type config working beautifully over a year in FreeBSD > 4.10-RELEASE. It looks like although ifconfig has created the virtual > interfaces but the kernel doesn't have vlan support at all. While i do > tcpdump on real and virtual interface I don't see any incoming packets > either and my Catalyst 2950 port (both on trunk and access mode) also > doesn't learn the mac of the NIC card. > > Any help or tips appreciated. The process we used to create our vLAN interfaces: ifconfig bge0 up ifconfig vlan100 create ifconfig vlan100 inet 10.0.0.1/24 vlan 100 vlandev bge0 The first line brings the parent interface up and establishes the connection to the switch. The second line create the vlan100 interface. The number can be anything you want, so long as it is unique for all vlan interfaces. The third line configures the IP on the vlan100 interface, sets the vlan number (to tag the packets with) and associates it with the parent interface. Any packets you route through vlan100 will have the vlan 100 tag added/removed as needed. The lines needed in /etc/rc.conf to automate this are: cloned_interfaces="vlan100" ifconfig_bge0="up" ifconfig_vlan100="inet 10.0.0.1/24 vlan 100 vlandev bge0" See the ifconfig(8) and rc.conf(5) man pages, and the comments in /etc/defaults/rc.conf for more info. -- Freddie Cash fcash@ocis.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612110827.49866.fcash>
