This is definitely different from previous versions. You can find quite a few examples on these forums, but something like this will get you started:
Code: Select all
unp profile 'guest'
unp profile 'admin'
unp profile 'cctv'
unp profile 'voip'
unp profile 'guest' map vlan 10
unp profile 'admin' map vlan 20
unp profile 'cctv' map vlan 30
unp profile 'voip' map vlan 40
Code: Select all
unp classification mac-oui 20:20:20 profile1 'admin'
unp classification ip-address 192.168.20.0 mask 255.255.255.0 profile1 'admin'
unp classification mac-range 30:30:30:00:00:00 30:30:30:FF:FF:FF profile1 'cctv'
unp classification ip-address 192.168.30.0 mask 255.255.255.0 profile1 'cctv'
unp classification mac-address 40:40:40:40:40:40 profile1 'voip'
unp classification lldp med-endpoint ip-phone profile1 'voip'
Code: Select all
unp port-template 'my-template' default-profile 'guest' classification
unp port 1/1/1-10 port-type bridge
unp port 1/1/1-10 port-template 'my-template'
So with this config, by default you are always assigned to the Guest vlan automatically in case you don't get classified anywhere.
Then, if a device falls under a specific classification rule, that device will be assigned to that vlan (unp profile) instead.
You only asked for IP based assignment, but you can understand this example better.
Priority for the classification is: the switch checks MAC rules first, then LLDP, then IP (and there's more options here not just these 3).
Also, if you are using IP classification, ensure all those printers (and PCs, etc) have a static IP assigned and are not DHCP clients to not run into problems.