function to set mgrp (IPv6 prefix and length)