Skip to main content

NetApp_Insight_2020.png 

NetApp Knowledgebase

Can I add an alias or alternate IP to a vif (ifgrp)?

Views:
50
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
network
Last Updated:

 

Applies to

Data ONTAP 7
Data ONTAP 8 7-mode

Answer

Note:  The term "vif" is depreciated in 8.0.x and above. It has been replaced by "ifgrp." 

You can add an alias to a vif or ifgrp using the following command:

ifconfig vifname alias ip-address

Update the rc file adding the alias configuration lines after the related vif (ifgrp) config line.

Example:

vif1: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
inet 192.168.100.126 netmask 0xffffff00 broadcast 192.168.100.255
ether 02:a0:98:06:c9:8e (Enabled virtual interface)
filer1>ifconfig vif1 alias 192.168.100.127
filer1> ifconfig vif1 alias 192.168.100.128
filer1> ifconfig -a
vif1: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
inet 192.168.100.126 netmask 0xffffff00 broadcast 192.168.100.255
inet 192.168.100.127 netmask 0xffffff00 broadcast 192.168.100.255
inet 192.168.100.128 netmask 0xffffff00 broadcast 192.168.100.255

IP subnet configuration

If the desired alias is for a different class of IP address than the original vif (ifgrp) IP address (such as A, B, or C), then ensure that you include the subnet mask of the original IP address of the vif (ifgrp) being aliased. If the subnet mask is not included, then the vif (ifgrp) may behave as if it has lost its default route.

Example:
ifconfig vif_LAN alias xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

Removing an alias

If you notice routing problems or errors that appear after adding an alias, it can be easily removed using this syntax:
ifconfig vif_LAN -alias xxx.xxx.xxx.xxx

Additional Information

Data ONTAP Manual page: ifgrp