IP and MAC address functions
IP and MAC address functions enable you to manipulate and convert IP and MAC addresses.
You can use the IP and MAC address functions to manipulate MAC addresses, validate IP addresses, and convert IP addresses between different representations. Table 1 describes the functions you can use.
| Function | Description |
|---|---|
|
binToDot |
Convert a binary representation of an IP address to dot notation. |
|
bitsMaskToDottedDecimalMask |
Convert network bits mask notation to dotted decimal notation, for example 24 to 255.255.255.0. |
|
calcNetworkAddress |
Calculate the network address given an IP address and netmask. |
|
canonicalMac |
Remove separators or radix notation from a MAC address and return the hexadecimal MAC address as a string with alpha characters capitalized. |
|
classlessNotation |
Calculate the classless notation of an IP network. |
|
dotToBin |
Convert an IPv4 address from dot notation to binary form. |
|
ipInSubnet |
Determine if an IP address is a member of a given subnet and not the broadcast address. |
|
networkToList |
Return all IP addresses that are members of the CDM representation of the IpNetwork parameter. |
|
validateIp |
Validate an IP address in dot notation. |