Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Server is not responding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Sun Jun 04, 2006 5:48 pm    Post subject: [Solved] Server is not responding Reply with quote

Hi guys,

i have a network problem with my server.
After a reboot the server did not came back to the net.
Fortunalety my Prover offers a Rescue System through which i could log into my maschine
After looking through the logs and checking ifconfig (with cron) i came to the result that my maschine did work "correct"
The Server boots up correct and even becomes his ip, but he was still not responding.

The only difference between the ifconifg of the server and the rescue system on the server was the broadcast-address.
On the non responding Server it was 89.255.255.255 meanwhile the one of the rescue system was going 2 levels deeper. (e.g. 89.1.2.255)

Is this the reason why my Server is not responding and how can i fix this or could it be another problem.

If you miss some information, tell my which so i can try to add them to this topic.


Last edited by arcil on Wed Jul 05, 2006 4:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
quinn_jones
n00b
n00b


Joined: 14 Dec 2005
Posts: 50
Location: Wilmington, MA, US

PostPosted: Mon Jun 05, 2006 1:33 am    Post subject: Reply with quote

When you say that it isn't responding, do you mean that some service isn't working (like it doesn't serve web pages) or that there is nothing at that address, period? Can you ping the server?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jun 05, 2006 2:01 am    Post subject: Re: Server is not responding Reply with quote

Hi.
arcil wrote:
The only difference between the ifconifg of the server and the rescue system on the server was the broadcast-address.
On the non responding Server it was 89.255.255.255 meanwhile the one of the rescue system was going 2 levels deeper. (e.g. 89.1.2.255)

From your description, I assume you didn't set the proper netmask for your system. Your rescue system seems to have a /24 netmask, while you seem to be using an /8 mask.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Mon Jun 05, 2006 8:47 am    Post subject: Reply with quote

quinn_jones wrote:
When you say that it isn't responding, do you mean that some service isn't working (like it doesn't serve web pages) or that there is nothing at that address, period? Can you ping the server?
There is nothing at that address.

I looked through some of the options and noticed an differ in the route of my server and the rescue system:
Code:

rescuecd:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
217.20.117.0    0.0.0.0         255.255.255.240 U     0      0        0 eth0
89.149.194.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         217.20.117.1    0.0.0.0         UG    0      0        0 eth0


and this is the route of my server:
Code:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
89.149.194.0    *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo

The server does not reach the gateway at 217.20.117.1.
I was surprised, because i thought that i configured the net.

Here is my /etc/conf.d/net of the server via chroot:
Code:

rescuecd / # cat /etc/conf.d/net
config_eth0=(
        "89.149.194.82/24"
)
routes_eth0=(
        "-net 217.20.117.0/24 dev eth0"
        "default via 217.20.117.1"
)


Where and why is there a fault?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jun 05, 2006 11:52 am    Post subject: Reply with quote

arcil wrote:
Code:

217.20.117.0    0.0.0.0         255.255.255.240 U     0      0        0 eth0
89.149.194.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         217.20.117.1    0.0.0.0         UG    0      0        0 eth0

Code:

89.149.194.0    *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo

Try using the following
Code:

rescuecd / # cat /etc/conf.d/net
config_eth0=(
        "89.149.194.82/24"
        "217.20.177.*/28"
)
routes_eth0=(
        "-net 217.20.117.0/24 dev eth0"
        "default via 217.20.117.1"
)

You must set an ip for the 217.20.177 network. Look at ifconfig or ip addr.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Mon Jun 05, 2006 12:17 pm    Post subject: Reply with quote

The ifconfig of the rescue-system looks like this:
Code:

rescuecd:/mnt# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:02:A5:0A:A9:07 
          inet addr:89.149.194.82  Bcast:89.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::202:a5ff:fe0a:a907/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3878 errors:0 dropped:0 overruns:0 frame:0
          TX packets:157 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:244994 (239.2 KiB)  TX bytes:22711 (22.1 KiB)

although i addes "217.20.177.*/28" to the net config, but nothing changed.

besides the ifconfig of the non working server looks like this:
Code:

eth0      Link encap:Ethernet  HWaddr 00:02:A5:0A:A9:07 
          inet addr:89.149.194.82  Bcast:89.149.194.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13886 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:833416 (813.8 Kb)  TX bytes:42 (42.0 b)

\
the only differnce is in the bcast.

what could be the reason for the wrong routing server?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jun 05, 2006 3:09 pm    Post subject: Reply with quote

That seems a bit weird. Try using the following:
Code:
config_eth0=(
        "89.149.194.82/24"
        "217.20.177.14/28"
)
routes_eth0=(
        "default via 217.20.117.1"
)

If you don't have an 217.20.117.* address in your rescue-cd, how can you reach your gateway? Could you have a VPN connection?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Mon Jun 05, 2006 5:53 pm    Post subject: Reply with quote

i do not know how i reach the gateway,
unfourtunaly i am not very familiar with routing and net configuring.
It used to be simple, most times with an dhcp daemon, so I had no problems.

But this time it is weired.

It seems like your last suggestion did not help, oh damn.

If you tell me how I can check the routing in more detail I can do this, there is still the working rescue system
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Tue Jun 06, 2006 1:39 am    Post subject: Reply with quote

Well, post the output of the following:
Code:
# ifconfig -a
# traceroute forums.gentoo.org

If you have iproute2 on the rescue-cd, post also the output of the following:
Code:
# ip addr
# ip route

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Tue Jun 06, 2006 3:19 pm    Post subject: Reply with quote

Code:

rescuecd:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:02:A5:0A:A9:07 
          inet addr:89.149.194.82  Bcast:89.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::202:a5ff:fe0a:a907/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2859856 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:172651866 (164.6 MiB)  TX bytes:216098 (211.0 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sit0      Link encap:IPv6-in-IPv4 
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Code:
rescuecd:~# traceroute google.de
traceroute: Warning: google.de has multiple addresses; using 216.239.39.104
traceroute to google.de (216.239.39.104), 30 hops max, 38 byte packets
 1  fragw.gatewayrouter.net (84.16.224.1)  0.486 ms  0.387 ms  0.347 ms
 2  fragw1.gatewayrouter.net (217.20.117.10)  0.259 ms  0.336 ms  0.203 ms
 3  rtr-1.decix-germany.eweka.nl (80.81.192.224)  0.479 ms  0.486 ms  0.427 ms
 4  de-cix10.net.google.com (80.81.192.108)  0.620 ms  0.591 ms  0.585 ms
 5  72.14.233.104 (72.14.233.104)  9.620 ms  9.648 ms  9.586 ms
 6  72.14.236.220 (72.14.236.220)  81.724 ms  81.611 ms  81.709 ms
 7  72.14.236.212 (72.14.236.212)  81.468 ms  82.191 ms  81.638 ms
 8  66.249.94.235 (66.249.94.235)  87.583 ms  87.673 ms  87.397 ms
 9  72.14.232.106 (72.14.232.106)  88.044 ms  88.058 ms  100.070 ms
10  72.14.236.202 (72.14.236.202)  88.429 ms  88.405 ms 72.14.236.200 (72.14.236.200)  88.426 ms
11  66.249.94.245 (66.249.94.245)  88.324 ms 72.14.232.99 (72.14.232.99)  88.203 ms  87.997 ms
12  216.239.47.58 (216.239.47.58)  90.851 ms  89.865 ms 216.239.47.46 (216.239.47.46)  90.661 ms
13  216.239.39.104 (216.239.39.104)  88.326 ms  88.544 ms  88.077 ms


Code:

rescuecd:~# traceroute forums.gentoo.org
traceroute to forums.gentoo.org (140.211.166.170), 30 hops max, 38 byte packets
 1  fragw.gatewayrouter.net (84.16.224.1)  0.429 ms  0.407 ms  0.357 ms
 2  fragw1.gatewayrouter.net (217.20.117.10)  0.272 ms  0.209 ms  0.230 ms
 3  ge-1-1-0.415.ar1.FRA2.gblx.net (64.212.41.65)  0.966 ms  0.868 ms  0.918 ms
 4  so2-0-0-2488M.ar2.FRA3.gblx.net (67.17.65.58)  5.982 ms  0.929 ms  0.922 ms
 5  ge-6-11.car2.Frankfurt1.Level3.net (195.122.136.245)  0.978 ms  0.670 ms  0.778 ms
 6  ae-0-54.bbr2.Frankfurt1.Level3.net (4.68.118.98)  1.886 ms ae-0-52.bbr2.Frankfurt1.Level3.net (4.68.118.34)  0.751 ms ae-0-54.bbr2.Frankfurt1.Level3.net (4.68.118.98)  2.482 ms
 7  ae-0-0.mp1.Seattle1.Level3.net (209.247.9.121)  153.429 ms as-1-0.mp2.Seattle1.Level3.net (209.247.10.133)  154.390 ms ae-0-0.mp1.Seattle1.Level3.net (209.247.9.121)  153.916 ms
 8  ge-11-2.hsa2.Seattle1.Level3.net (4.68.105.167)  153.660 ms ge-10-1.hsa2.Seattle1.Level3.net (4.68.105.71)  154.368 ms ge-11-1.hsa2.Seattle1.Level3.net (4.68.105.103)  154.262 ms
 9  nero-gw.Level3.net (63.211.200.246)  159.279 ms  157.682 ms  157.193 ms
10  corv-car1-gw.nero.net (207.98.64.177)  158.637 ms  158.225 ms  158.945 ms
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Wed Jun 07, 2006 3:16 am    Post subject: Reply with quote

There's some puzzling info in the following:
arcil wrote:
Code:

rescuecd:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:02:A5:0A:A9:07 
          inet addr:89.149.194.82  Bcast:89.255.255.255  Mask:255.255.255.0

Code:
rescuecd:~# traceroute google.de
traceroute: Warning: google.de has multiple addresses; using 216.239.39.104
traceroute to google.de (216.239.39.104), 30 hops max, 38 byte packets
 1  fragw.gatewayrouter.net (84.16.224.1)  0.486 ms  0.387 ms  0.347 ms


Although you're in the 89.149.194.0 network, you're using 84.16.224.1 as your default router! That has nothing to do with the previous definition
Code:
routes_eth0=(
        "default via 217.20.117.1"
)

If you have the ip command please include the output of ip route. If not, the output of route -n.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Wed Jun 07, 2006 8:57 pm    Post subject: Reply with quote

oh i am so angry.... sorry..

i reinstalled the whole server, and it worked, even with all three ip adresses through the gateway i used at the beginning....
yeah it worked.... worked until i particulary updated the system
no reply from the server.... i dunno where the fault is.. i mean the config seems to be correct, because it routed once correct. once before update, could one of the updated ebuild or one of the replaced configs be the error?
i made a backup of the /etc dir before using etc-update, also i did not update a lot of ebuild (in detail all dependencies belonging to gcc and module-init-tools)
perhaps i will undo this updates to see where the fault is in detail.

is it possible to make a more detail log of the eth0 device including the routing
84.16.224.1 as the gateway does not work :(

oh this thing is so damn frustrating

the route:
Code:

rescuecd:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
217.20.117.0    0.0.0.0         255.255.255.240 U     0      0        0 eth0
89.149.194.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         217.20.117.1    0.0.0.0         UG    0      0        0 eth
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Thu Jun 08, 2006 2:02 am    Post subject: Reply with quote

Please post your complete /etc/conf.d/net file again.
arcil wrote:

the route:
Code:

rescuecd:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
217.20.117.0    0.0.0.0         255.255.255.240 U     0      0        0 eth0
89.149.194.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         217.20.117.1    0.0.0.0         UG    0      0        0 eth

I still don't understand why and how you have two network addresses on eth0.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Thu Jun 08, 2006 9:45 am    Post subject: Reply with quote

ifconfig from the server before the update
Code:
eth0      Link encap:Ethernet  HWaddr 00:02:A5:0A:A9:07
          inet addr:89.149.194.82  Bcast:89.149.194.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:726306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2077 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:44515849 (42.4 Mb)  TX bytes:354503 (346.1 Kb)

eth0:1    Link encap:Ethernet  HWaddr 00:02:A5:0A:A9:07
          inet addr:89.149.196.68  Bcast:89.149.196.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0:2    Link encap:Ethernet  HWaddr 00:02:A5:0A:A9:07
          inet addr:89.149.196.69  Bcast:89.149.196.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Code:

rescuecd / # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

config_eth0=(
        "89.149.194.82/24"
        "89.149.196.68/24"
        "89.149.196.69/24"
)
routes_eth0=(
        "-net 217.20.117.0/24 dev eth0"
        "default via 84.16.224.1"
)

the default was previously 217.... i checked it with both
Code:

routes_eth0=(
        "-net 217.20.117.0/24 dev eth0"
        "default via 217.20.117.1"
)


--added code of the previous setting
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Thu Jun 08, 2006 10:44 am    Post subject: Reply with quote

writing back the backup of /etc before etc-update did not help either, so it is not a config files fault.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Thu Jun 08, 2006 11:25 am    Post subject: Reply with quote

Hmm, are you certain about your host and gateway IP addresses? Have you verified that with your provider?
arcil wrote:
ifconfig from the server before the update
Code:

rescuecd / # cat /etc/conf.d/net
config_eth0=(
        "89.149.194.82/24"
        "89.149.196.68/24"
        "89.149.196.69/24"
)
routes_eth0=(
        "-net 217.20.117.0/24 dev eth0"
        "default via 84.16.224.1"
)

the default was previously 217.... i checked it with both
Code:

routes_eth0=(
        "-net 217.20.117.0/24 dev eth0"
        "default via 217.20.117.1"
)


As long as you try to use a default gateway that lies outside the network address of your nics, I don't see how you can reach it. Do you really need to use those 3 IP addresses with the server? Most importantly do you need to use the 89.149.196.68 and 89.149.196.69 addresses? Having 2 IP addresses on the same range can cause problems.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
arcil
n00b
n00b


Joined: 05 Mar 2006
Posts: 10

PostPosted: Wed Jul 05, 2006 4:42 pm    Post subject: Reply with quote

the problem is solved, i talked to the support and they checked the server.
a defect ram module caused problems,

this is very annoying, because i spent 3 weeks for nothing.

by the way: does anybody know a tool which can check the hardware of the whole computer (hard-discs, ram, etc)

and thanks to all you guys for helping me with this issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum