Tuesday, October 26, 2021

 How to modify IP address of the Netapp Ontap 9

step 1:

ssh to SAN Storage

dcvccbcluster1::> network interface show
 

            Logical    Status     Network            Current       Current Is
Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
----------- ---------- ---------- ------------------ ------------- ------- ----
Cluster
            dcvccbcluster1-01_clus1
                         up/up    169.254.188.131/16 dcvccbcluster1-01
                                                                   e0a     true
            dcvccbcluster1-01_clus2
                         up/up    169.254.127.248/16 dcvccbcluster1-01
                                                                   e0b     true
            dcvccbcluster1-01_clus3
                         up/up    169.254.161.118/16 dcvccbcluster1-01
                                                                   e0c     true
            dcvccbcluster1-01_clus4
                         up/up    169.254.151.253/16 dcvccbcluster1-01
                                                                   e0d     true
            dcvccbcluster1-02_clus1
                         up/up    169.254.188.81/16  dcvccbcluster1-02
                                                                   e0a     true
            dcvccbcluster1-02_clus2
                         up/up    169.254.132.174/16 dcvccbcluster1-02
                                                                   e0b     true
            dcvccbcluster1-02_clus3
                         up/up    169.254.153.119/16 dcvccbcluster1-02
                                                                   e0c     true
            dcvccbcluster1-02_clus4
                         up/up    169.254.116.167/16 dcvccbcluster1-02
                                                                   e0d     true
dcvccbcluster1
            cluster_mgmt up/up    172.27.5.167/25    dcvccbcluster1-01
                                                                   e0i     true
            dcvccbcluster1-01_mgmt1
                         up/up    172.27.5.168/25    dcvccbcluster1-01
                                                                   e0M     true
            dcvccbcluster1-02_mgmt1
                         up/up    172.27.5.169/25    dcvccbcluster1-02
                                                                   e0M     true
svm_dc_db
            n01_0e_svm_dc_db_lif
                         up/down  20:01:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-01
                                                                   0e      true
            n01_0f_svm_dc_db_lif
                         up/down  20:02:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-01
                                                                   0f      true
            n01_0g_svm_dc_db_lif
                         up/up    20:03:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-01
                                                                   0g      true

            Logical    Status     Network            Current       Current Is
Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
----------- ---------- ---------- ------------------ ------------- ------- ----
svm_dc_db
            n01_0h_svm_dc_db_lif
                         up/up    20:04:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-01
                                                                   0h      true
            n02_0e_svm_dc_db_lif
                         up/down  20:08:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-02
                                                                   0e      true
            n02_0f_svm_dc_db_lif
                         up/down  20:07:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-02
                                                                   0f      true
            n02_0g_svm_dc_db_lif
                         up/up    20:06:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-02
                                                                   0g      true
            n02_0h_svm_dc_db_lif
                         up/up    20:05:00:a0:98:a9:f1:be
                                                     dcvccbcluster1-02
                                                                   0h      true
            svm_dc_db_mgmt
                         up/up    172.27.5.170/25    dcvccbcluster1-02
                                                                   e0i     true

--- step 2: change IP address

172.27.5.167 --> 172.29.5.180 e0i dcvccbcluster1-01
172.27.5.168 --> 172.29.5.181 e0M dcvccbcluster1-01
172.27.5.169 --> 172.29.5.182 e0M dcvccbcluster1-02
172.27.5.170 --> 172.29.5.183 e0i dcvccbcluster1-02

--

CLUSTER::> set advance

network interface modify -vserver <XXXXXXX> -home-node <XXXXXXX> -home-port e0M -address <ip-address> -netmask <mask> -lif <LIF-ID>

network interface modify -vserver dcvccbcluster1 -lif dcvccbcluster1-01_mgmt1 -home-node dcvccbcluster1-01 -home-port e0M -address 172.29.5.181 -netmask 255.255.255.128
 

network interface modify -vserver dcvccbcluster1 -lif dcvccbcluster1-02_mgmt1 -home-node dcvccbcluster1-02 -home-port e0M -address 172.29.5.182 -netmask 255.255.255.128
---
network interface modify -vserver svm_dc_db -lif svm_dc_db_mgmt -home-node dcvccbcluster1-02 -home-port e0i -address 172.29.5.183 -netmask 255.255.255.128
 

network interface modify -vserver dcvccbcluster1 -lif cluster_mgmt -home-node dcvccbcluster1-01 -home-port e0i -address 172.29.5.180 -netmask 255.255.255.128

 

step 3: Change Gateway.

CLUSTER::>

network subnet modify -subnet-name <sub3> -gateway <192.0.3.1>

network route create -vserver svm_dc_db -destination 0.0.0.0/0 -gateway 172.29.5.129 -metric 20

network route delete -vserver svm_dc_db -destination 0.0.0.0/0 -gateway 172.27.5.129

network route create -vserver dcvccbcluster1 -destination 0.0.0.0/0 -gateway 172.29.5.129 -metric 20

network route delete -vserver dcvccbcluster1 -destination 0.0.0.0/0 -gateway 172.27.5.129

No comments:

Post a Comment