Which sequence of commands will create a virtual network interface?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
How to Create a Virtual Network Interface
This procedure shows how to create a virtual network interface card (VNIC).
1. Create a VNIC over a datalink.
# dladm create-vnic -l link vnic
link is the name of the datalink over which the VNIC is configured.
vnic is the VNIC which you can label with a customized name as well.
2. Create a VNIC IP interface over the link.
# ipadm create-ip vnic
3. Configure the VNIC with a valid IP address.
If you are assigning a static IP address, use the following syntax:
# ipadm create-addr -T static -a address addrobj
where addrobj uses the naming format interface/user-defined-string, such as e1000g0/v4globalz.
A
root@s11exam:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok — —
lo0/v4 static ok — 127.0.0.1/8
lo0/v6 static ok — ::1/128
net0 ip ok — —
net0/v4 dhcp ok — 192.168.132.132/24
net0/v6 addrconf ok — fe80::20c:29ff:fecd:28ed/10
net1 ip down — —
net2 ip disabled — —
net2/v6 static disabled — 192.168.1.112/26
vnic2 ip ok — —
vnic2/v4 static ok — 172.16.65.130/24
root@s11exam:~# dladm
LINK CLASS MTU STATE OVER
net1 phys 1500 up —
net0 phys 1500 up —
net2 phys 1500 down —
vnic1 vnic 1500 up net1
vnic2 vnic 1500 up net1
root@s11exam:~# dladm create-vnic -l net1 vnic3
root@s11exam:~# ipadm create-ip vnic3
C
root@s11exam:~# ipadm create-addr -T static -a 172.16.65.133/24 vnic3
vnic3/v4
root@s11exam:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok — —
lo0/v4 static ok — 127.0.0.1/8
lo0/v6 static ok — ::1/128
net0 ip ok — —
net0/v4 dhcp ok — 192.168.132.132/24
net0/v6 addrconf ok — fe80::20c:29ff:fecd:28ed/10
net1 ip down — —
net2 ip disabled — —
net2/v6 static disabled — 192.168.1.112/26
vnic2 ip ok — —
vnic2/v4 static ok — 172.16.65.130/24
vnic3 ip ok — —
vnic3/v4 static ok — 172.16.65.133/24
root@s11exam:~# dladm
LINK CLASS MTU STATE OVER
net1 phys 1500 up —
net0 phys 1500 up —
net2 phys 1500 down —
vnic1 vnic 1500 up net1
vnic2 vnic 1500 up net1
vnic3 vnic 1500 up net1
A