Hello i success run windows 2003 server on debian lenny but i can''t configure network connection How to connect windows to network and ping from linux ? i have one public IP, which is why i use nat mode my xend-config.sxp ------------- (network-script network-nat) (vif-script vif-nat) (dom0-min-mem 196) (dom0-cpus 0) (vnc-listen ''0.0.0.0'') (vncpasswd ''secret'') my win.cfg ------------ device_model = ''/usr/lib64/xen-default/bin/qemu-dm'' kernel = ''/usr/lib64/xen-default/boot/hvmloader'' builder = ''hvm'' memory = 2048 name = ''winxp1'' vcpus=4 shadow_memory = 8 vif = [ ''type=ioemu, ip=192.168.7.11, mac=00:16:3e:00:00:13, bridge=eth0''] disk = [ ''file:/home/windows/disk.img,ioemu:hda,w'', ''file:/home/windows/en_win_srv_2003_r2_standard_with_sp2_cd1_X13-04790.iso,ioemu:hdd:cdrom,r'' ] boot = ''cd'' vnc = 1 vncconsole = 1 sdl = 0 vnclisten="0.0.0.0" acpi = 1 apic = 1 on_reboot = ''restart'' ifconfig .... vif5.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff inet addr:192.168.7.138 Bcast:0.0.0.0 Mask:255.255.255.255 inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:6 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) in windows vnc console i only ping 192.168.7.11 ip_forwarding is enable Lenny, 2.6.26-2-xen-amd64, Xen 3.2-1 Please help. -- Rafal M _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rafał Michalak
2010-Dec-16 11:56 UTC
Re: [Xen-users] xen in nat mode and windows, no network
> network-nat is a very specific network: > network 10.0.0.0 > gateway 10.0.0.254 > netmask 255.255.255.0 > > In your dom0, try and ping 10.0.0.254. If its alive, then there is no > doubt what you need to do. > > Make a static config inside your domU on the 10.0.0.0 network with the > same gateway.Nothing change, I try to reinstall win2003 and install new xp vif = [ ''type=ioemu, ip=10.0.0.11, mac=00:16:3e:00:00:13, bridge=eth0''] in windows set, 10.0.0.11, 255.255.255.0, 10.0.0.254 when i ping from linux with XEN ping 10.0.0.11 ----------- PING 10.0.0.11 (10.0.0.11) 56(84) bytes of data.>From 10.0.0.138 icmp_seq=1 Destination Host Unreachable >From 10.0.0.138 icmp_seq=2 Destination Host Unreachable >From 10.0.0.138 icmp_seq=3 Destination Host Unreachableroute -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.11 0.0.0.0 255.255.255.255 UH 0 0 0 vif13.0 everything looks good, where is the problem ? -- Pozdrawiam Rafal Michalak _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2010-Dec-17 05:47 UTC
Re: [Xen-users] xen in nat mode and windows, no network
On Thu, Dec 16, 2010 at 6:56 AM, Rafał Michalak <rafalak@gmail.com> wrote:>> network-nat is a very specific network: >> network 10.0.0.0 >> gateway 10.0.0.254 >> netmask 255.255.255.0 >> >> In your dom0, try and ping 10.0.0.254. If its alive, then there is no >> doubt what you need to do. >> >> Make a static config inside your domU on the 10.0.0.0 network with the >> same gateway. > Nothing change, > I try to reinstall win2003 and install new xp > > vif = [ ''type=ioemu, ip=10.0.0.11, mac=00:16:3e:00:00:13, bridge=eth0''] > > in windows set, 10.0.0.11, 255.255.255.0, 10.0.0.254 > > when i ping from linux with XEN > > ping 10.0.0.11 > ----------- > PING 10.0.0.11 (10.0.0.11) 56(84) bytes of data. > >From 10.0.0.138 icmp_seq=1 Destination Host Unreachable > >From 10.0.0.138 icmp_seq=2 Destination Host Unreachable > >From 10.0.0.138 icmp_seq=3 Destination Host Unreachable > > > route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 10.0.0.11 0.0.0.0 255.255.255.255 UH 0 0 0 vif13.0 > > everything looks good, where is the problem ?The problem could be the nat routing. Check the iptables rules in dom0 to make sure they make sense. You should also be able to trace the traffic with a tool like tcpdump on the bridge in dom0. Hope that helps. Thanks, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rafał Michalak
2010-Dec-17 10:26 UTC
Re: [Xen-users] xen in nat mode and windows, no network
> The problem could be the nat routing. Check the iptables rules in dom0 > to make sure they make sense. > You should also be able to trace the traffic with a tool like tcpdump > on the bridge in dom0. > > Hope that helps.# Generated by iptables-save v1.4.2 on Fri Dec 17 11:21:52 2010 *filter :INPUT ACCEPT [1203279:300263779] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1308754:819273979] -A FORWARD -s 10.0.0.11/32 -m physdev --physdev-in vif3.0 -j ACCEPT -A FORWARD -p udp -m physdev --physdev-in vif3.0 -m udp --sport 68 --dport 67 -j ACCEPT COMMIT # Completed on Fri Dec 17 11:21:52 2010 # Generated by iptables-save v1.4.2 on Fri Dec 17 11:21:52 2010 *nat :PREROUTING ACCEPT [36326:2062339] :POSTROUTING ACCEPT [29739:2156980] :OUTPUT ACCEPT [49638:3552371] -A POSTROUTING -o eth0 -j MASQUERADE -A POSTROUTING -o eth0 -j MASQUERADE -A POSTROUTING -o eth0 -j MASQUERADE COMMIT # Completed on Fri Dec 17 11:21:52 2010 windows don''t have connect to network, i can ping only 10.0.0.11 but can''t ping 10.0.0.254 (gateway) nas other IPs next problem is... when I don''t add bridge=eth0 in vif line (winxp01.cfg) i don''t have VNC open port thanks for help -- Pozdrawiam Rafal Michalak _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users