How to make two vlans on one interface working with dhclient

Popof Popof popofnewslists at gmail.com
Fri Aug 22 07:14:39 UTC 2008


Yes, i applied the modifications at the level of dhclient.conf

2008/8/21 Frank Helbert <frankhelbert82 at 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 at 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.
> >
> >
>


More information about the freebsd-net mailing list