From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 18:43:27 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5353106566B for ; Thu, 21 Aug 2008 18:43:27 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 221658FC18 for ; Thu, 21 Aug 2008 18:43:26 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m7LIi4qq046759; Thu, 21 Aug 2008 13:44:04 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m7LIi4q3046758; Thu, 21 Aug 2008 13:44:04 -0500 (CDT) (envelope-from brooks) Date: Thu, 21 Aug 2008 13:44:04 -0500 From: Brooks Davis To: Popof Popof Message-ID: <20080821184404.GA46725@lor.one-eyed-alien.net> References: <9196e72b0808200613q4557b034t9ab3e80d0ff1ec08@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <9196e72b0808200613q4557b034t9ab3e80d0ff1ec08@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Net Subject: Re: How to make two vlans on one interface working with dhclient X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2008 18:43:27 -0000 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 20, 2008 at 03:13:00PM +0200, Popof Popof wrote: > Hi, > I have a FreeBSD 6.0 box andi need to configure it in a way that I must u= se > 2 vlans under one interface and both of them will get an address thanks to > dhclient. >=20 > So in order to make this job I created vlans: >=20 > ifconfig rl0.100 create > ifconfig rl0.2101 create > The vlans are created without any problem. > But I also want to retrieve an diffrent ip address from a dhcpd server on > the two of them. > I've made a specific dhclient.conf for each one: >=20 > interface "rl0.100" { > #My options > } > interface "rl0.2101" { > #My options > } Unless it's absolutly necessicary I don't recommend using dhclient.conf. I don't test it. > When I launch dhclient on only one interface (100 or 2101) it's works fine > and I get an ip address (class B on vlan 100 and class A on vlan 2101). > But if I launch dhclient on the second interface it's make an error: >=20 > dhclient: Can't bind to dhcp address: Address already in use. Please make > sure there is no other dhcp server runing and that there's no entry for d= hcp > or bootp in /etc/inetd.conf > > Does someone had an idea about how to fix this problem and having my two > vlans working with dhclient? The current dhclinet scripts don't really support this case. In theory if = you removed support for default routes and resolv.conf setting it should probab= ly work, but it's certainly not something I'd expect to work. -- Brooks --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIrbdzXY6L6fI4GtQRAgP1AKC2+yhS/joHidUrcZgVzW0E0n1EOQCfax+2 vWnm46f9CGqupyAJlWOPqSE= =Nn2h -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--