add ipaddr and macaddr