SamuelCheng
2009-Jul-23 09:34 UTC
[Xen-users] Domain0 cannot connect to the net while domainU can.How to make the domain0 go to the internet.
I attach the error I got in the attachment. The return of the following command: ifconfig -a route -n brctl show Here is the content,also you can see the attachment, a little long,so be patient, some information may be not of any use,but I don''t know so I copied all here,Thank you in advance very one,Good day. : [root@localhost ~]# ifconfig -a eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17 errors:0 dropped:0 overruns:0 frame:0 TX packets:56 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2916 (2.8 KiB) TX bytes:12516 (12.2 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:2649 errors:0 dropped:0 overruns:0 frame:0 TX packets:2649 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3027296 (2.8 MiB) TX bytes:3027296 (2.8 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:36 errors:0 dropped:0 overruns:0 frame:0 TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) Interrupt:17 Base address:0x8000 sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth4 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth5 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) 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:56 errors:0 dropped:0 overruns:0 frame:0 TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12516 (12.2 KiB) TX bytes:2916 (2.8 KiB) vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.4 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.5 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:47 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:10126 (9.8 KiB) wlan0 Link encap:Ethernet HWaddr 00:1B:77:1F:A8:6A BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:36 errors:0 dropped:0 overruns:0 frame:0 TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) wmaster0 Link encap:UNSPEC HWaddr 00-1B-77-1F-A8-6A-C8-7F-00-00-00-00-00-00-00-00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:36 errors:0 dropped:0 overruns:0 frame:0 TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:79 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:14686 (14.3 KiB) TX bytes:0 (0.0 b) [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 [root@localhost ~]# brctl show bridge name bridge id STP enabled interfaces virbr0 8000.000000000000 yes xenbr0 8000.feffffffffff no peth0 vif0.0 -- God more,self less. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
SamuelCheng
2009-Jul-24 05:24 UTC
[Xen-users] Re: Domain0 cannot connect to the net while domainU can.How to make the domain0 go to the internet.
Anyone who can help me? 2009/7/23 SamuelCheng <chenghui2050@gmail.com>> I attach the error I got in the attachment. > The return of the following command: > ifconfig -a > route -n > brctl show > > Here is the content,also you can see the attachment, a little long,so be > patient, some information may be not of any use,but I don''t know so I copied > all here,Thank you in advance very one,Good day. > : > [root@localhost ~]# ifconfig -a > eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0 > inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:17 errors:0 dropped:0 overruns:0 frame:0 > TX packets:56 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:2916 (2.8 KiB) TX bytes:12516 (12.2 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:2649 errors:0 dropped:0 overruns:0 frame:0 > TX packets:2649 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:3027296 (2.8 MiB) TX bytes:3027296 (2.8 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:36 errors:0 dropped:0 overruns:0 frame:0 > TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) > Interrupt:17 Base address:0x8000 > > sit0 Link encap:IPv6-in-IPv4 > NOARP MTU:1480 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth4 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth5 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > 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:56 errors:0 dropped:0 overruns:0 frame:0 > TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:12516 (12.2 KiB) TX bytes:2916 (2.8 KiB) > > vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.4 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.5 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > inet addr:192.168.122.1 Bcast:192.168.122.255 > Mask:255.255.255.0 > inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:47 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:0 (0.0 b) TX bytes:10126 (9.8 KiB) > > wlan0 Link encap:Ethernet HWaddr 00:1B:77:1F:A8:6A > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:36 errors:0 dropped:0 overruns:0 frame:0 > TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) > > wmaster0 Link encap:UNSPEC HWaddr > 00-1B-77-1F-A8-6A-C8-7F-00-00-00-00-00-00-00-00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:36 errors:0 dropped:0 overruns:0 frame:0 > TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) > > xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:79 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:14686 (14.3 KiB) TX bytes:0 (0.0 b) > > > [root@localhost ~]# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 > eth0 > 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 > virbr0 > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 > eth0 > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 > eth0 > > [root@localhost ~]# brctl show > bridge name bridge id STP enabled interfaces > virbr0 8000.000000000000 yes > xenbr0 8000.feffffffffff no peth0 > vif0.0 > > > > > -- > God more,self less. >-- God more,self less. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Roy
2009-Jul-24 05:29 UTC
Re: [Xen-users] Re: Domain0 cannot connect to the net while domainU can.How to make the domain0 go to the internet.
What looks weird to me is that none of the ethernet ports shown have a valid Mac Address SamuelCheng wrote:> Anyone who can help me? > > 2009/7/23 SamuelCheng <chenghui2050@gmail.com > <mailto:chenghui2050@gmail.com>> > > I attach the error I got in the attachment. > The return of the following command: > ifconfig -a > route -n > brctl show > > Here is the content,also you can see the attachment, a little > long,so be patient, some information may be not of any use,but I > don''t know so I copied all here,Thank you in advance very one,Good > day. > : > [root@localhost ~]# ifconfig -a > eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:192.168.0.104 Bcast:192.168.0.255 > Mask:255.255.255.0 > inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:17 errors:0 dropped:0 overruns:0 frame:0 > TX packets:56 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:2916 (2.8 KiB) TX bytes:12516 (12.2 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:2649 errors:0 dropped:0 overruns:0 frame:0 > TX packets:2649 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:3027296 (2.8 MiB) TX bytes:3027296 (2.8 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:36 errors:0 dropped:0 overruns:0 frame:0 > TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) > Interrupt:17 Base address:0x8000 > > sit0 Link encap:IPv6-in-IPv4 > NOARP MTU:1480 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth4 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > veth5 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > 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:56 errors:0 dropped:0 overruns:0 frame:0 > TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:12516 (12.2 KiB) TX bytes:2916 (2.8 KiB) > > vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.4 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > vif0.5 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) > > virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 > inet addr:192.168.122.1 Bcast:192.168.122.255 > Mask:255.255.255.0 > inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:47 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:0 (0.0 b) TX bytes:10126 (9.8 KiB) > > wlan0 Link encap:Ethernet HWaddr 00:1B:77:1F:A8:6A > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:36 errors:0 dropped:0 overruns:0 frame:0 > TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) > > wmaster0 Link encap:UNSPEC HWaddr > 00-1B-77-1F-A8-6A-C8-7F-00-00-00-00-00-00-00-00 > BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:36 errors:0 dropped:0 overruns:0 frame:0 > TX packets:184 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:5642 (5.5 KiB) TX bytes:36364 (35.5 KiB) > > xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:79 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:14686 (14.3 KiB) TX bytes:0 (0.0 b) > > > [root@localhost ~]# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric > Ref Use Iface > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 > 0 0 eth0 > 192.168.122.0 0.0.0.0 255.255.255.0 U 0 > 0 0 virbr0 > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 > 0 0 eth0 > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 > 0 0 eth0 > > [root@localhost ~]# brctl show > bridge name bridge id STP enabled interfaces > virbr0 8000.000000000000 yes > xenbr0 8000.feffffffffff no peth0 > vif0.0 > > > > > -- > God more,self less. > > > > > -- > God more,self less. > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2009-Jul-27 12:40 UTC
Re: [Xen-users] Domain0 cannot connect to the net while domainU can.How to make the domain0 go to the internet.
On Thu, Jul 23, 2009 at 05:34:36PM +0800, SamuelCheng wrote:> I attach the error I got in the attachment. > The return of the following command: > ifconfig -a > route -n > brctl show > > Here is the content,also you can see the attachment, a little long,so be > patient, some information may be not of any use,but I don''t know so I copied > all here,Thank you in advance very one,Good day. > : > [root@localhost ~]# ifconfig -a > eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0 >Your problem is the MAC address of eth0: it shouldn''t be FE:FF:FF:FF:FF:FF. eth0 is the virtual interface used for dom0 management, and it''s bridged to xenbr0, which is bridged to peth0 (physical eth0 interface). eth0 should have the original/real MAC address of the peth0. -- Pasi> [root@localhost ~]# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 > virbr0 > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 > > [root@localhost ~]# brctl show > bridge name bridge id STP enabled interfaces > virbr0 8000.000000000000 yes > xenbr0 8000.feffffffffff no peth0 > vif0.0 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2009-Jul-28 09:30 UTC
Re: [Xen-users] Domain0 cannot connect to the net while domainU can.How to make the domain0 go to the internet.
On Tue, Jul 28, 2009 at 10:06:37AM +0800, SamuelCheng wrote:> *Yes,But,When I use another kernel to start my Linux(the kernel is not > modified by xen,that is to say,xend does not start),I can make my domain0 go > to google and search.I was confused why my mac is FE:FF:FF:FF:FF:FF.At the > very beginning,everything was fine in my CentOS,and the mac is > 00:1b:fc:17:da:7a(I think).* >Please don''t drop the CC to xen-users list. when xend is started, with the default configuration (in /etc/xen/xend-config.sxp), it''ll execute /etc/xen/scripts/network-bridge to re-configure your networking. It''ll rename the physical eth0 interface to peth0, change it''s MAC address to FE:FF:FF:FF:FF:FF, and then create a virtual ethernet interface called eth0, configure it with the real MAC address, and bridge both of those interfaces to xenbr0 bridge. This way the virtual eth0 interface should have a real MAC, and it can be used for dom0 management, and at the same time allow other VMs/domUs to share the physical ethernet interface by using xenbr0 bridge. I don''t know why that doesn''t work for you.. Have you changed/tweaked your network settings somehow? When you start the machine with normal (non -xen) kernel, xend does not start and network reconfiguration won''t happen. -- Pasi> *Ok.here is the information of my OS: > I have 2 OSs: > one is Fedora 10 and the other is CentOS 5.3(updated from 5.2). > here is some kernel information:* > > title CentOS (2.6.18-128.2.1.el5xen) > root (hd0,2) > kernel /boot/xen.gz-2.6.18-128.2.1.el5 > module /boot/vmlinuz-2.6.18-128.2.1.el5xen ro root=LABEL=/1 rhgb quiet > module /boot/initrd-2.6.18-128.2.1.el5xen.img > title CentOS (2.6.18-128.2.1.el5) > root (hd0,2) > kernel /boot/vmlinuz-2.6.18-128.2.1.el5 ro root=LABEL=/1 rhgb quiet > initrd /boot/initrd-2.6.18-128.2.1.el5.img > title CentOS (2.6.18-128.1.16.el5xen) > root (hd0,2) > kernel /boot/xen.gz-2.6.18-128.1.16.el5 > module /boot/vmlinuz-2.6.18-128.1.16.el5xen ro root=LABEL=/1 rhgb quiet > module /boot/initrd-2.6.18-128.1.16.el5xen.img > title CentOS (2.6.18-128.1.16.el5) > root (hd0,2) > kernel /boot/vmlinuz-2.6.18-128.1.16.el5 ro root=LABEL=/1 rhgb quiet > initrd /boot/initrd-2.6.18-128.1.16.el5.img > title CentOS (2.6.18-128.el5xen) > root (hd0,2) > kernel /boot/xen.gz-2.6.18-128.el5 > module /boot/vmlinuz-2.6.18-128.el5xen ro root=LABEL=/1 rhgb quiet > module /boot/initrd-2.6.18-128.el5xen.img > title CentOS-base (2.6.18-128.el5) > root (hd0,2) > kernel /boot/vmlinuz-2.6.18-128.el5 ro root=LABEL=/1 rhgb quiet > initrd /boot/initrd-2.6.18-128.el5.img > title Fedora (2.6.27.21-170.2.56.fc10.i686) > root (hd0,5) > kernel /vmlinuz-2.6.27.21-170.2.56.fc10.i686 ro > root=UUID=50e45426-575f-4112-bfa2-54d8741b5ae5 rhgb quiet > initrd /initrd-2.6.27.21-170.2.56.fc10.i686.img > > > > > > 2009/7/27 Pasi Kärkkäinen <pasik@iki.fi> > > > On Thu, Jul 23, 2009 at 05:34:36PM +0800, SamuelCheng wrote: > > > I attach the error I got in the attachment. > > > The return of the following command: > > > ifconfig -a > > > route -n > > > brctl show > > > > > > Here is the content,also you can see the attachment, a little long,so be > > > patient, some information may be not of any use,but I don''t know so I > > copied > > > all here,Thank you in advance very one,Good day. > > > : > > > [root@localhost ~]# ifconfig -a > > > eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > > > inet addr:192.168.0.104 Bcast:192.168.0.255 > > Mask:255.255.255.0 > > > > > > > Your problem is the MAC address of eth0: it shouldn''t be FE:FF:FF:FF:FF:FF. > > > > eth0 is the virtual interface used for dom0 management, and it''s bridged to > > xenbr0, which is bridged to peth0 (physical eth0 interface). > > > > eth0 should have the original/real MAC address of the peth0. > > > > -- Pasi > > > > > > > [root@localhost ~]# route -n > > > Kernel IP routing table > > > Destination Gateway Genmask Flags Metric Ref Use > > > Iface > > > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 > > eth0 > > > 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 > > > virbr0 > > > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 > > eth0 > > > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 > > eth0 > > > > > > [root@localhost ~]# brctl show > > > bridge name bridge id STP enabled interfaces > > > virbr0 8000.000000000000 yes > > > xenbr0 8000.feffffffffff no peth0 > > > vif0.0 > > > > > > > > > > > > -- > God more,self less._______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
SamuelCheng
2009-Jul-28 10:56 UTC
[Xen-devel] Re: [Xen-users] Domain0 cannot connect to the net while domainU can.How to make the domain0 go to the internet.
OK,I add CC this time.Sorry for the mistake made last time.I don''t make any changes actually.But I remember when this situation began.It was at the time I create a virtual machine by "virt-install" command,after I rebooted the system the next day,the domain0 cannot go to google.So now I was wandering whether this method of creating causes the network problem.And this is the third time this problem happen. I remember last time I came across the same problem,but I didn''t pay any attention to it.After I reinstall my OS,the problem is fixed. The reason why I sent an email to the list is that I want to make this problem out in my summer holiday.If it is a bug,I want to make the developers known. Thank you very much for your reply and also thank you for this short passage about how the net in virtual machine works,it really teaches me a lot.At last, thank you again for your sharing of time on my problem. Is it really a bug or not?How can this possible?I bet the solution lies on the changing from eth0 to peth0 with a real MAC,But I don''t know where to change or modify.Hope for your further help. Rgds. Samuel. 2009/7/28 Pasi Kärkkäinen <pasik@iki.fi>> On Tue, Jul 28, 2009 at 10:06:37AM +0800, SamuelCheng wrote: > > *Yes,But,When I use another kernel to start my Linux(the kernel is not > > modified by xen,that is to say,xend does not start),I can make my domain0 > go > > to google and search.I was confused why my mac is FE:FF:FF:FF:FF:FF.At > the > > very beginning,everything was fine in my CentOS,and the mac is > > 00:1b:fc:17:da:7a(I think).* > > > > Please don''t drop the CC to xen-users list. > > when xend is started, with the default configuration (in > /etc/xen/xend-config.sxp), > it''ll execute /etc/xen/scripts/network-bridge to re-configure your > networking. > > It''ll rename the physical eth0 interface to peth0, change it''s MAC address > to FE:FF:FF:FF:FF:FF, and then create a virtual ethernet interface called > eth0, configure it with the real MAC address, and bridge both of those > interfaces to xenbr0 bridge. > > This way the virtual eth0 interface should have a real MAC, and it can be > used for dom0 management, and at the same time allow other VMs/domUs to > share the physical ethernet interface by using xenbr0 bridge. > > I don''t know why that doesn''t work for you.. Have you changed/tweaked your > network settings somehow? > > When you start the machine with normal (non -xen) kernel, xend does not > start and network reconfiguration won''t happen. > > -- Pasi > > > *Ok.here is the information of my OS: > > I have 2 OSs: > > one is Fedora 10 and the other is CentOS 5.3(updated from 5.2). > > here is some kernel information:* > > > > title CentOS (2.6.18-128.2.1.el5xen) > > root (hd0,2) > > kernel /boot/xen.gz-2.6.18-128.2.1.el5 > > module /boot/vmlinuz-2.6.18-128.2.1.el5xen ro root=LABEL=/1 rhgb > quiet > > module /boot/initrd-2.6.18-128.2.1.el5xen.img > > title CentOS (2.6.18-128.2.1.el5) > > root (hd0,2) > > kernel /boot/vmlinuz-2.6.18-128.2.1.el5 ro root=LABEL=/1 rhgb quiet > > initrd /boot/initrd-2.6.18-128.2.1.el5.img > > title CentOS (2.6.18-128.1.16.el5xen) > > root (hd0,2) > > kernel /boot/xen.gz-2.6.18-128.1.16.el5 > > module /boot/vmlinuz-2.6.18-128.1.16.el5xen ro root=LABEL=/1 rhgb > quiet > > module /boot/initrd-2.6.18-128.1.16.el5xen.img > > title CentOS (2.6.18-128.1.16.el5) > > root (hd0,2) > > kernel /boot/vmlinuz-2.6.18-128.1.16.el5 ro root=LABEL=/1 rhgb quiet > > initrd /boot/initrd-2.6.18-128.1.16.el5.img > > title CentOS (2.6.18-128.el5xen) > > root (hd0,2) > > kernel /boot/xen.gz-2.6.18-128.el5 > > module /boot/vmlinuz-2.6.18-128.el5xen ro root=LABEL=/1 rhgb quiet > > module /boot/initrd-2.6.18-128.el5xen.img > > title CentOS-base (2.6.18-128.el5) > > root (hd0,2) > > kernel /boot/vmlinuz-2.6.18-128.el5 ro root=LABEL=/1 rhgb quiet > > initrd /boot/initrd-2.6.18-128.el5.img > > title Fedora (2.6.27.21-170.2.56.fc10.i686) > > root (hd0,5) > > kernel /vmlinuz-2.6.27.21-170.2.56.fc10.i686 ro > > root=UUID=50e45426-575f-4112-bfa2-54d8741b5ae5 rhgb quiet > > initrd /initrd-2.6.27.21-170.2.56.fc10.i686.img > > > > > > > > > > > > 2009/7/27 Pasi Kärkkäinen <pasik@iki.fi> > > > > > On Thu, Jul 23, 2009 at 05:34:36PM +0800, SamuelCheng wrote: > > > > I attach the error I got in the attachment. > > > > The return of the following command: > > > > ifconfig -a > > > > route -n > > > > brctl show > > > > > > > > Here is the content,also you can see the attachment, a little long,so > be > > > > patient, some information may be not of any use,but I don''t know so I > > > copied > > > > all here,Thank you in advance very one,Good day. > > > > : > > > > [root@localhost ~]# ifconfig -a > > > > eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > > > > inet addr:192.168.0.104 Bcast:192.168.0.255 > > > Mask:255.255.255.0 > > > > > > > > > > Your problem is the MAC address of eth0: it shouldn''t be > FE:FF:FF:FF:FF:FF. > > > > > > eth0 is the virtual interface used for dom0 management, and it''s > bridged to > > > xenbr0, which is bridged to peth0 (physical eth0 interface). > > > > > > eth0 should have the original/real MAC address of the peth0. > > > > > > -- Pasi > > > > > > > > > > [root@localhost ~]# route -n > > > > Kernel IP routing table > > > > Destination Gateway Genmask Flags Metric Ref > Use > > > > Iface > > > > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 > 0 > > > eth0 > > > > 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 > 0 > > > > virbr0 > > > > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 > 0 > > > eth0 > > > > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 > 0 > > > eth0 > > > > > > > > [root@localhost ~]# brctl show > > > > bridge name bridge id STP enabled interfaces > > > > virbr0 8000.000000000000 yes > > > > xenbr0 8000.feffffffffff no peth0 > > > > vif0.0 > > > > > > > > > > > > > > > > > > > -- > > God more,self less. >-- God more,self less. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel