Date: Thu, 21 Aug 2008 21:03:53 +0200 From: "Popof Popof" <popofnewslists@gmail.com> To: "Julian Elischer" <julian@elischer.org> Cc: FreeBSD Net <freebsd-net@freebsd.org>, Brooks Davis <brooks@freebsd.org>, frankhelbert82@gmail.com Subject: Re: How to make two vlans on one interface working with dhclient Message-ID: <9196e72b0808211203j746196fdhc17a221e12e8f065@mail.gmail.com> In-Reply-To: <48ADB8D0.4040705@elischer.org> References: <9196e72b0808200613q4557b034t9ab3e80d0ff1ec08@mail.gmail.com> <20080821184404.GA46725@lor.one-eyed-alien.net> <48ADB8D0.4040705@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > 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?9196e72b0808211203j746196fdhc17a221e12e8f065>