Which command should you use?

You want to display network interface information. Which command should you use?

You want to display network interface information. Which command should you use?

A.
ipadm show-if

B.
ipadm show-addr

C.
ipadm show-prop

D.
ipadm show-addrprop

Explanation:
Reference: ipadm(1M) – the new ifconfig(1M)



Leave a Reply 2

Your email address will not be published. Required fields are marked *

18 − 12 =


dilli

dilli

B is Ok
ipadm show-addr’ displays all the configured addresses on the system.
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128

If you use A just for list all the plumbed IP interfaces on the system
Example:
# ipadm show-if
IFNAME STATE CURRENT PERSISTENT
lo0 ok -m-v—–46 —