I installed windows XP in qemu (OpenSuse11.1 is my base system). It shows a
ethernet card and ipconfig returns this:

IP address : 10.0.2.15
subnet : 255.255.255.0
default gateway : 10.0.2.2

While in my base system ifconfig returns this:

eth0      Link encap:Ethernet  HWaddr 00:1D:72:63:A6:12
          inet addr:10.5.50.108  Bcast:10.5.50.255  Mask:255.255.255.0
          inet6 addr: fe80::21d:72ff:fe63:a612/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1363336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1487426 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1106391212 (1055.1 Mb)  TX bytes:662039179 (631.3 Mb)
          Interrupt:17 Base address:0xa000

The 10.0.2.2 (default gateway for windows xp) is my base system. So I think
it is working using NAT.

I can ping my base system from the virtual machine using 10.0.2.2. I tried
putty and it worked. But I am unable to ping to virtual machine from my base
system.

Is there a way that it directly connects to the main connection and not
through a NAT? As if another computer (virtual machine) were connected to
the switch?

Thanks & regards

ST

Reply via email to