[gelöst] no ping to Gateway

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
oib
Beiträge: 12
Registriert: 18.08.2006 12:28:30
Wohnort: Wien

[gelöst] no ping to Gateway

Beitrag von oib » 11.11.2007 18:09:27

Hallo,

ich konfiguriere einen Server mit mehreren ips auf einer eth
seit kurzem habe ich folgende probleme

- Gateway vom Rootserver nicht anpingbar,
jedoch ist eine ssh/sftp verbindung nach einer minute möglich
bei den vserver eth0:1 bis eth0:4 funkt alles
arp auf den gw vom rootserver funkt auch

Code: Alles auswählen

# arp xxx.XXX.xxx.73
Address                  HWtype  HWaddress           Flags Mask            Iface
xxx.XXX.xxx.73             ether   00:02:85:0E:BC:40   C                     eth0

Code: Alles auswählen

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address xxx.XXX.xxx.72
broadcast xxx.XXX.xxx.79
netmask 255.255.255.248
gateway xxx.XXX.xxx.73

auto eth0:0
iface eth0:0 inet static
address xxx.XXX.xxx.74
netmask 255.255.255.248

auto eth0:1
iface eth0:1 inet static
address xxx.XXX.xxx.75
netmask 255.255.255.248

auto eth0:2
iface eth0:2 inet static
address xxx.XXX.xxx.76
netmask 255.255.255.248

auto eth0:3
iface eth0:3 inet static
address xxx.XXX.xxx.77
netmask 255.255.255.248

auto eth0:4
iface eth0:4 inet static
address xxx.XXX.xxx.78
netmask 255.255.255.248

# default route to access subnet
up route add -net xxx.XXX.xxx.72 netmask 255.255.255.248 gw xxx.XXX.xxx.73 eth0

Code: Alles auswählen

# /etc/init.d/networking restart
Reconfiguring network interfaces...SIOCSIFFLAGS: Cannot assign requested address
Failed to bring up eth0:2.
done.

Code: Alles auswählen

# ping xxx.XXX.xxx.73
PING xxx.XXX.xxx.73 (xxx.XXX.xxx.73) 56(84) bytes of data.

--- xxx.XXX.xxx.73 ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 4999ms

Code: Alles auswählen

# vserver vs3 enter
vs3:/# ping xxx.XXX.xxx.73
PING xxx.XXX.xxx.73 (xxx.XXX.xxx.73) 56(84) bytes of data.
64 bytes from xxx.XXX.xxx.73: icmp_seq=1 ttl=255 time=180 ms
64 bytes from xxx.XXX.xxx.73: icmp_seq=2 ttl=255 time=0.272 ms
64 bytes from xxx.XXX.xxx.73: icmp_seq=3 ttl=255 time=0.310 ms
64 bytes from xxx.XXX.xxx.73: icmp_seq=4 ttl=255 time=0.283 ms

--- xxx.XXX.xxx.73 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 0.272/45.298/180.328/77.959 ms

Code: Alles auswählen

# ping xxx.XXX.xxx.76
PING xxx.XXX.xxx.76 (xxx.XXX.xxx.76) 56(84) bytes of data.
64 bytes from xxx.XXX.xxx.76: icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from xxx.XXX.xxx.76: icmp_seq=2 ttl=64 time=0.026 ms
64 bytes from xxx.XXX.xxx.76: icmp_seq=3 ttl=64 time=0.019 ms

--- xxx.XXX.xxx.76 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.019/0.027/0.036/0.007 ms

Code: Alles auswählen

# route -n 
Kernel IP routing table 
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 
xxx.XXX.xxx.72    xxx.XXX.xxx.73    255.255.255.248 UG    0      0        0 eth0 
xxx.XXX.xxx.72    0.0.0.0         255.255.255.248 U     0      0        0 eth0 
0.0.0.0         xxx.XXX.xxx.73    0.0.0.0         UG    0      0        0 eth0

Code: Alles auswählen

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:DB:F8:C7:59
          inet addr:xxx.XXX.xxx.72  Bcast:xxx.XXX.xxx.79  Mask:255.255.255.248
          inet6 addr: fe80::219:dbff:fef8:c759/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12566095 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7725691 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16445944708 (15.3 GiB)  TX bytes:1513545113 (1.4 GiB)
          Interrupt:217 Base address:0xc000

