Migrated ifconfig from previous JS console

Signed-off-by: Or Cohen <orc@fewbytes.com>