Are you looking for the shell command (terminal command) ifconfig? You might want to review the man page for ifconfig to see the options, and maybe get some hints of other commands too.