To confirm the IP address and netmask have been correctly configured on the network interfaces
which command should you use?
A.
ipdilm show-if
B.
ipadm show-nic
C.
ipadm show-addr
D.
ipadm show-ifconfig
E.
ipadm show-addr
ipadm show-mask
Explanation:
Show address information, either for the given addrobj or all the address objects
configured on the specified interface, including the address objects that are only in the persistent
configuration.
State can be: disabled, down, duplicate, inaccessible, ok, tentative
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
C
C
root@s11:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.56.3/24
net1/v4 dhcp ok 10.0.3.15/24
lo0/v6 static ok ::1/128
root@s11:~# ipadm show-mask
Unrecognized subcommand: ‘show-mask’
For more info, run: ipadm help
root@s11:~# ipadm show-nic
Unrecognized subcommand: ‘show-nic’
For more info, run: ipadm help
root@s11:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes —
net0 ip ok yes —
net1 ip ok yes —
root@s11:~# ipadm show-ifconfig
Unrecognized subcommand: ‘show-ifconfig’
For more info, run: ipadm help