Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: aleks1 on March 26, 2014, 11:34:13 am

Title: [SOLVED] After system update...network is unreachable!!
Post by: aleks1 on March 26, 2014, 11:34:13 am
Hello everybody,
i have a v.m. with Zentyal 3.2 and a  v.m. with XP pro (i have created this little virtual network for test on xenserver)... everything was working fine. with zentyal i could access to the dashbord and visit sites. And the xp machine was connected to internet through the zentyal...
But yesterday, after system updates (of zentyal), the network is unreachable..
network configuration of zentyal:
Code: [Select]
auto lo eth0 eth1

iface lo inet loopback

iface eth0 inet static
         address 192.168.10.199
         netmask 255.255.255.0
         broadcast 192.168.10.255

iface eth1 inet static
        address 192.168.20.1
        netmask 255.255.255.0
        broadcast 192.168.20.255
 
how can i solve this problem? :(
i don't know what can i do... :(
thanks in advance :)

Title: Re: After system update...network is unreachable!!
Post by: Zei on March 26, 2014, 11:54:53 am
Hello aleks1,

you should check the network configuration of your xenserver and review if this is a lack of connectivity or maybe a problem with DNS. From your initial post I cannot determinate it. Also, I will advise to review your network configuration through the zentyal GUI and even reconfigure it again and save changes. You can also check if you can ping to any external IP address like 8.8.8.8 or try to resolve any external domain like google.com
Title: Re: After system update...network is unreachable!!
Post by: aleks1 on March 26, 2014, 12:13:36 pm
thank you very much for the support zei! :) :) :)
Quote
you should check the network configuration of your xenserver and review if this is a lack of connectivity
the xenserver working fine.. :)
Quote
I will advise to review your network configuration through the zentyal GUI and even reconfigure it again and save changes
i think this too.. but i can't access to the GUI :( (waiting until zentyal is ready)
Quote
You can also check if you can ping to any external IP address like 8.8.8.8 or try to resolve any external domain like google.com
Code: [Select]
ping www.google.it
          unknown host
          ping 8.8.8.8
          network is unreachable
I'm desperate :(

i have tried  /etc/init.d/networking restart:

Code: [Select]
*(in red) Running /etc/init.d/networking restart is deprecated because it may  no enable again some interfaces
           * reconfiguring network interfaces...
            ssh stop/waiting
            ssh start/running process 9194
            RTNETLINK answers: file exist
            failed to bring up eth1.
                                                                                                                                        [ok]
some help? :(
Title: Re: After system update...network is unreachable!!
Post by: weißnix on March 26, 2014, 01:03:18 pm
pls follow
https://forum.zentyal.org/index.php/topic,21148.0.html
Title: Re: After system update...network is unreachable!!
Post by: aleks1 on March 26, 2014, 02:14:25 pm
pls follow
https://forum.zentyal.org/index.php/topic,21148.0.html
good work but i can't access to the internet... and so how can i update my zentyal? :)
Title: Re: After system update...network is unreachable!!
Post by: aleks1 on March 26, 2014, 02:39:29 pm
please can anyone help me?? :( :( :(
Title: Re: After system update...network is unreachable!!
Post by: weißnix on March 26, 2014, 03:02:14 pm
because Zentyal does not start, missing a dns and a gateway for the connection.
they must be entered by hand on the command line. (will be overwritten by the Zentyal Zentyal settings when started).
with the command line command I know myself unfortunately not.

translated by google;)
Title: Re: After system update...network is unreachable!!
Post by: aleks1 on March 26, 2014, 03:15:45 pm
Quote
because Zentyal does not start, missing a dns and a gateway for the connection.
oh and which dns and gateway can i add on my configuration? (see at the first post above) :)
Title: Re: After system update...network is unreachable!!
Post by: illunis on March 26, 2014, 03:46:03 pm
you could add the DNS of google 8.8.8.8 and for gateway you need the IP of your router or the device that you use to go out to the internet.
Title: Re: After system update...network is unreachable!!
Post by: aleks1 on March 26, 2014, 04:11:08 pm
Quote
[you could add the DNS of google 8.8.8.8 and for gateway you need the IP of your router or the device that you use to go out to the internet.
i do it... in the external interface
Code: [Select]
auto lo eth0 eth1

iface lo inet loopback

iface eth0 inet static
         address 192.168.10.199
         netmask 255.255.255.0
         broadcast 192.168.10.255
         gateway 192.168.10.1
         dns-nameserver 8.8.8.8

iface eth1 inet static
        address 192.168.20.1
        netmask 255.255.255.0
        broadcast 192.168.20.255

but the network still doesn't work!!!

i don't know how can i do to resolve this problem!!! :(
Title: Re: After system update...network is unreachable!!
Post by: half_life on March 26, 2014, 05:13:27 pm
Please type in sudo ifdown eth0 followed by a sudo ifup eth0.  If that doesn't work please post the results of ifconfig and the output route. 
Title: Re: After system update...network is unreachable!!
Post by: royceb on March 26, 2014, 06:44:24 pm
Amigo,

Try putting your dns settings in /etc/resolv.conf

nameserver 8.8.8.8

https://forum.zentyal.org/index.php/topic,21148.0.html
Title: Re: After system update...network is unreachable!!
Post by: aleks1 on March 27, 2014, 10:33:33 am
Please type in sudo ifdown eth0 followed by a sudo ifup eth0.  If that doesn't work please post the results of ifconfig and the output route.
thank you for the support half life! :)
I have tried ifdown/ifup eth0/eth1 without results...:(
but now with this configuration:
Code: [Select]
auto lo eth0 eth1

iface lo inet loopback

iface eth0 inet static
         address 192.168.10.199
         netmask 255.255.255.0
         broadcast 192.168.10.255
         gateway 192.168.10.1
iface eth1 inet static
        address 192.168.20.1
        netmask 255.255.255.0
        broadcast 192.168.20.255
I can ping 8.8.8.8 but i can't ping www.google.com (unknown host) and i can't access to the GUI :(
 there are your commands! :)
ifconfig and route in attachments :)
Title: Re: After system update...network is unreachable!!
Post by: StuartNaylor on March 27, 2014, 10:39:42 am
Just so we can see what zentyal is doing.

/etc/resolv.conf
/etc/hosts

Should give us the DNS and just check if zentyal is set up as static in hosts.

I think your network gets rewritten every time you reboot or do a /etc/init.d/zentyal network (networking?) restart god wish my bleeding memory was better.

With ubuntu I usually if a dns server is installed then the first dns is the server ip as bind should use its forwarder
Also usually include dns-search = [domain]

then hosts usually has a fqdn with the gateway ip

hostname fqdn

resolv.conf is automatic [gateway ip] the server nic that your clients use as a gateway

Code: [Select]
nameserver 192.168.1.1
nameserver 127.0.0.1
search foobar.com example.com

Title: Re: After system update...network is unreachable!!
Post by: aleks1 on March 27, 2014, 11:00:40 am
yessss!!!!
SOLVED!!
the solution is:
step 1
set your gateway ip in the external interface /etc/network/interfaces
step 2
make sure that the command /etc/init.d/networking restart working fine.. ( i have tried 4 times :) )
step 3
set in /etc/resolv.conf the line: nameserver 8.8.8.8
step 4
apt-get update/upgrade in order!
step 5
OMG everything is working fine! :)

so... i love you so much!! eheheehh :)  thanks to Zei,  weißnix, illunis, half_life, royceb,  StuartNaylor
thanks thanks thanks! :)