Free agent guard Keon Ellis agreed to a two-year, $18 million with the Nets that includes a mutual option, sources told ESPN.