WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] NAT: network unreachable

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] NAT: network unreachable
From: PUCCETTI Armand <armand.puccetti@xxxxxx>
Date: Fri, 12 Jan 2007 15:40:46 +0100
Delivery-date: Fri, 12 Jan 2007 06:04:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20070103)
I am trying to configure properly a small network of XEN 3.0.3 domains, using NAT, in order to keep it a private subnet. This is connecting them all to the same virtual network (10.0.0.X) and dom0 acting
as a router to the company net which connects to the internet.

In order to do this:
- the host machine belongs to a company network and has 1 ethernet card, a static IP, gateway and DNS server.
- the domUs are Debian Sarge, compiled from source.

I configured:

1. xend-config

(network-script network-nat)
(vif-script     vif-nat)


2. First domU config:

name="vm5"
kernel="/boot/vmlinuz-2.6-xenU"
root="/dev/hda1"
memory=512
disk=['file:/boot/VM/vm5disk,hda1,w','file:/boot/VM/vm5swap,hda2,w']
vif=[ 'mac=A1:A1:A1:A1:A1:A1, vifname=vif_vm5, bridge=xenbr0' ]
dhcp="off"
ip="10.0.0.1"
netmask="255.0.0.0"
gateway="10.0.0.254"
hostname="vm5"
extra="3"

After boot, the above VM has a virtual eth0 adapter :

eth0 Link encap:Ethernet HWaddr A1:A1:A1:A1:A1:A1 inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
        inet6 addr: fe80::a3a1:a1ff:fea1:a1a1/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:0 errors:0 dropped:0 overruns:0 frame:0
        TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:0 (0.0 b)  TX bytes:440 (440.0 b)

but that does not ping dom0 nor any other domU:
$ ping <host machine>
connect: Network is unreachable

I understood from a Debian setup guide http://howtoforge.com/debian_sarge_xen_3.0.3_p5
that XEN configures the gateway and much other things itself.
Therefore, I have a few questions to XEN experts:

1- what is made automatically by XEN in such a case?
  - what are the values of the domU gateways ?
  - where is the router between my domains (ie its IP and config)?
  - what interfaces are created and configured by XEN?
    Indeed, I have some virtual network interfaces appearing, namely

veth0 Lien encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1
        Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
        TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:0
        Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)

veth1 Lien encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1
        Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
        TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:0
        Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)

vif_vm5 Lien encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet adr:10.0.1.128 Bcast:0.0.0.0 Masque:255.255.255.255
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        Packets reçus:7 erreurs:0 :0 overruns:0 frame:0
        TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 lg file transmission:0
        Octets reçus:412 (412.0 b) Octets transmis:0 (0.0 b)

  but who do not seem to function (according to xm top)
  - Do I have to setup some routes? The dom0 routing table is actually :

Destination Passerelle Genmask Indic Metric Ref Use Iface 10.0.1.1 * 255.255.255.255 UH 0 0 0 vif_vm5 localnet * 255.255.252.0 U 0 0 0 eth0 default sirtaki 0.0.0.0 UG 0 0 0 eth0

and the domU routing table is:
Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 * 255.0.0.0 U 0 0 0 eth0


2- Why don't the domUs recognise any manual config (in /etc{hosts, network/interfaces})?

thanks for any help.

Armand




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] NAT: network unreachable, PUCCETTI Armand <=