How to configure network without using gui