Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2008 09:14:37 +0200
From:      "Popof Popof" <popofnewslists@gmail.com>
To:        "Frank Helbert" <frankhelbert82@gmail.com>,  "FreeBSD Net" <freebsd-net@freebsd.org>
Subject:   Re: How to make two vlans on one interface working with dhclient
Message-ID:  <9196e72b0808220014k4b917a08pac2261af88007819@mail.gmail.com>
In-Reply-To: <ba76e8ed0808211301h820741ek4983939ce27a2f4f@mail.gmail.com>
References:  <9196e72b0808200613q4557b034t9ab3e80d0ff1ec08@mail.gmail.com> <20080821184404.GA46725@lor.one-eyed-alien.net> <48ADB8D0.4040705@elischer.org> <9196e72b0808211203j746196fdhc17a221e12e8f065@mail.gmail.com> <ba76e8ed0808211301h820741ek4983939ce27a2f4f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Yes, i applied the modifications at the level of dhclient.conf

2008/8/21 Frank Helbert <frankhelbert82@gmail.com>

> 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 <popofnewslists@gmail.com>
> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> >         options=8<VLAN_MTU>
> >         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<UP,LOOPBACK,RUNNING,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<http://people.freebsd.org/%7Earved/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.
> >
> >
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9196e72b0808220014k4b917a08pac2261af88007819>