Tapas Mishra
2010-Apr-10 15:00 UTC
[Xen-users] no bridge is shown by ifconfig on Xen Debian
I do an ifconfig but at the last of it there is no bridge name have a look at it I have installed all the things myself. As Xen wiki page says the default bridge should be xen-br0 in the last output of ifconfig it is not there it is Xen-3.2.1 default name of bridge as they are saying should be the same as default ethernet interface but that is xen-3.3 read point number 6.So this is not the exact case with me.Where is the difference occuring. Here is http://wiki.xensource.com/xenwiki/XenNetworking DDDE:~# ifconfig eth2 Link encap:Ethernet HWaddr 00:26:b9:82:42:38 inet addr:192.1.100.12 Bcast:192.1..255 Mask:255.255.0.0 inet6 addr: fe80::226:b9ff:fe82:4238/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:573 errors:0 dropped:0 overruns:0 frame:0 TX packets:172 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:215986 (210.9 KiB) TX bytes:20257 (19.7 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:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1058 (1.0 KiB) TX bytes:1058 (1.0 KiB) peth2 Link encap:Ethernet HWaddr 00:26:b9:82:42:38 inet6 addr: fe80::226:b9ff:fe82:4238/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:579 errors:0 dropped:0 overruns:0 frame:0 TX packets:202 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:224616 (219.3 KiB) TX bytes:23341 (22.7 KiB) Interrupt:32 Memory:da000000-da012100 vif1.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:290 errors:0 dropped:7 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:412 (412.0 B) TX bytes:127454 (124.4 KiB) 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 PROMISC MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:206 errors:0 dropped:5 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:412 (412.0 B) TX bytes:90609 (88.4 KiB) vif3.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:159 errors:0 dropped:5 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:412 (412.0 B) TX bytes:72211 (70.5 KiB) vif4.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:86 errors:0 dropped:29 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:356 (356.0 B) TX bytes:44722 (43.6 KiB) -- Tapas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Grant McWilliams
2010-Apr-10 15:10 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
On Sat, Apr 10, 2010 at 8:00 AM, Tapas Mishra <mightydreams@gmail.com>wrote:> I do an ifconfig but at the last of it there is no bridge name > have a look at it I have installed all the things myself. > As Xen wiki page says the default bridge should be xen-br0 in the last > output of ifconfig it is not there > it is Xen-3.2.1 default name of bridge as they are saying should be > the same as default ethernet interface but that is xen-3.3 read point > number 6.So this is not the exact case with me.Where is the difference > occuring. > Here is > http://wiki.xensource.com/xenwiki/XenNetworking > > DDDE:~# ifconfig > eth2 Link encap:Ethernet HWaddr 00:26:b9:82:42:38 > inet addr:192.1.100.12 Bcast:192.1..255 Mask:255.255.0.0 > inet6 addr: fe80::226:b9ff:fe82:4238/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:573 errors:0 dropped:0 overruns:0 frame:0 > TX packets:172 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:215986 (210.9 KiB) TX bytes:20257 (19.7 KiB) > > > > -- > Tapas > > _______________________________________________ >Check the output of brctl show. I''d almost bet your bridge is eth2. Grant McWilliams _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2010-Apr-10 17:06 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
You are right but the problem is this wiki page http://wiki.xensource.com/xenwiki/XenNetworking see just Ctrl+F following "default bridge name in xen 3.2" in the blue heading network-bridge point number 6 says "peth0 and vif0.0 are attached to bridge xenbr0. Please notice that in xen 3.3, the default bridge name is the same than the interface it is attached to. Eg: bridge name eth0, eth1 or ethX.VlanID " note above they are saying in xen 3.3 default bridge name is same as ethernet the interface is attached to I am using xen 3.2 so it should be xen-br0 my problem is I want to rename the default bridge eth2 for an experiment. Which I am unable to. On Sat, Apr 10, 2010 at 8:40 PM, Grant McWilliams <grantmasterflash@gmail.com> wrote:> > > On Sat, Apr 10, 2010 at 8:00 AM, Tapas Mishra <mightydreams@gmail.com> > wrote: >> >> I do an ifconfig but at the last of it there is no bridge name >> have a look at it I have installed all the things myself. >> As Xen wiki page says the default bridge should be xen-br0 in the last >> output of ifconfig it is not there >> it is Xen-3.2.1 default name of bridge as they are saying should be >> the same as default ethernet interface but that is xen-3.3 read point >> number 6.So this is not the exact case with me.Where is the difference >> occuring. >> Here is >> http://wiki.xensource.com/xenwiki/XenNetworking >> >> DDDE:~# ifconfig >> eth2 Link encap:Ethernet HWaddr 00:26:b9:82:42:38 >> inet addr:192.1.100.12 Bcast:192.1..255 Mask:255.255.0.0 >> inet6 addr: fe80::226:b9ff:fe82:4238/64 Scope:Link >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >> RX packets:573 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:172 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:0 >> RX bytes:215986 (210.9 KiB) TX bytes:20257 (19.7 KiB) >> >> >> >> -- >> Tapas >> >> _______________________________________________ > > Check the output of brctl show. I''d almost bet your bridge is eth2. > > Grant McWilliams > >-- Tapas http://news.gmane.org/gmane.comp.emulators.xen.user +91 8971248477 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Grant McWilliams
2010-Apr-10 18:38 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
On Sat, Apr 10, 2010 at 10:06 AM, Tapas Mishra <mightydreams@gmail.com>wrote:> You are right but the problem is > this wiki page > http://wiki.xensource.com/xenwiki/XenNetworking > see just Ctrl+F following > "default bridge name in xen 3.2" > > in the blue heading network-bridge > point number 6 says > > "peth0 and vif0.0 are attached to bridge xenbr0. Please notice that in > xen 3.3, the default bridge name is the same than the interface it is > attached to. Eg: bridge name eth0, eth1 or ethX.VlanID " > > > note above they are saying in xen 3.3 default bridge name is same as > ethernet the interface is attached to I am using xen 3.2 > so it should be xen-br0 > > my problem is I want to rename the default bridge eth2 for an experiment. > Which I am unable to. > >Humor me and copy and paste the output of brctl show please. Reading the docs may not be the best way to guess what actually is happening. Doing a brctl show will tell you in one second. Grant McWilliams _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2010-Apr-10 19:13 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
xenserver:~# brctl show bridge name bridge id STP enabled interfaces eth2 8000.0026b9824238 no peth2 vif1.0 vif2.0 vif3.0 vif4.0 It is showing eth2 that is what is my problem is I am running xen 3.2 and if I refer to that doc it should be xen-br0 since they are mentioning that bridge name will be same as the interface name if it is xen 3.3 or above. On Sun, Apr 11, 2010 at 12:08 AM, Grant McWilliams <grantmasterflash@gmail.com> wrote:> > On Sat, Apr 10, 2010 at 10:06 AM, Tapas Mishra <mightydreams@gmail.com> > wrote: >> >> You are right but the problem is >> this wiki page >> http://wiki.xensource.com/xenwiki/XenNetworking >> see just Ctrl+F following >> "default bridge name in xen 3.2" >> >> in the blue heading network-bridge >> point number 6 says >> >> "peth0 and vif0.0 are attached to bridge xenbr0. Please notice that in >> xen 3.3, the default bridge name is the same than the interface it is >> attached to. Eg: bridge name eth0, eth1 or ethX.VlanID " >> >> >> note above they are saying in xen 3.3 default bridge name is same as >> ethernet the interface is attached to I am using xen 3.2 >> so it should be xen-br0 >> >> my problem is I want to rename the default bridge eth2 for an experiment. >> Which I am unable to. >> > > Humor me and copy and paste the output of brctl show please. Reading the > docs may not be the best way to guess what actually is happening. Doing a > brctl show will tell you in one second. > > > Grant McWilliams >-- Tapas http://news.gmane.org/gmane.comp.emulators.xen.user +91 8971248477 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Grant McWilliams
2010-Apr-11 01:15 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
On Sat, Apr 10, 2010 at 12:13 PM, Tapas Mishra <mightydreams@gmail.com>wrote:> xenserver:~# brctl show > bridge name bridge id STP enabled interfaces > eth2 8000.0026b9824238 no peth2 > vif1.0 > vif2.0 > vif3.0 > vif4.0 > > > It is showing eth2 that is what is my problem is I am running xen 3.2 > and if I refer to that doc it should be xen-br0 since they are > mentioning that bridge name will be same as the interface name if it > is xen 3.3 or above. > >But we solved the mystery by just looking right? As far as the bridge name being the same as your interface name it is - eth2. It looks like your physical interface comes up as eth2 for whatever reason then Xend renames it to peth2, sets up a bridge named eth2 and adds peth2 to it. So what we see is that you have one bridge (eth2) and all interfaces real or virtual are on it. This means that those VMs should be communicating on the real network like they''re real machines. If you want to redirect connections from the public network you can have your router between you and the outside world port forward to the VMs and you''re done. The VMs should already be able to connect to the internet. Grant McWilliams _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I agree with Grant, the mystery is solved. It is just that some of the docs are a bit dated. Your bridge is working properly and your cfg files should use the eth2 bridge rather than xenbr0. - chris On Sat, Apr 10, 2010 at 9:15 PM, Grant McWilliams <grantmasterflash@gmail.com> wrote:> > On Sat, Apr 10, 2010 at 12:13 PM, Tapas Mishra <mightydreams@gmail.com> > wrote: >> >> xenserver:~# brctl show >> bridge name bridge id STP enabled interfaces >> eth2 8000.0026b9824238 no peth2 >> vif1.0 >> vif2.0 >> vif3.0 >> vif4.0 >> >> >> It is showing eth2 that is what is my problem is I am running xen 3.2 >> and if I refer to that doc it should be xen-br0 since they are >> mentioning that bridge name will be same as the interface name if it >> is xen 3.3 or above. >> > > But we solved the mystery by just looking right? As far as the bridge name > being the same as your interface name it is - eth2. It looks like your > physical interface comes up as eth2 for whatever reason then Xend renames it > to peth2, sets up a bridge named eth2 and adds peth2 to it. > > So what we see is that you have one bridge (eth2) and all interfaces real > or virtual are on it. This means that those VMs should be communicating on > the real network like they''re real machines. If you want to redirect > connections from the public network you can have your router between you and > the outside world port forward to the VMs and you''re done. The VMs should > already be able to connect to the internet. > > Grant McWilliams > > _______________________________________________ > 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
Tapas Mishra
2010-Apr-11 03:21 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
On Sun, Apr 11, 2010 at 8:09 AM, chris <tknchris@gmail.com> wrote:> I agree with Grant, the mystery is solved.Well it is not a mystery upto this point I am also clear that this is happening what you and Grant Said.>It is just that some of the > docs are a bit dated.I can not comment on this since I am following what ever the docs are saying. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jpp@jppozzi.dyndns.org
2010-Apr-11 08:59 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
Hello,> On Sun, Apr 11, 2010 at 8:09 AM, chris <tknchris@gmail.com> wrote: > > I agree with Grant, the mystery is solved. > Well it is not a mystery upto this point I am also clear that this is > happening what you and Grant Said. > > >It is just that some of the > > docs are a bit dated. > I can not comment on this since I am following what ever the docs are saying. >For naming "correctly" (as I want it to be) and to be compatible with an OpenSuse 11.2 machine I use the following script to have my two Nics named as on the Opensuse. #!/bin/bash # cd /etc/xen/scripts case "$1" in start) ./network-bridge start bridge=br0 netdev=eth0 ./network-bridge start bridge=br1 netdev=eth1 ;; stop) ./network-bridge stop bridge=br0 netdev=eth0 ./network-bridge stop bridge=br1 netdev=eth1 ;; *) echo ''No or incorrect action (''$1'')'' exit esac /usr/sbin/brctl show Regards JPP _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2010-Apr-11 09:03 UTC
Re: [Xen-users] no bridge is shown by ifconfig on Xen Debian
Ya I got you.Thanks. On Sun, Apr 11, 2010 at 2:29 PM, jpp@jppozzi.dyndns.org <jpp@jppozzi.dyndns.org> wrote:> Hello, > >> On Sun, Apr 11, 2010 at 8:09 AM, chris <tknchris@gmail.com> wrote: >> > I agree with Grant, the mystery is solved. >> Well it is not a mystery upto this point I am also clear that this is >> happening what you and Grant Said. >> >> >It is just that some of the >> > docs are a bit dated. >> I can not comment on this since I am following what ever the docs are saying. >> > For naming "correctly" (as I want it to be) and to be compatible with an > OpenSuse 11.2 machine I use the following script to have my two Nics > named as on the Opensuse. > > #!/bin/bash > # > > cd /etc/xen/scripts > > case "$1" in > start) ./network-bridge start bridge=br0 netdev=eth0 > ./network-bridge start bridge=br1 netdev=eth1 > ;; > stop) ./network-bridge stop bridge=br0 netdev=eth0 > ./network-bridge stop bridge=br1 netdev=eth1 > ;; > *) echo ''No or incorrect action (''$1'')'' > exit > esac > /usr/sbin/brctl show > > > Regards > > JPP > > >-- Tapas http://news.gmane.org/gmane.comp.emulators.xen.user +91 8971248477 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users