CentOS provides a command line tool - mntui-edit - it will help you to change the necessary internet settings easily.

# nmtui-edit