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

[Xen-users] XEN ip translation issue


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: hai feng li <lihaifeng1980@xxxxxxxxx>
  • Date: Fri, 7 Jan 2011 08:48:40 +1100
  • Delivery-date: Tue, 11 Jan 2011 02:25:42 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ODUIWFb7Krg0lqnmY/jXrW4bDFFxJV+kB1+UydSjAHT/zJfqOvcY8UnffELh4raQau jLPf2hpjVxHwl7C0PRaxT6Ga48YpbTGB4fyBAxmemDjwXqK6qRR6AjSsryccThKcr2+R K2XX/Bv6aPNM10PZo5LX/BIp9UNo9Q1Pz1qcY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi, All,

I am a new comer to Xen. I met similar issue mentioned in below link:
http://www.mail-archive.com/centos@xxxxxxxxxx/msg39805.html

After trying the command provided by Alan to set the MAC to the original one, my host machine can connect to the network. But my virtual machine still can not connect to the network. One of my colleague said the reason is that the ip address of the virtual machine is not translated rightly. The ip address of the virtual machine is 192.168.122.25 like below:
[root@vnet125 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3E:3F:61:75
          inet addr:192.168.122.25  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe3f:6175/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:48162 errors:0 dropped:0 overruns:0 frame:0
          TX packets:57709 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5544096 (5.2 MiB)  TX bytes:392594536 (374.4 MiB)

When I try to run "ping dirham" on the virtual machine, and tcpdump on dirham shows that the ip address is still 192.168.122.25, which should be the ip address of the host machine.
root@dirham:~# tcpdump ip proto \\icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
15:45:57.615963 IP 192.168.122.25 > dirham: ICMP echo request, id 7443, seq 1, length 64
15:45:58.624726 IP 192.168.122.25 > dirham: ICMP echo request, id 7443, seq 2, length 64
15:45:59.636707 IP 192.168.122.25 > dirham: ICMP echo request, id 7443, seq 3, length 64
15:46:00.636724 IP 192.168.122.25 > dirham: ICMP echo request, id 7443, seq 4, length 64

Does anybody know how to change the configuration to translate the ip address successfully?
Thanks in advance for you help.

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

 


Rackspace

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