Dale Bewley
2007-Jun-25 17:29 UTC
[Fedora-xen] f7 trunk dom0 ifcfg startup creates 2 bridge no vlan int
I''m trying to configure Fedora 7 to support a 802.1q trunk in dom0 using https://www.redhat.com/archives/fedora-xen/2007-June/msg00008.html and http://watzmann.net/blog/index.php/2007/04/27/networking_with_kvm_and_libvirt for clues. Since the network-bridge script doesn''t seem capable of doing to VLAN work and I prefer the normal OS scripts, I have the following in xend-config.sxp: (network-script /bin/true) (vif-script /bin/true) It seems that the Fedora goal is to take the original name for an interface, in this case eth0.6 and make that a bridge and move its guts to something like peth0.6. I don''t wanna be deprecated so I tried to play along and setup the ifcfg files like so: [root@helix network-scripts]# cat ifcfg-eth0 # Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet DEVICE=eth0 MTU=1504 BOOTPROTO=dhcp ONBOOT=yes [root@helix network-scripts]# cat ifcfg-vlan6br DEVICE=eth0.6 TYPE=Bridge BOOTPROTO=static ONBOOT=yes IPADDR=19.27.25.134 NETMASK=255.255.255.192 NETWORK=19.27.25.128 BROADCAST=19.27.25.191 [root@helix network-scripts]# cat ifcfg-vlan6phy DEVICE=peth0.6 BRIDGE=eth0.6 VLAN=yes ONBOOT=yes BOOTPROTO=none But, this creates a bridge under both names and no vlan interface [root@helix ~]# brctl show bridge name bridge id STP enabled interfaces eth0.6 8000.000000000000 no peth0.6 8000.000000000000 no [root@helix network-scripts]# ls /proc/net/vlan ls: cannot access /proc/net/vlan: No such file or directory I''ll dissect the ifup scripts when I get a second, but am I swimming upstream or just making a dumb mistake somewhere? -- Dale Bewley - Unix Administrator - Shields Library - UC Davis GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD 1753 064D 2583 B098 A0F3
Daniel P. Berrange
2007-Jun-25 17:34 UTC
Re: [Fedora-xen] f7 trunk dom0 ifcfg startup creates 2 bridge no vlan int
On Mon, Jun 25, 2007 at 10:29:52AM -0700, Dale Bewley wrote:> I''m trying to configure Fedora 7 to support a 802.1q trunk > in dom0 using > https://www.redhat.com/archives/fedora-xen/2007-June/msg00008.html > and > http://watzmann.net/blog/index.php/2007/04/27/networking_with_kvm_and_libvirt > for clues. > > Since the network-bridge script doesn''t seem capable of doing to VLAN work > and I prefer the normal OS scripts, I have the following in xend-config.sxp: > (network-script /bin/true)This is good.> (vif-script /bin/true)This still needs to be vif-bridge - since this is the script used to connect the guest interface to the bridge device for the VLAN you''re creating later.> It seems that the Fedora goal is to take the original name for an > interface, in this case eth0.6 and make that a bridge and move its > guts to something like peth0.6. > I don''t wanna be deprecated so I tried to play along and setup > the ifcfg files like so: > > [root@helix network-scripts]# cat ifcfg-eth0 > # Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet > DEVICE=eth0 > MTU=1504 > BOOTPROTO=dhcp > ONBOOT=yes > > [root@helix network-scripts]# cat ifcfg-vlan6br > DEVICE=eth0.6 > TYPE=Bridge > BOOTPROTO=static > ONBOOT=yes > IPADDR=19.27.25.134 > NETMASK=255.255.255.192 > NETWORK=19.27.25.128 > BROADCAST=19.27.25.191 > > [root@helix network-scripts]# cat ifcfg-vlan6phy > DEVICE=peth0.6 > BRIDGE=eth0.6 > VLAN=yes > ONBOOT=yes > BOOTPROTO=noneHmm, does it make any difference if you make the ifcfg-XXX script name match the DEVICE= name, eg instead of ifcfg-vlan6phy have ifcfg-peth0.6 And instead of ifcfg-vlan6br have ifcfg-eth0.6> > But, this creates a bridge under both names and no vlan interface > > [root@helix ~]# brctl show > bridge name bridge id STP enabled interfaces > eth0.6 8000.000000000000 no > peth0.6 8000.000000000000 no > > [root@helix network-scripts]# ls /proc/net/vlan > ls: cannot access /proc/net/vlan: No such file or directory > > I''ll dissect the ifup scripts when I get a second, but am I swimming > upstream or just making a dumb mistake somewhere?Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Dale Bewley
2007-Jun-25 17:53 UTC
Re: [Fedora-xen] f7 trunk dom0 ifcfg startup creates 2 bridge no vlan int
----- "Daniel P. Berrange" <berrange@redhat.com> wrote:> On Mon, Jun 25, 2007 at 10:29:52AM -0700, Dale Bewley wrote: > > (vif-script /bin/true) > > This still needs to be vif-bridge - since this is the script used to > connect > the guest interface to the bridge device for the VLAN you''re creating > later.Thanks> > It seems that the Fedora goal is to take the original name for an > > interface, in this case eth0.6 and make that a bridge and move its > > guts to something like peth0.6. > > > I don''t wanna be deprecated so I tried to play along and setup > > the ifcfg files like so: > > > > Hmm, does it make any difference if you make the ifcfg-XXX script > name > match the DEVICE= name, eg instead of ifcfg-vlan6phy have > ifcfg-peth0.6 > And instead of ifcfg-vlan6br have ifcfg-eth0.6Seems not. Still 2 bridges with no interfaces assigned to them. bridge name bridge id STP enabled interfaces eth0.6 8000.000000000000 no peth0.6 8000.000000000000 no And still no /proc/net/vlan. Yes, VLANs do work if I configure them normally. i.e. # ifup vlan16 # ls /proc/net/vlan/ config eth0.16 -- Dale Bewley - Unix Administrator - Shields Library - UC Davis GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD 1753 064D 2583 B098 A0F3