fix bugs
simplify `case $1 in`
implement do_status
add show ip_addr function
log ipadder