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

Re: [Xen-users] Guest Network Some can Ping, Some can't Ping



Hi Igor,

Thanks for ur reply!

Ye, you are right. I changed the ip for eth1 to 121 now.  Thanks.

Also I create another xen bridge for eth1 by using:

#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0
"$dir/network-bridge" "$@" vifnum=1

Then change /etc/xen/xend-config.sxp with the following (network-script my-network-script).


Then I assign the guest1 to xenbr1. You know what, it seems fine now.
Now I can ping eth0 and eth1 from any pc and looks great. what 's the reason????
it doesn't explain anything, does it?

I attach the ifconfig and brctl show output here, Thanks again, Igor!

[root@XenServer ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:32:4F:94 inet addr:192.168.200.120 Bcast:192.168.200.255 Mask:255.255.255.0
         inet6 addr: fe80::230:48ff:fe32:4f94/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:545463 errors:0 dropped:0 overruns:0 frame:0
         TX packets:450311 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:46172559 (44.0 MiB) TX bytes:1018182090 (971.0 MiB)

eth1 Link encap:Ethernet HWaddr 00:30:48:32:4F:95 inet addr:192.168.200.121 Bcast:192.168.200.255 Mask:255.255.255.0
         inet6 addr: fe80::230:48ff:fe32:4f95/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:180279 errors:0 dropped:0 overruns:0 frame:0
         TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:16126354 (15.3 MiB) TX bytes:16700 (16.3 KiB)

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:981 errors:0 dropped:0 overruns:0 frame:0
         TX packets:981 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:2773584 (2.6 MiB) TX bytes:2773584 (2.6 MiB)

peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:610444 errors:0 dropped:0 overruns:0 frame:0
         TX packets:827817 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100 RX bytes:52518284 (50.0 MiB) TX bytes:1041899184 (993.6 MiB) Base address:0x2000 Memory:d8400000-d8420000 peth1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:815870 errors:0 dropped:0 overruns:0 frame:0
         TX packets:641432 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100 RX bytes:85911493 (81.9 MiB) TX bytes:82142431 (78.3 MiB) Base address:0x2020 Memory:d8420000-d8440000 vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:450340 errors:0 dropped:0 overruns:0 frame:0
         TX packets:545473 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:1018188308 (971.0 MiB) TX bytes:46173242 (44.0 MiB)

vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:254 errors:0 dropped:0 overruns:0 frame:0
         TX packets:180279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:16700 (16.3 KiB) TX bytes:16126354 (15.3 MiB)

vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:632110 errors:0 dropped:0 overruns:0 frame:0
         TX packets:755824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:69421705 (66.2 MiB) TX bytes:77804847 (74.2 MiB)

xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
         RX packets:31706 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:5369454 (5.1 MiB) TX bytes:0 (0.0 b)

xenbr1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
         RX packets:96682 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:8348187 (7.9 MiB) TX bytes:0 (0.0 b)

[root@XenServer ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              peth0
                                                       vif0.0
xenbr1          8000.feffffffffff       no              vif2.0
                                                       peth1
                                                       vif0.1



Igor Chubin wrote:

On Do, Jun 07, 2007 at 10:53:54 +1000, Xin Chen wrote:
Sorry for the last empty post....

Actually I only have 1 guest on Xen Server.
oh, by the way, I assign two ip for the guest1.  Like:
eth0 and eth0:0
one is for internal ip , the other is for external ip,
they are using same mac address, is that alright?


Yes, it's ok.

(
by the way, I have noticed that you have specified
the same ip address on two interfaces of you domain 0.
I think the problem is not related to this, but this is incorrect.
)


Please show

# ifconfig
# brctl show
in the domain 0.


As far as I understand, you can ping domain U from the PCs,
but ping is not stable.

Can you ping guest from domain 0?

Can you ping your PC's from the domain U?



_______________________________________________
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®.