switch identity from ip to mac