Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: RainerB on August 15, 2012, 09:27:35 am
-
Hi,
my server (2.2.7) has 2 ethernet interfaces. Eth0 ist used as external interface and eth1 uses the method vlan.
I defined four vlans 10 ... 13. Vlan11 ...13 have a static IP adress and vlan10 uses the method "bridged" with br1.
Br1 has a static ip adress and is used for connecting the virtal maschines.
Everything works fine until i reboot the server. All interfaces are up except vlan10 (ifconfig).
When i enter "sudo ifup vlan10" on the console i can ping the printer after a few seconds.
The logfiles doesn't show any error messages concering networks stuff.
Below i have attached the file /etc/network/interfaces witch i haven't changed by myself.
Thanks for any hint
Rainer
auto lo br1 eth0 vlan11 vlan12 vlan13
iface lo inet loopback
iface br1 inet static
address 192.168.99.1
netmask 255.255.255.0
broadcast 192.168.99.255
bridge_ports vlan10
bridge_stp off
bridge_waitport 5
iface eth0 inet static
address 192.168.98.2
netmask 255.255.255.0
broadcast 192.168.98.255
iface vlan10 inet manual
vlan-raw-device eth1
iface vlan11 inet static
vlan-raw-device eth1
address 192.168.100.1
netmask 255.255.255.0
broadcast 192.168.100.255
iface vlan12 inet static
vlan-raw-device eth1
address 10.0.0.1
netmask 255.255.0.0
broadcast 10.0.255.255
iface vlan13 inet static
vlan-raw-device eth1
address 10.0.1.0
netmask 255.255.0.0
broadcast 10.0.255.255
-
The reason for this problem could be a fault /etc/networks/interfaces. (See my first post)
The bridge ist started first althought vlan10 isn't up.
I want to change sequenzen but unfortunately /etc/networks/interfaces seems to be recreated during reboot.
Rainer
-
i creates a script /etc/zentyal/hooks/network.postservice with the content ifup vlan10.
That doesn't not really solve the problem but fixes it for me.
Rainer
-
You're right thinking that "interfaces" is rebuilt at each reboot. This is how Zentyal works BTW. It has some drawbacks but some added values too ;)
You're also right when using hook to fix it ;D
What you describe looks like a kind of bug isn't it? If yes, why not creating ticket so that Zentyal team can fix it in some next release ???
-
You are right. I have done this in the meantime.
First i want to spend some more time with checking ubuntu to be sure that my configuration is buggy but than i found my fix.
Rainer