Major road closures will be in place over the course of two weekends while gas main replacement works are completed.