impl addNetIf/removeNetIf
add test code & write usage