Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Location
    Shanghai,China
    Posts
    247

    Unhappy problem setting up xen route for hetzner server

    Sorry for my poor english.
    I have an EX4 hetzner server,they don't allow bridge network so I can't setup xen for the simple way,& have to use xen route,but the vm's network always broken,not work,I have search google,but noway.here is what I do:

    following the 2 articles in hetzner wiki:
    http://wiki.hetzner.de/index.php/Xen_auf_Debian
    http://wiki.hetzner.de/index.php/Xen...lichem_Subnetz

    os:debian squeeze 6.0 x86_64
    xen:4.0.1
    ip subnet:x.y.z.0/28 (x.y.z.1~x.y.z.14)
    ip subnet mask:255.255.255.240

    1.add 1 ips from subnet to use as vm's gateway
    up ip addr add x.y.z.1/28 dev eth0

    2.set net.ipv4.ip_forward=1 in /etc/sysctl.conf and do sysctl -p.

    3.comment all bridge thing in /etc/xen/xend-config.sxp,add route thing
    #(vif-script vif-bridge)
    #(network-script network-bridge)
    (network-script network-route)
    (vif-script vif-route)

    4.vm's network setting for centos 6.2 x86_64

    DEVICE=eth0
    BOOTPROTO=none
    ONBOOT=yes
    TYPE=Ethernet
    IPADDR=x.y.z.2
    NETMASK=255.255.255.240
    GATEWAY=x.y.z.1
    DNS1=8.8.8.8
    IPV6INIT=no
    USERCTL=no
    DNS2=8.8.4.4
    #HWADDR=00:16:3e:76:62:45

    after
    service network restart
    I ping 8.8.8.8

    [root@localhost ~]# ping 8.8.8.8
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    From 176.9.226.11 icmp_seq=2 Destination Host Unreachable
    From 176.9.226.11 icmp_seq=3 Destination Host Unreachable
    From 176.9.226.11 icmp_seq=4 Destination Host Unreachable


    I have no idea now how could I get it work.
    My Personal Sites:Oh !!!MIYU-GのDAYs
    http://www.1221.in
    MY LIFE IS COOL,SO IS MY VPS I WILL TELL YOU MORE ABOUT VPS

  2. #2
    Join Date
    Mar 2011
    Posts
    67
    I use this in domU

    iface eth0 inet static
    address x.y.z.i
    netmask 255.255.255.255
    up ip r r default dev eth0

    Then it will work without any explicit routing, the xen master does not even need to know if has the ipranges.
    It just needs ipv4 forwarding and xen-route

  3. #3
    Join Date
    May 2006
    Location
    Shanghai,China
    Posts
    247
    Thank you fo share your exp,but what is r r,is this the ip from subnet that set to host system as vm's gateway?
    Quote Originally Posted by primed View Post
    I use this in domU

    iface eth0 inet static
    address x.y.z.i
    netmask 255.255.255.255
    up ip r r default dev eth0

    Then it will work without any explicit routing, the xen master does not even need to know if has the ipranges.
    It just needs ipv4 forwarding and xen-route

  4. #4
    Join Date
    Mar 2011
    Posts
    67
    you only need to change x.y.z.i to the correct ip, "r r" is written as I pasted.

    I am not an expert, so I cant really tell you why it works, ie. why you dont need to enter any subnet information, I guess by doing it this way, internal traffic between the vms still gets routed by the master instead of going directly between the 2, but performance is good enough (you get "unlimited" network speeds between them)

    traceroute to demo (8..6), 30 hops max, 60 byte packets
    1 master (7..6) 0.044 ms 0.023 ms 0.022 ms
    2 static.--.49.46.78.clients.your-server.de (78.46.49.--) 1.022 ms 1.069 ms 1.094 ms

  5. #5
    Join Date
    May 2006
    Location
    Shanghai,China
    Posts
    247
    thank you,I have tested in my debian 6.0 domu,it's not work,after restart networking,I even can't find the eth0 and lo.
    Quote Originally Posted by primed View Post
    you only need to change x.y.z.i to the correct ip, "r r" is written as I pasted.

    I am not an expert, so I cant really tell you why it works, ie. why you dont need to enter any subnet information, I guess by doing it this way, internal traffic between the vms still gets routed by the master instead of going directly between the 2, but performance is good enough (you get "unlimited" network speeds between them)

    traceroute to demo (8..6), 30 hops max, 60 byte packets
    1 master (7..6) 0.044 ms 0.023 ms 0.022 ms
    2 static.--.49.46.78.clients.your-server.de (78.46.49.--) 1.022 ms 1.069 ms 1.094 ms
    My Personal Sites:Oh !!!MIYU-GのDAYs
    http://www.1221.in
    MY LIFE IS COOL,SO IS MY VPS I WILL TELL YOU MORE ABOUT VPS

Similar Threads

  1. Setting up root server on hetzner
    By DAWN1404 in forum Hosting Security and Technology
    Replies: 10
    Last Post: 02-21-2012, 04:06 PM
  2. setting up an exim route for single domain?
    By XLT_Frank in forum Managed Hosting and Services
    Replies: 1
    Last Post: 01-11-2012, 09:25 PM
  3. Hetzner EQ-4 Server Problem
    By benz1ne in forum Dedicated Server
    Replies: 10
    Last Post: 08-30-2011, 01:59 PM
  4. [Hetzner] Problem with my server on first day use :(
    By okitainda in forum Dedicated Server
    Replies: 1
    Last Post: 01-23-2011, 04:42 AM
  5. Problem with hetzner Server
    By darkoko in forum Dedicated Server
    Replies: 5
    Last Post: 06-18-2010, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •