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

[Xen-users] domU NAT network cannot connect



Hi,

I followed this guide, and started myÂxend service with nat-network support:
(network-script network-nat)
(vif-script   vif-nat)
Then I started my domU with the following vif configure:
vif = ['ip=10.0.0.1' ]

my domU is a win7 system, and I configured the network as:
ip: 10.0.0.1
netmask: 255.255.255.0
default gateway: 10.0.0.254

dns: 8.8.8.8

I added the iptables NAT rule:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
But my domU still cannot connect to the network.

On my dom0, "ifconfig -a" returns as follow: (note: I started the vif8.0 IF by manual)

eth0: flags=4098<BROADCAST,MULTICAST> Âmtu 1500
    ether 00:1e:37:d2:2b:da Âtxqueuelen 1000 Â(Ethernet)
    RX packets 0 Âbytes 0 (0.0 B)
    RX errors 0 Âdropped 0 Âoverruns 0 Âframe 0
    TX packets 0 Âbytes 0 (0.0 B)
    TX errors 0 Âdropped 0 overruns 0 Âcarrier 0 Âcollisions 0
    device interrupt 20 Âmemory 0xfe200000-fe220000 Â

lo: flags=73<UP,LOOPBACK,RUNNING> Âmtu 16436
    inet 127.0.0.1 Ânetmask 255.0.0.0
    inet6 ::1 Âprefixlen 128 Âscopeid 0x10<host>
    loop Âtxqueuelen 0 Â(Local Loopback)
    RX packets 76637 Âbytes 513836706 (490.0 MiB)
    RX errors 0 Âdropped 0 Âoverruns 0 Âframe 0
    TX packets 76637 Âbytes 513836706 (490.0 MiB)
    TX errors 0 Âdropped 0 overruns 0 Âcarrier 0 Âcollisions 0

tap8.0: flags=4098<BROADCAST,MULTICAST> Âmtu 1500
    ether 3e:9b:52:95:03:d3 Âtxqueuelen 500 Â(Ethernet)
    RX packets 2722 Âbytes 239183 (233.5 KiB)
    RX errors 0 Âdropped 0 Âoverruns 0 Âframe 0
    TX packets 0 Âbytes 0 (0.0 B)
    TX errors 0 Âdropped 0 overruns 0 Âcarrier 0 Âcollisions 0

vif8.0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> Âmtu 1500
    inet 10.0.0.128 Ânetmask 255.255.255.255 Âbroadcast 0.0.0.0
    ether fe:ff:ff:ff:ff:ff Âtxqueuelen 32 Â(Ethernet)
    RX packets 0 Âbytes 0 (0.0 B)
    RX errors 0 Âdropped 0 Âoverruns 0 Âframe 0
    TX packets 0 Âbytes 0 (0.0 B)
    TX errors 0 Âdropped 0 overruns 0 Âcarrier 0 Âcollisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> Âmtu 576
    inet 192.168.10.100 Ânetmask 255.255.255.0 Âbroadcast 255.255.255.255
    ether 00:1f:3c:27:e6:0c Âtxqueuelen 1000 Â(Ethernet)
    RX packets 11301 Âbytes 4467424 (4.2 MiB)
    RX errors 0 Âdropped 0 Âoverruns 0 Âframe 0
    TX packets 9829 Âbytes 1330447 (1.2 MiB)
    TX errors 0 Âdropped 0 overruns 0 Âcarrier 0 Âcollisions 0

I am new to xen, so I might have missed some settings. Please be kind to point out.

Thank you.


--
Regardsï
David Shen

http://about.me/davidshen
https://twitter.com/#!/davidshen84
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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