I need to disable/enable my android phone internet connection (to change its IP)

Is there a way to do it with command line or any tool so I can switch internet data (I notices any time I switch internet data, I got a new IP address)