Re: Network-manager and VLAN



On Fri, 2012-07-27 at 08:56 -0400, Pavel Simerda wrote:
> Hi,
> 
> > Thanks for the answer, but as I said, I am using Ubuntu and do not
> > have
> > the rhel configuration scripts.
> > 
> > I have finally managed to get a VLAN connection working with the
> > following keyfile:
> > 
> > [connection]
> > id=VLAN1
> > uuid=ed3b2385-9016-45c6-a277-fa7e5be8fe9d
> > type=vlan
> > 
> > [vlan]
> > parent=eth0
> > id=1
> > 
> > [ipv6]
> > method=auto
> > 
> > [ipv4]
> > method=auto
> 
> Thanks for your example config file.
> 
> > 1. There seems to be no autoconnect feature for VLAN connections. If
> > I
> > insert the cable, nm does not automatically start the VLAN
> > connection.
> > For normal wired connections this works.
> 
> Please file a bugreport at bugzilla.gnome.org.

Yeah, would be good to have a bug to track this.  It *might* be the case
that because eth0 isn't up when the auto-activation checks get run, that
the VLAN gets disqualified for activation.  It also might be the case
that we're missing a call to schedule_activate_check() in nm-policy.c
when the VLAN device finally shows up, since NM may have to create the
device on startup.  VLAN devices are only created automatically if a
connection exists for them that has autoconnect=true, BTW.

But a bug would be good to track this.

> > 2. I hoped that nm-applet would at least show these connections, so
> > that
> > one can start or stop a connection without being able to edit the
> > connection details. Unfortunately, this seems not to be the case.
> > 
> > If I see all of this correctly, then the only way to start or stop a
> > connection every time a cable is connected, is to issue
> > 
> > nmcli con up id VLAN1
> > 
> > at the command line.
> 
> This could be worked around with the dispatcher scripts.

At the moment, due to the above bug, this may be the case.  But we
should fix this.

Aso, we should add a keyfile testcase for VLANs.  That serves both as a
testcase and an example, actually :)  So that's a double-win.

Dan

> > > VLAN=yes
> > > TYPE=Vlan
> > > DEVICE=eth9.43
> > > PHYSDEV=eth9
> > > 
> > > ONBOOT=yes
> > > BOOTPROTO=static
> > > IPADDR=192.168.43.149
> > > NETMASK=255.255.255.0
> 
> Thanks also for the original one.
> 
> https://fedoraproject.org/wiki/Tools/NetworkManager/VLAN
> 
> Cheers,
> 
> Pavel
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> https://mail.gnome.org/mailman/listinfo/networkmanager-list




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