Re: f7 trunk dom0 ifcfg startup creates 2 bridge no vlan int

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

 



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=none

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.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  -=| 

--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux