From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 07:14:39 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 700C2106567F for ; Fri, 22 Aug 2008 07:14:39 +0000 (UTC) (envelope-from popofnewslists@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.232]) by mx1.freebsd.org (Postfix) with ESMTP id 213B18FC1D for ; Fri, 22 Aug 2008 07:14:38 +0000 (UTC) (envelope-from popofnewslists@gmail.com) Received: by qb-out-0506.google.com with SMTP id e34so521716qbe.35 for ; Fri, 22 Aug 2008 00:14:38 -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:in-reply-to:mime-version:content-type:references; bh=sav+63EusvJL/B4xo1qDew+Sn4Zrb23U2brKX5QVEkE=; b=if84kkqceahSbSS+1NrKfVjlaDhYwA4MeiDb25UzWXW5PqWF/mPUoJT2CdrOZ9WGON 6C+wNiSIblVpeqlEplbXfbniVW9B0tA/X0gFGHRvjfRRvk/iFNP24f+xQ3ZYmdxpVAkF Edz3+NoLwm+dkFdlCLtkcVLkHuSF4hLf/jppc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=DWMKuEDrufbyeWl8ZH8YbkGeZ9z71zz/nQAhWhXdRZ/zhxcOsHCfKsIwHIq4J1fU21 WPwU5Evx3h/WikA3sRLONQ7vvQleHlsbYcHANCqsvcLK+tB9GyWchadiqVzlL1IsyMKH c0DaGVJyKqCrFpc0i/O8oEiV/SFhGLFuxoEpc= Received: by 10.103.222.12 with SMTP id z12mr464235muq.12.1219389277700; Fri, 22 Aug 2008 00:14:37 -0700 (PDT) Received: by 10.102.247.18 with HTTP; Fri, 22 Aug 2008 00:14:37 -0700 (PDT) Message-ID: <9196e72b0808220014k4b917a08pac2261af88007819@mail.gmail.com> Date: Fri, 22 Aug 2008 09:14:37 +0200 From: "Popof Popof" To: "Frank Helbert" , "FreeBSD Net" In-Reply-To: MIME-Version: 1.0 References: <9196e72b0808200613q4557b034t9ab3e80d0ff1ec08@mail.gmail.com> <20080821184404.GA46725@lor.one-eyed-alien.net> <48ADB8D0.4040705@elischer.org> <9196e72b0808211203j746196fdhc17a221e12e8f065@mail.gmail.com> 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: 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: Fri, 22 Aug 2008 07:14:39 -0000 Yes, i applied the modifications at the level of dhclient.conf 2008/8/21 Frank Helbert > Have you tried? > > interface "vlan0" { > #My options > } > interface "vlan1" { > #My options > } > > Thats the way you identify your vlan nics... > > Frank > > On Thu, Aug 21, 2008 at 4:03 PM, Popof Popof > wrote: > > 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. > > > > >