ONTAP Hardware

What is the difference when configuring /etc/rc files?

cgeck0000
4,462 Views

I see /etc/rc files configured in one of 2 ways.

Either:

ifconfig SAN01-61 `hostname`-iSCSIControl netmask 255.255.255.0 partner SAN02-61

Or:

ifconfig SAN01-61 10.16.xx.xx netmask 255.255.255.0 partner SAN02-61

Is there a particular reason to use one or the other?  I find it easier to use the IP address.  Thanks!

4 REPLIES 4

baijulal
4,462 Views

Both works.ONTAP adds a name to each interface in the format hostname-interface  in /etc/hosts file that might be the reason for the default rc file entry format.

Not aware of any specific reason.

BrettEdelen
4,462 Views

i like to use the first because I can copy paste into both controllers

but yes, both will work. you have to have your hosts file populated in order to use the first method.

aborzenkov
4,462 Views

The former is created by initial setup and I believe when you use FilerView (not sure about System Manager). There is really no technical reasons to prefer one over another.

cgeck0000
4,462 Views

Thank you for the insight, appreciate it.

Public