sytem_linux
2007-Aug-16 14:22 UTC
[Xen-users] Can''t get NAT access to internet from Dom U in my small network
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@lists.xensource.com
http://lists.xensource.com/xen-users
Seemingly Similar Threads
- domU NAT network cannot connect
- RE: Hotplug scripts not working... xen/ia64 domU stoppedworking
- Bug#639942: Xen "non-bridged traffic is not supported anymore" with bridges
- Xen3: Unable to start xenU with Intel Core Duo T2050
- peth1 not created on boot, now what?
