From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 19:03:55 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 B9F481065674 for ; Thu, 21 Aug 2008 19:03:55 +0000 (UTC) (envelope-from popofnewslists@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.235]) by mx1.freebsd.org (Postfix) with ESMTP id 6544D8FC0C for ; Thu, 21 Aug 2008 19:03:55 +0000 (UTC) (envelope-from popofnewslists@gmail.com) Received: by qb-out-0506.google.com with SMTP id e34so158698qbe.35 for ; Thu, 21 Aug 2008 12:03:54 -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:cc:in-reply-to:mime-version:content-type:references; bh=qdpKfL1mafKw7EREFP3AuqwFLC5fvX+Jx+K1U7z/I1U=; b=lHutuEpZ+chiHkf2mae7UCfL4XH0Cihs974lpAyNVwgX8TP7glWker2BIMXuVUvGa3 SVhOeLdCCMyY+NI8AmPXhtXmrL3qrul3sSJimdMTEzJH4Ggrr3zjaFYCAT8Ot/EnD7MU FePNnmZMdMvNxrsxtGsrYJpLu+7rK/63Nkr78= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=f4znxs7i77PoSLFiEX+kguX7xd3T9VDTsxW0JTwm73FI2sfMpxFdbOZCHy3AqgFnNy NUXq9HmNWJTXF/oAdBCNepgXWZFG9+Z0HLtkaL4XdNfykzRHB2D0TJYXoav3zkoJKlXQ J9aRdWPhMJIV/eOodG25ZrAIYvx0m3vcv1W2c= Received: by 10.103.170.13 with SMTP id x13mr95051muo.27.1219345433865; Thu, 21 Aug 2008 12:03:53 -0700 (PDT) Received: by 10.102.247.18 with HTTP; Thu, 21 Aug 2008 12:03:53 -0700 (PDT) Message-ID: <9196e72b0808211203j746196fdhc17a221e12e8f065@mail.gmail.com> Date: Thu, 21 Aug 2008 21:03:53 +0200 From: "Popof Popof" To: "Julian Elischer" In-Reply-To: <48ADB8D0.4040705@elischer.org> MIME-Version: 1.0 References: <9196e72b0808200613q4557b034t9ab3e80d0ff1ec08@mail.gmail.com> <20080821184404.GA46725@lor.one-eyed-alien.net> <48ADB8D0.4040705@elischer.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Net , Brooks Davis , frankhelbert82@gmail.com 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 19:03:55 -0000 Here is the output from my ifconfig (I rename rl0.100 and rl0.2101 in vlan0 and vlan1, the RJ45 wire is disconected because i need internet in order to send this message :p ): rl0: flags=8843 mtu 1500 options=8 inet6 fe80::2e0:4dff:fe30:80e1%rl0 prefixlen 64 scopeid 0x1 ether 00:e0:4d:30:80:e1 media: Ethernet autoselect (none) status: no carrier lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 pflog0: flags=0<> mtu 33208 vlan0: flags=8843 mtu 1500 inet6 fe80::2e0:4dff:fe30:80e1%vlan0 prefixlen 64 scopeid 0x5 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:e0:4d:30:80:a0 media: Ethernet autoselect (none) status: no carrier vlan: 100 parent interface: rl0 vlan1: flags=8843 mtu 1500 inet6 fe80::2e0:4dff:fe30:80e1%vlan1 prefixlen 64 scopeid 0x6 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:e0:4d:30:80:a1 media: Ethernet autoselect (none) status: no carrier vlan: 2101 parent interface: rl0 In order to configure my vlan i follow this guide: http://people.freebsd.org/~arved/vlan/vlan_en.html > Unless it's absolutly necessicary I don't recommend using dhclient.conf. I > don't test it. The problem is that i have to get an ip address from my FAI (i'm trying to bypass my modem, i have an optical connection with an RJ45 instead of RJ11 and I need vlan 100 for internet and 2101 for tv) > 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 probably > work, but it's certainly not something I'd expect to work. How do you remove support for default routes and reslov.conf ? I don't understand what do you mean > use vimage :-) If i understand well vimage is used for jail but i need to have those two vlans because my box act like a router and will send data over my switch.