add support for static ip
Merge pull request #5 from xinwu/master

add support to configure static ip