Adds a virtual IP address. Permissions required: fc or a


Syntax

CLI

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

REST

http[s]://<host>:<port>/rest/virtualip/add?<parameters> 

Parameters



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.

virtualip

The virtual IP, or the start of the virtual IP range.

virtualipend

The end of the virtual IP range.

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.

 

Example

CLI

maprcli virtualip add   -cluster mycluster.402.source  -macs "09:0C:29:3C:47:AB 03:3C:34:76:CF:21"  -netmask 255.255.255.0  -virtualip  10.1.1.5 -preferredmac "02:0E:22:71:AD:34"

REST

https://r1n1.sj.us:8443/rest/virtualid/add?cluster=mycluster.402.source&macs="09%3A0C%3A29%3A3C%3A47%3AAB 03%3A3C%3A34%3A76%3ACF%3A21"&netmask=255.255.255.0&virtualid=10.1.1.5&preferredmac="02%3A0E%3A22%3A71%3AAD%3A34"