From owner-freebsd-net@FreeBSD.ORG Fri Feb 13 12:32:13 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59A8F16A4CE for ; Fri, 13 Feb 2004 12:32:13 -0800 (PST) Received: from mail.valuehost.co.uk (mail.valuehost.co.uk [62.25.99.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 95AD643D1D for ; Fri, 13 Feb 2004 12:32:12 -0800 (PST) (envelope-from bjorn@eikeland.info) Received: (qmail 6305 invoked by uid 89); 13 Feb 2004 20:31:58 +0000 Received: from unknown (HELO beer.eikeland.info) (bjorn@eikeland.info@80.202.108.144) by mail.valuehost.co.uk with SMTP; 13 Feb 2004 20:31:58 +0000 Date: Fri, 13 Feb 2004 21:30:31 +0100 To: "freebsd-net@freebsd.org" From: Bjorn Eikeland Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera7.23/FreeBSD M2 build 518 Subject: vlan with its own ether / mac address? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 20:32:13 -0000 is it possible to set up a vlan device with its own ether address? I've tried the following: ifconfig vlan0 create ifconfig vlan0 vlan 1 vlandev fxp0 up ifconfig vlan0 inet 10.0.0.10 netmask 255.255.255.0 \ ether 00:a0:c9:f1:4e:6e ifconfig: ether: bad value but changing the ether value after the device is up 'works', but caused me to only have access to the vlan ip. my existing fxp0 device fxp0: flags=8843 mtu 1500 inet 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 ether 00:a0:c9:f1:4e:6d media: Ethernet autoselect (100baseTX ) status: active the faked vlan0 device: vlan0: flags=8843 mtu 1500 inet 10.0.0.10 netmask 0xffffff00 broadcast 10.0.0.255 ether 00:a0:c9:f1:4e:6e media: Ethernet autoselect (100baseTX ) status: active vlan: 1 parent interface: fxp0 basically I'm trying to set up dhcp to configure unknown hosts in a seperate network to allow them to register their mac address and then be allocated a ip in the "real" network. And need a way to test with several clients, but I've only got one nic in my box. looks like I'll be buying another nic and use dhcping -h and see if it does the trick - but just wanted to see if there is a all free and nice software solution.