Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2014 19:48:56 +0300
From:      Vladislav Prodan <universite@ukr.net>
To:        Paul Blockhaus <paul@mueller-blockhaus.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: vlan address-aliassing not working
Message-ID:  <1406825080.567617631.8yxkvawh@frv35.fwdcdn.com>
In-Reply-To: <20140731123414.388112e1@paul-pc.mbnet.de>
References:  <20140731123414.388112e1@paul-pc.mbnet.de>

next in thread | previous in thread | raw e-mail | index | archive | help


 
 --- Original message ---
 From: "Paul Blockhaus" <paul@mueller-blockhaus.de>
 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
 



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