How To Add A Static Route To NetApp Data OnTap

Use this command to add a static route for this network 10.3.50.0/24 to use the gateway 10.3.0.1

route add net 10.3.50.0/24 10.3.0.1 1

You must also update /etc/rc because you will lose this route on a reboot.  /etc/rc gets read at boot and sets up your network settings.

Use this command to read the file

rdfile /etc/rc

Copy all the text that it outputs.  Add your route command under your default gateway.  It should look something like this:

hostname netapp01
ifgrp create lacp ifgrp1 -b ip e0a e0b e0c e0d 
vlan create ifgrp1 3001 3002 3000
ifconfig ifgrp1-3001 `hostname`-ifgrp1-3001 netmask 255.255.255.0 partner ifgrp1-3001 mtusize 1500 -wins
ifconfig ifgrp1-3002 `hostname`-ifgrp1-3002 netmask 255.255.255.0 partner ifgrp1-3002 mtusize 1500 -wins
ifconfig ifgrp1-3000 `hostname`-ifgrp1-3000 netmask 255.255.255.0 partner ifgrp1-3000 mtusize 1500 -wins
route add default 10.3.2.254 1
route add net 10.3.50.0/24 10.3.0.1 1
routed on
options dns.domainname domain.someplace.com
options dns.enable on
options nis.enable off

In order to write your changes to the /etc/rc file, you need to use this command.  This command overwrites the file with everything you enter at this point.

wrfile /etc/rc

As a side note, the IPs for your interfaces are stored in the /etc/hosts file.

Leave a Reply

Your email address will not be published.