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] Can't get NAT access to internet from Dom U in my small netw

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Can't get NAT access to internet from Dom U in my small network
From: sytem_linux <johan_k_480@xxxxxxxxxxx>
Date: Thu, 16 Aug 2007 07:22:41 -0700 (PDT)
Delivery-date: Fri, 17 Aug 2007 09:47:34 -0700
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
I have followed the nat advice from this guide:
http://wiki.kartbuilding.net/index.php/Xen_Networking#Routed_Networking_with_NAT_2

I have googled internet for weeks and read almost every thread in this forum
without getting a working NAT on my system.
My main question is how exactly will the  iptable rules with MASQUERADE or
POSTROUTING  look like if you want access to the internet from Dom U , Dom 0
and  computer 2.

My setup
Dom 0 #Host computer with internet access
Dom U # Virtual image Debian GNU/Linux 3.1 
computer 2 # Host computer with internet access only through Dom 0

xend-config.spx
(network-script network-nat)
(vif-script     vif-nat)


 vm01.cfg  
# Network
hostname = 'rush'
vif = ['ip=10.0.0.1']
dhcp = 'off'
ip = '10.0.0.1'
netmask = '255.255.255.255' #Is this the correct netmask ?
gateway = '10.0.0.254'

Dom U : /etc/network/interfaces

 # The primary network interface
 auto eth0
 iface eth0 inet static

address  10.0.0.1
netmask  255.255.255.0
gateway  10.0.0.254


ifconfig Dom 0
eth0   inet addr:239.324.35.24  Bcast:239.324.35.255  Mask:255.255.255.0        
eth1    inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0          
vif6.0    inet addr:10.0.0.128  Bcast:0.0.0.0  Mask:255.255.255.255

    
netstat -rn Dom 0
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
10.0.0.1        0.0.0.0         255.255.255.255 UH        0 0          0
vif6.0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
 239.324.35.0    0.0.0.0         255.255.255.0   U         0 0          0
eth0
 0.0.0.0        239.324.35.1       0.0.0.0         UG        0 0          0
eth0


ifconfig Dom U
eth0      inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0     
lo          inet addr:127.0.0.1  Mask:255.0.0.0
 
netstat -rn Dom U
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
10.0.0.0        0.0.0.0         255.255.255.0   U         0 0          0
eth0
0.0.0.0         10.0.0.254      0.0.0.0         UG        0 0          0
eth0

    

ps. Believe me  I have tried every tips  I have read about this, but they
where very advanced.I have tried with different netmasks without
success.Help would be deeply appreciated!


-- 
View this message in context: 
http://www.nabble.com/Can%27t-get-NAT-access-to-internet--from-Dom-U-in-my-small-network-tf4279964.html#a12182354
Sent from the Xen - User mailing list archive at Nabble.com.


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Can't get NAT access to internet from Dom U in my small network, sytem_linux <=