From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 13:29:18 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 A002C1065689 for ; Wed, 20 Aug 2008 13:29:18 +0000 (UTC) (envelope-from popofnewslists@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.229]) by mx1.freebsd.org (Postfix) with ESMTP id 5068A8FC15 for ; Wed, 20 Aug 2008 13:29:18 +0000 (UTC) (envelope-from popofnewslists@gmail.com) Received: by qb-out-0506.google.com with SMTP id e34so826802qbe.35 for ; Wed, 20 Aug 2008 06:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=CmeW8Cl0TyxYYfDqCN6pALq17ySjR9D4jxDUgmFGDoI=; b=xlaviCuPfCd6KuWTR0NhpxdGGUf31cDX/XAFC4Hc1QBkYw1l6kXQFW3NcW8Hz8XCeV 3bWOWNbT47hDSrEMDeGBxTckqiHK1gcbmlAb6zcjMJTYgf045d7yYBT2Ya24zG43p2mS zkwDjW2cSPqniFYvAG7cW/w2FuJ7w4Qyp1oSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=u506U8MqMjYqonKb2X5i9rcMjQQ773U2sboFTxZJ3BSJ2WCHISseeB8IqitYmoKKhi s3McpqMTQV9Pw7qywIgM1Qk/2ATVHevBUvLRNaKZ8lO5sBr74r0dIVAZy3hbOCC/aiJm bzuUEtqOXSX4/xCsdkqaj5QAdlt/Kj7X7DAUQ= Received: by 10.103.220.18 with SMTP id x18mr50993muq.81.1219237980993; Wed, 20 Aug 2008 06:13:00 -0700 (PDT) Received: by 10.102.247.18 with HTTP; Wed, 20 Aug 2008 06:13:00 -0700 (PDT) Message-ID: <9196e72b0808200613q4557b034t9ab3e80d0ff1ec08@mail.gmail.com> Date: Wed, 20 Aug 2008 15:13:00 +0200 From: "Popof Popof" To: "FreeBSD Net" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Wed, 20 Aug 2008 13:29:18 -0000 Hi, I have a FreeBSD 6.0 box andi need to configure it in a way that I must use 2 vlans under one interface and both of them will get an address thanks to dhclient. So in order to make this job I created vlans: 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: interface "rl0.100" { #My options } interface "rl0.2101" { #My options } 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: 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 dhcp 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?