NetApp へ Route を設定/削除する際の手順になります。
Static Route 追加
> route add net 192.168.1.0/24 10.1.1.254 1
Static Route 削除
> route delete 192.168.1.0
Default Route 設定
> route add default 172.16.1.254 1
Default Route 削除
> route delete default
ルーティングテーブル確認
> route -s Routing tables Internet: Destination Gateway Flags Refs Use Interface default 172.16.1.254 UGS 3 31 e0a 10.1.1/24 link#1 UC 0 0 e0a systemname 0:50:56:95:45:f UHL 2 83 lo 10.1.1.254 link#1 UHL 1 0 e0a localhost localhost UH 0 0 lo 192.168.1 10.1.1.254 UGS 0 0 e0a
再起動した際に設定が維持されるように、起動スクリプトへの登録も必要です。
> rdfile /etc/rc #Auto-generated by setup Tue May 21 08:16:54 GMT 2013 hostname head01 ifconfig e0a `hostname`-e0a mediatype auto flowcontrol full netmask 255.255.255.0 mtusize 1500 route add default 172.16.1.254 1 route add net 192.168.1.0/24 10.1.1.254 1 routed on options dns.enable off options nis.enable off savecore