write output files for ip and mac addrs