virtualip add

Adds a virtual IP address.

Permissions Required

fc or a on the cluster.


maprcli virtualip add
    [ -cluster <cluster> ]
    [ -gateway <gateway> ]
    [ -macs <MAC address> ]
    -netmask <netmask>
    -virtualip <virtualip>
    [ -virtualipend <virtual IP range end> ]
    [ -preferredmac <MAC address> ]
Request Type POST
Request URL


Parameter Description
cluster The cluster on which to run the command.
gateway The NFS gateway IP or address
macs A list of the MAC addresses that represent the NICs on the nodes that the VIPs in the VIP range can be associated with. Use this list to limit VIP assignment to NICs on a particular subnet when your NFS server is part of multiple subnets.
netmask The netmask of the virtual IP.
preferredmac The preferred MAC for this virtual IP. When an NFS server restarts, the MapR system attempts to move all of the virtual IP addresses that list a MAC address on this node as a preferred MAC to this node. If the new value is null, this parameter resets the preferred MAC value.
virtualip The virtual IP, or the start of the virtual IP range.
virtualipend The end of the virtual IP range.


maprcli virtualip add   
        -cluster mycluster.402.source  
        -macs "09:0C:29:3C:47:AB 03:3C:34:76:CF:21 02:0E:22:71:AD:34"  
        -preferredmac "02:0E:22:71:AD:34"
curl -k -X POST '' --user mapr:mapr