From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 16:49:09 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AE5E5AD4 for ; Thu, 31 Jul 2014 16:49:09 +0000 (UTC) Received: from frv198.fwdcdn.com (frv198.fwdcdn.com [212.42.77.198]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6798328D8 for ; Thu, 31 Jul 2014 16:49:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Cc:To:Subject:From:Date; bh=hyJ+ZenPZXmpge+MXJ8QI4Se7Di2MIKR6b6C8DdqKPA=; b=jCUrk4xRYGX57WvbWB/Y9bkRlLaQfo9qBIQ09le5sAEK+BrgHIIcoPGz9av746mQqTlU0DMb6C8n/N4rbnBB4lec080p5IrMYHyn3WBbIKp3g2ee4bLeIqKts4GH3zAdaZ+ZlcVEAxaDQoJKv4jdi685MLikH8cIS7zpvAqS8As=; Received: from [10.10.10.35] (helo=frv35.fwdcdn.com) by frv198.fwdcdn.com with smtp ID 1XCtXF-000A1a-Fi for freebsd-questions@freebsd.org; Thu, 31 Jul 2014 19:48:57 +0300 Date: Thu, 31 Jul 2014 19:48:56 +0300 From: Vladislav Prodan Subject: Re: vlan address-aliassing not working To: Paul Blockhaus X-Mailer: mail.ukr.net 5.0 Message-Id: <1406825080.567617631.8yxkvawh@frv35.fwdcdn.com> In-Reply-To: <20140731123414.388112e1@paul-pc.mbnet.de> References: <20140731123414.388112e1@paul-pc.mbnet.de> MIME-Version: 1.0 Received: from universite@ukr.net by frv35.fwdcdn.com; Thu, 31 Jul 2014 19:48:57 +0300 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary Content-Disposition: inline Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 16:49:09 -0000 --- Original message --- From: "Paul Blockhaus" Date: 31 July 2014, 13:35:18 > Hello Guys, > > recently I set up ezjail on my UTM and made aliasses for my vlan, so > far no problems, but after reboot the aliases for the vlans hasn't been > recreated, only for the physical non-vlan NICs. > Any Ideas why the aliases weren't created, is it my mistake? > > Greetings Paul > > my /etc/rc.conf: ... > ifconfig_em0="inet 192.168.1.1 netmask 255.255.255.0" > vlans_em0="50 150" > ifconfig_em0_50="inet 192.168.2.1 netmask 255.255.255.0" > ifconfig_em0_150="inet 192.168.6.1 netmask 255.255.255.0" ... > ifconfig_em0_alias0="inet 192.168.1.2 netmask 255.255.255.0" > ifconfig_em0.50_alias0="inet 192.168.2.3 netmask 255.255.255.0" > ifconfig_em0_150_alias0="inet 192.168.6.2 netmask 255.255.255.0" Use the following settings: cloned_interfaces="vlan50 vlan150" ifconfig_vlan50="inet 192.168.2.1/24 vlan 50 vlandev em0 mtu 1500 up" ifconfig_vlan150="inet 192.168.6.1/24 vlan 150 vlandev em0 mtu 1500 up" ifconfig_em0_alias0="inet 192.168.1.2/24" ifconfig_vlan50_alias0="inet 192.168.2.3/24" ifconfig_vlan150_alias0="inet 192.168.6.2/24" -- Vladislav V. Prodan System & Network Administrator support.od.ua