refactoring dhcp network call
fix typo