Re: Problem implementing vlan on release 6.1 amd64



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@xxxxxxxx
_______________________________________________
freebsd-isp@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Server 2003 packets through different network interface
    ... My switch is configured to understand VLAN 1 and VLAN 2, they route all the ... Switch accept tagged packets and route all the packet ... >> I have created 3 Virtual Interface on the network controller. ...
    (microsoft.public.windows.server.networking)
  • 6.0-BETA3 bge0 and vlans
    ... I'm having no success setting vlans up on a bge interface. ... the options "vlandev" and "vlan" are passed to it. ... ifconfig: must specify both vlan tag and device ...
    (freebsd-current)
  • Re: How to enable VLAN interface on normal interface
    ... Please provide me the steps to configure and enable VLAN interface on ... link in Google on the request 'freebsd vlan'. ... ifconfig an0.1 create ...
    (freebsd-net)
  • Re: VLAN support in rcNG [PATCH]
    ... >> It works by doing a major overhaul of the device cloning support so you ... when you do "ifconfig stf create" ifconfig does not output "stf0" and ... the interface created is named "sft" instead of "stf0". ... The vlan change allows vlan interfaces to work exactly like they did ...
    (freebsd-current)
  • Re: VLAN with intel adapter on XP
    ... tagged VLAN 1. ... But after a few more tests I am pretty sure that the packets arrive correctly on the laptop, i.e. all packets in VLAN 99 are correctly tagged while the packets on the other VLAN are untagged. ... Still the packets with the 99 tag won't make it to the VLAN 99 interface but end up on the untagged interface instead. ... This does not look like weirdness to me but rather a bug. ...
    (comp.dcom.lans.ethernet)