switch identifier from ip to mac