eth0:0    Link encap:Ethernet  HWaddr 00:19:DB:F8:C7:59
          inet addr:xxx.XXX.xxx.74  Bcast:xxx.XXX.xxx.79  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:217 Base address:0xc000

eth0:1    Link encap:Ethernet  HWaddr 00:19:DB:F8:C7:59
          inet addr:xxx.XXX.xxx.75  Bcast:xxx.XXX.xxx.79  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:217 Base address:0xc000

eth0:3    Link encap:Ethernet  HWaddr 00:19:DB:F8:C7:59
          inet addr:xxx.XXX.xxx.77  Bcast:xxx.XXX.xxx.79  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:217 Base address:0xc000

eth0:4    Link encap:Ethernet  HWaddr 00:19:DB:F8:C7:59
          inet addr:xxx.XXX.xxx.78  Bcast:xxx.XXX.xxx.79  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:217 Base address:0xc000

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:147474 errors:0 dropped:0 overruns:0 frame:0
          TX packets:147474 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17063818 (16.2 MiB)  TX bytes:17063818 (16.2 MiB)



dieses problem entstand nach dem ich meinen serverhouser darüber informiert hatte, daß ich nicht alle ips auf längere zeit hochfahren kann
also ifup eth0:1 bis 4
und nach 5 minuten waren nur mehr eth0, eth0:0 und th0:1
mit der xxx.XXX.xxx.76 hats was

nach der supportanfrage wurde meine ssh connection zum rootserver unterbrochen.
ich konnte mich dann über eine der vserver ips zum rootserver verbinden
nach einem /etc/init.d/networking restart war die rootserver ip xxx.XXX.xxx.74 wieder da

freu mich auf Tips und Trix

MfG
Andreas
Zuletzt geändert von oib am 12.11.2007 09:01:57, insgesamt 1-mal geändert.

oib
Beiträge: 12
Registriert: 18.08.2006 12:28:30
Wohnort: Wien

gelöst

Beitrag von oib » 12.11.2007 08:59:59

die .72 IP Subnetz und .73 Gateway sind fuer den Router, 74-78 sind die
verwendbaren adressen.

Code: Alles auswählen

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address xxx.XXX.xxx.74
broadcast xxx.XXX.xxx.79
netmask 255.255.255.248
gateway xxx.XXX.xxx.73

# default route to access subnet
up route add -net xxx.XXX.xxx.72 netmask 255.255.255.248 gw xxx.XXX.xxx.73 eth0

Code: Alles auswählen

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:DB:F8:C7:59
          inet addr:xxx.XXX.xxx.74  Bcast:xxx.XXX.xxx.79  Mask:255.255.255.248
          inet6 addr: fe80::219:dbff:fef8:c759/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12601704 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7784637 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16448877617 (15.3 GiB)  TX bytes:1552049834 (1.4 GiB)
          Interrupt:217 Base address:0xc000

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:186693 errors:0 dropped:0 overruns:0 frame:0
          TX packets:186693 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:21559276 (20.5 MiB)  TX bytes:21559276 (20.5 MiB)

Code: Alles auswählen

ping 78.47.153.73
PING 78.47.153.73 (78.47.153.73) 56(84) bytes of data.
64 bytes from 78.47.153.73: icmp_seq=1 ttl=255 time=0.419 ms
64 bytes from 78.47.153.73: icmp_seq=2 ttl=255 time=0.288 ms
64 bytes from 78.47.153.73: icmp_seq=3 ttl=255 time=0.303 ms

--- 78.47.153.73 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.288/0.336/0.419/0.062 ms

Code: Alles auswählen

ping www.chello.at
PING www.chello.at (213.46.242.72) 56(84) bytes of data.
64 bytes from www.chello.nl (213.46.242.72): icmp_seq=1 ttl=247 time=12.4 ms
64 bytes from www.chello.nl (213.46.242.72): icmp_seq=2 ttl=247 time=12.0 ms
64 bytes from www.chello.nl (213.46.242.72): icmp_seq=3 ttl=247 time=12.4 ms

--- www.chello.at ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 12.064/12.332/12.479/0.229 ms
und die vserver laufen auch :wink:

Antworten