using mac and ip from config