Results 1 to 5 of 5
-
03-07-2012, 10:58 PM #1Junior Guru
- Join Date
- May 2006
- Location
- Shanghai,China
- Posts
- 247
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
-
03-08-2012, 10:35 AM #2Junior Guru Wannabe
- 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
-
03-08-2012, 10:48 AM #3Junior Guru
- Join Date
- May 2006
- Location
- Shanghai,China
- Posts
- 247
-
03-08-2012, 02:00 PM #4Junior Guru Wannabe
- 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
-
03-08-2012, 08:44 PM #5Junior Guru
- Join Date
- May 2006
- Location
- Shanghai,China
- Posts
- 247
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
-
Setting up root server on hetzner
By DAWN1404 in forum Hosting Security and TechnologyReplies: 10Last Post: 02-21-2012, 04:06 PM -
setting up an exim route for single domain?
By XLT_Frank in forum Managed Hosting and ServicesReplies: 1Last Post: 01-11-2012, 09:25 PM -
Hetzner EQ-4 Server Problem
By benz1ne in forum Dedicated ServerReplies: 10Last Post: 08-30-2011, 01:59 PM -
[Hetzner] Problem with my server on first day use :(
By okitainda in forum Dedicated ServerReplies: 1Last Post: 01-23-2011, 04:42 AM -
Problem with hetzner Server
By darkoko in forum Dedicated ServerReplies: 5Last Post: 06-18-2010, 02:43 PM