Author Topic: Vlan problem after reboot [solved]  (Read 2418 times)

RainerB

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
Vlan problem after reboot [solved]
« 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
« Last Edit: August 23, 2012, 08:04:09 am by RainerB »

RainerB

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
Re: Vlan problem after reboot
« Reply #1 on: August 16, 2012, 02:48:55 pm »
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

RainerB

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
Re: Vlan problem after reboot
« Reply #2 on: August 23, 2012, 08:03:46 am »
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

christian

  • Guest
Re: Vlan problem after reboot [solved]
« Reply #3 on: August 23, 2012, 08:15:28 am »
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  ???

RainerB

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
Re: Vlan problem after reboot [solved]
« Reply #4 on: August 23, 2012, 03:44:46 pm »
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