[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] network-nat/vif-nat question


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Andrew Pogrebennyk <andrew.nau.ua@xxxxxxxxx>
  • Date: Mon, 21 Aug 2006 18:56:56 +0300
  • Delivery-date: Tue, 22 Aug 2006 01:47:29 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; b=ieBMCLs5Jtz3skuIWY5QgWrQNuD4AxCQLPmB7B9VREbLSjb5rsX1XeAb161GY8siB5i4guDq2ZItE0uay07nuyPvuE5pl6QNMHLtGFsMP28wq9bVIwdr53DfHNa+xtXjoCK27P8dSd1NKPt2llh0XlnggggAcN8WTZYMX5QJlW4=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello,

After unsuccessful attempts to configure DomU to obtain IP address from
dhcpd on Dom0 listening on xenbr0 I have followed these instructions for
network configuration:
http://www.howtoforge.com/perfect_setup_xen3_debian_p6. I have Dom0
Debian Etch + DomU Debian Etch.

/etc/xen/xend-config.sxp has the following lines:
(network-script network-nat)
(vif-script     vif-nat)

And here is DomU configuration:
name="vm01"
kernel = "/boot/vmlinuz-2.6.16-2-xen-k7"
ramdisk = "/boot/initrd.img-2.6.16-2-xen-k7"
root="/dev/sda1"
memory=128
disk=['file:/xen/debian/vm01.img,sda1,w','file:/xen/debian/vm01-swap.img,sda2,w']
# network
vif = [ 'ip=10.0.0.1' ]
dhcp="off"
ip="10.0.0.1"
netmask="255.0.0.0"
gateway="10.0.0.254"
hostname="vm01.mydomain.com"
extra="3"

/etc/network/interfaces from DomU:
auto lo
iface lo inet loopback
        address 127.0.0.1
        netmask 255.0.0.0
auto eth0
iface eth0 inet static
        address 10.0.0.1
        netmask 255.0.0.0
        gateway 10.0.0.128
        hostname vm01.mydomain.com

I have made gateway="10.0.0.128" when I saw that vifX.0 is being
assigned this address during DomU startup. After DomU boots it can ping
DomO's public IP address, but not anything on Internet cause packets
flow to Internet with 10.0.0.1 source IP. This is same issue I have
suffered from trying to employ Dom0's dhcpd. What would you suggest?

Please CC to my private e-mail cause I am not subscribed to the list.
Thanks in advance.

-- 
Sincerely,

Andrew Pogrebennyk
PortaOne, Inc., Support Engineer
http://www.portaone.com/

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.