Date: Sat, 16 Jun 2007 03:25:20 +0200 From: Ivan Voras <ivoras@fer.hr> To: freebsd-net@freebsd.org Subject: Quickly creating VLANs? Message-ID: <f4ve68$jic$1@sea.gmane.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6C28D908E86D25133190FA18 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I have a problem I can demonstrate and reproduce with the following scrip= t: ---- #!/bin/sh ifconfig vlan600 destroy ifconfig vlan600 create ifconfig vlan600 vlan 600 vlandev fxp1 ifconfig vlan600 inet 10.20.0.1 netmask 255.255.255.0 ifconfig vlan601 destroy ifconfig vlan601 create ifconfig vlan601 vlan 601 vlandev fxp1 ifconfig vlan601 inet 10.21.0.5/29 ---- The addresses don't matter. The problem is that the IP address is "lost" - it's not assigned to the vlan devices: # ifconfig vlan600 vlan600: flags=3D8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 00:07:e9:d4:2b:39 media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 600 parent interface: fxp1 # ifconfig vlan601 vlan601: flags=3D8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 00:07:e9:d4:2b:39 media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 601 parent interface: fxp1 If I insert "sleep 1" before IP gets assigned, it works, so it seems like there's a timing issue. The machine already has about 100 vlan devices, so it may happen only when there are lots of then. Leaving "sleep 1" is not an option since the entire thing would take 100 s to complete. I can reproduce this 100% on two different machines running 6.2-RELEASE, also with different NICs. Does someone else feel this effect? --------------enig6C28D908E86D25133190FA18 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGczwGldnAQVacBcgRAmxdAKClGDU4alNiCX6MyM0EY82AcZkCgwCg8U8C 9X6swwaD52Bp5hDgBAy562w= =sTL0 -----END PGP SIGNATURE----- --------------enig6C28D908E86D25133190FA18--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f4ve68$jic$1>