Skip to main content
NetApp Response to Russia-Ukraine Cyber Threat
In response to the recent rise in cyber threat due to the Russian-Ukraine crisis, NetApp is actively monitoring the global security intelligence and updating our cybersecurity measures. We follow U.S. Federal Government guidance and remain on high alert. Customers are encouraged to monitor the Cybersecurity and Infrastructure Security (CISA) website for new information as it develops and remain on high alert.
NetApp Knowledge Base

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

Views:
624
Visibility:
Public
Votes:
0
Category:
data-ontap-7
Specialty:
7dot
Last Updated:

 

Applies to

Data ONTAP 7
Data ONTAP 8 7-mode

Answer

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

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

ifconfig vifname alias ip-address

Update the /etc/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

 

WARNING:

If the 'netmask' keyword is not specified when adding an alias in the '/etc/rc' file or CLI, the default network mask for the IP Address Class will be selected, which may result in the alias IP not being reachable.

Example: 

For IP 10.145.24.125 - Class A - 255.0.0.0

For IP 192.168.100.127 - Class C - 255.255.255.0

 

Additional Information

Data ONTAP Manual page: ifgrp

 

Scan to view the article on your device