View Single Post
  #1   (View Single Post)  
Old 4th March 2010
xiphias xiphias is offline
Port Guard
 
Join Date: May 2008
Posts: 31
Default bringing up vlan interfaces

Hi,

In rc.conf I have the following:

Code:
cloned_interfaces="... vlan0 vlan1 vlan2 ..." # I've removed some interfaces from here to avoid confusion
ifconfig_vr0="inet 0.0.0.0 up"
ifconfig_vlan0="vlan 999 vlandev vr0 dhcp"
ifconfig_vlan1="inet 172.16.1.1 netmask 255.255.255.0 vlan 1 vlandev vr0"
ifconfig_vlan2="inet 172.16.2.1 netmask 255.255.255.0 vlan 100 vlandev vr0"
vlan0 get's its ip by dhcp as expected, however vlan1 and vlan2 never get their static IPs assigned. They are created and configured with the correct vlan id/parent device, but the ip address is never assigned.

I have tried this variation:

Code:
ifconfig_vlan1="vlan 1 vlandev vr0 inet 172.16.1.1 netmask 255.255.255.0"
ifconfig_vlan2="vlan 100 vlandev vr0 inet 172.16.2.1 netmask 255.255.255.0"
but it makes no difference. Can anybody help?

thanks
Reply With Quote