finish most part of network configuration

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>