Remon, et al:
I'm apparently not following things here.
When I used PF's GUI to change the VLAN field of a registered node, the VLAN
field of my only other registered node is also changed (I only have 2
registered nodes in my test lab)?
Isn't this discussion, and Remon's script below, about having PF assign a
node's VLAN per the VLAN field for each node?
Thanks!
Steve Wittstruck
Colorado School of Mines
On Apr 29, 2010, at 7:09 AM, Remon Varkevisser wrote:
> Yes you can, but you have to use the custom.pm and set the vlan per node.
> Here's a script we use in /usr/local/pf/lib/pf/vlan/custom.pm
>
> =cut
> sub custom_getCorrectVlan {
> my ( $this, $switch_ip, $ifIndex, $mac, $status, $vlan, $pid ) = @_;
> my $switchFactory = new pf::SwitchFactory(-configFile =>
> "/usr/local/pf/conf/switches.conf");
> my %Config = %{$switchFactory->{_config}};
>
> return ($vlan || $Config{'default'}{'normalVlan'});
> }
>
>
> Greets,
> Remon Varkevisser
>
> Van: Mark Wood [mailto:[email protected]]
> Verzonden: donderdag 29 april 2010 14:54
> Aan: [email protected]
> Onderwerp: [Packetfence-users] Multiple Normal VLANs on same switch
>
> Hi, is it possible to define multiple normal VLANs for the same switch? I've
> been reading the documentation and it seems to be possible to have a
> different normal VLAN per switch using the switches.conf file, but can I have
> more than a single normal VLAN on the same switch?
>
> e.g. in normal operation, ports 1 to 8 need to be in the Engineering VLAN and
> ports 9 to 24 need to be in the Finance VLAN.
>
> Many thanks for any help
> Mark
>
> Get a new e-mail account with Hotmail - Free. Sign-up now.
> ------------------------------------------------------------------------------
> _______________________________________________
> Packetfence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users