Modifying a LIF

You can modify a LIF by changing the attributes, such as home node or current node, administrative status, IP address, netmask, failover policy, firewall policy, and service policy. You can also change the address family of a LIF from IPv4 to IPv6.

About this task

Procedure

  1. Modify a LIF's attributes by using the network interface modify command.

    The following example shows how to modify LIF datalif1 that is located on the SVM vs0. The LIF's IP address is changed to 172.19.8.1 and its network mask is changed to 255.255.0.0.

    network interface modify -vserver vs0 -lif datalif1 -address 172.19.8.1 -netmask 255.255.0.0 

    The following example shows how to modify the IP address and network mask of LIF datalif2 using an IP address and the network mask value from subnet client1_sub:

    network interface modify -vserver vs1 -lif datalif2 -subnet-name client1_sub
    The following example shows how to modify the service policy of a LIF.
    network interface modify -vserver siteA -lif node1_inter1 -service-policy example
  2. Verify that the IP addresses are reachable.
    If you are using Then use
    IPv4 addresses network ping
    IPv6 addresses network ping6