After I read your email again, I realized there is something wrong in your config. Could you please provide you switches.conf file ?
Regis Balzard [email protected] :: +1.514.447.4918 (x110) :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org) On 22/10/10 3:53 PM, Regis Balzard wrote: > Hi Bill, > > > > On 22/10/10 12:58 PM, Bill Brown wrote: >> Hello, > SNIP > >> Packetfence has come highly recommended and I have been playing with a >> test deployment on Centos5.5 x86_64 with packetfence 1.9.1 in a VM. It >> seems to have many of the features we need but I have encounter a few >> hurtles and I want to find out if anyone has worked though these issues. >> It seems from some of the user posts and documentation that there is a >> limit on vlans of about 5. Is there a way to raise the limit up into the >> 60s. > There is a limitation of 5 predefined custom Vlans, yes we only allowed 5 > custom Vlans. > But there are other ways to do what you want :) > >> I would like to defined 60 node categories (one per vlan) and assigned >> nodes to the categories that reflexs the desired vlan (not really >> conserned about user authentication yet). > Defined your 60 categories in Node->Categories. > > Then in /usr/local/pf/lib/pf/vlan/custom.pm, add the following code (change > this code to make it work with your > categories and Vlans): > > sub custom_getCorrectVlan { > > my ($this, $switch, $ifIndex, $mac, $node_info) = @_; > my $logger = Log::Log4perl->get_logger(); > Log::Log4perl::MDC->put( 'tid', threads->self->tid() ); > > # Here we setup a default Vlan in case we can't figure out the right > Vlan > my $correctVlan = 'xxx'; > > if (ref($node_info) eq 'HASH'&& defined($node_info->{'category'})) { > my $category = $node_info->{'category'}; > if ($category eq 'category1_name') { > $correctVlan = 'vlanid_for_category1'; > } elsif ($category eq 'category2_name') { > $correctVlan= 'vlanid_for_category2'; > ... > } elsif ($category eq 'category60_name') { > $correctVlan = 'vlanid_for_category60'; > } else { > $logger->error("$mac does not belong to a valid category > ($category). Returning default Vlan $correctVlan"); > } > } else { > $logger->error("$mac does not have any category. Returning default > Vlan $correctVlan"); > } > return $correctVlan; > } > > > That should fix your issue. > > Regis Balzard > [email protected] :: +1.514.447.4918 (x110) :: www.inverse.ca > Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence > (www.packetfence.org) > > >> Among others, my issue seems to be one of scaling. When I define the >> vlans on our HP 2610s and try snpmwalk all seems well but when I try to >> set and assign vlans it appears that packetfence is not happy with the >> number of vlans that exist on the switch (only a guess) from the errors. >> >> 10.1.9.101 >> - sysUptime: 4 days, 01:09:28.97 >> - nb Vlans : 55 >> - Uplinks: 49, 50, 51, 52 >> connect_and_read.pl >> Argument "" isn't numeric in numeric eq (==) at >> /usr/local/pf/test/../lib/pf/SNMP.pm line 1838 (#1) >> (W numeric) The indicated string was fed as an argument to an >> operator that expected a numeric value instead. If you're fortunate the >> message will identify which operator was so unfortunate. >> >> Packetfence.log >> Oct 22 09:23:25 pfsetvlan(3) WARN: new VLAN ARRAY(0x20878710) is not a >> managed VLAN -> replacing VLAN ARRAY(0x20878710) with MAC detection VLAN >> 94 (pf::SNMP::setVlan) >> The best I can tell it appears to overrun the defined array for vlans >> and fall back to my macdetect vlan when I attempt to test the confg. >> >> I am not strong in perl programming, but any feedback as to if this >> configuration is possible, if anyone has had success with anything >> similar. Buying commercial support is not out of the question but before >> we invest I want to make sure it is even possible to do what we want. >> Thank you for your assistance in this matter, >> Bill Brown >> RCTC Network Tech >> >> >> ------------------------------------------------------------------------------ >> Nokia and AT&T present the 2010 Calling All Innovators-North America contest >> Create new apps& games for the Nokia N8 for consumers in U.S. and Canada >> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >> http://p.sf.net/sfu/nokia-dev2dev >> _______________________________________________ >> Packetfence-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/packetfence-users > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps& games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Packetfence-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/packetfence-users ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Packetfence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
