Netzwerkproblem (network-route) bei serverloft
Posted: 2008-11-03 08:20
Ich richte mich an die Leute, die diese Problematik kennen. Diese Vorgehensweise hier habe ich aus dem Hetzner Dokus, leider kann man das offensichtlich nicht 1:1 auf serverloft Servern anwenden. Ich kann immerhin zwischen dom0 und domU hin und her pingen, komme aber nicht raus. Sieht hier jemand einen Fehler?
dom0 und domU sind beide Ubuntu 8.04 LTS AMD64
meine IPs
/etc/xen/xend-config.sxp
/etc/xen/scripts/network-route
/etc/xen/scripts/vif-common.sh in geändert
dom0
domU
dom0 und domU sind beide Ubuntu 8.04 LTS AMD64
meine IPs
Code: Select all
IP: 85.25.120.10x
Gateway:: 85.25.120.65
Netmask: 255.255.255.192
Broadcast: 85.25.120.127
zusätzliche IP
• IP: 85.25.122.23y
Netmask: 255.255.255.128
Broadcast: 85.25.122.255/etc/xen/xend-config.sxp
Code: Select all
(network-script network-route)
(vif-script vif-route)Code: Select all
vif = [ 'ip=85.25.122.23y' ]/etc/xen/scripts/network-route
Code: Select all
echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 >/proc/sys/net/ipv4/conf/default/proxy_arp
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo 1 >/proc/sys/net/ipv4/conf/all/rp_filter/etc/xen/scripts/vif-common.sh
Code: Select all
ip addr show "$1" | awk "/^.*inet.*$1$/{print $2}" | sed -n '1 s,/.*,,p'Code: Select all
ip -4 -o addr show primary dev $1 | awk '$3 == "inet" {print $4; exit}' | sed 's!/.*!!'dom0
Code: Select all
auto eth0
iface eth0 inet static
address 85.25.120.10x
netmask 255.255.255.255
gateway 85.25.120.65
pointopoint 85.25.120.65
eth0 Link encap:Ethernet HWaddr 00:40:d0:bf:e6:33
inet addr:85.25.120.10x Bcast:85.255.255.255 Mask:255.255.255.255
vif1.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff
inet addr:85.25.120.10x Bcast:85.255.255.255 Mask:255.255.255.255
route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
85.25.120.65 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
85.25.122.23y 0.0.0.0 255.255.255.255 UH 0 0 0 vif1.0
0.0.0.0 85.25.120.65 0.0.0.0 UG 100 0 0 eth0
iptables -L -n
target prot opt source destination
ACCEPT all -- 85.25.122.23y 0.0.0.0/0 PHYSDEV match --physdev-in vif1.0
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-in vif1.0 udp spt:68 dpt:67
PING 85.25.122.23x (85.25.122.23x) 56(84) bytes of data.
64 bytes from 85.25.122.23x: icmp_seq=1 ttl=64 time=0.039 msdomU
Code: Select all
eth0 Link encap:Ethernet HWaddr 00:16:3e:38:f2:a5
inet addr:85.25.122.23y Bcast:85.255.255.255 Mask:255.255.255.255
inet6 addr: fe80::216:3eff:fe38:f2a5/64 Scope:Link
iface eth0 inet static
address 85.25.122.23y
gateway 85.25.120.10x
netmask 255.255.255.255
pointopoint 85.25.120.10x
post-up ethtool -K eth0 tx off
route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
85.25.122.23x 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
0.0.0.0 85.25.122.23x 0.0.0.0 UG 100 0 0 eth0
PING 85.25.120.10x (85.25.120.10x) 56(84) bytes of data.
64 bytes from 85.25.120.10x: icmp_seq=1 ttl=64 time=0.316 ms
root@blub:~# ping 85.25.120.65
PING 85.25.120.65 (85.25.120.65) 56(84) bytes of data.
-->> nix