print ip and mac when inserting