I would like to install a washing machine in my basement, about 30 feet from the main waste stack. The stack is fully accessible and already has a capped 2" port about 8" above the concrete floor.

Can this be done? How do I look up the diameter and slope requirements? Where do I put a vent?