You might want to create a single-mode vif, in which only one interface is active at a time and the others are ready to take over if the active interface fails. If you want a specific interface in a vif to be active, you need to specify that interface as preferred; otherwise an interface in the vif is randomly selected to be the active interface.
Example for creating a single-mode vif with IPv4 address
You can create a single-mode vif with the following command: vif create single SingleTrunk1 e0 e1
You can configure an IP address of 10.120.5.74 and a netmask of 255.255.255.0 on the single-mode vif SingleTrunk1, created in the first step, with the following command: ifconfig SingleTrunk1 10.120.5.74 netmask 255.255.255.0
Example for creating a single-mode vif with IPv6 enabled
When IPv6 is enabled on your storage system, you can create a single-mode vif, named vif1, with the following command: vif create single vif1 e0b
To make the interface status to "up," enter the following command: ifconfig vif1 up
ifconfig vif1 vif1: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500 inet6 fe80::a0:98ff:fe08:618a prefixlen 64 scopeid 0x9 autoconf inet6 3ffe:ff00:a0:98ff:fe08:618a prefixlen 64 autoconf ether 02:a0:98:08:61:8a (Enabled virtual interface)
You can also manually configure an IPv6 address of 2001:0db8:85a3:0:0:8a2e:0370:99 for the vif with the following command: ifconfig vif1 2001:0db8:85a3:0:0:8a2e:0370:99