Description:

With the following add-in script you can configure a DHCP source address on LANCOM devices using LCOS.

List of used variables:

VariableDescription




Add-in code:

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
 exports.main = function (config, context) {



var changeDHCPNetworks = function(Network, Source) {
var table = config.getTableByOid("1.2.10.20");
var row = table.getFirstRowByOid ("1", Network)
row.setByOid("22", Source);
}

// Change the optional Source Address for DHCP-Networks
// Network = Name of DHCP Network, Source = Source Address

// Copy and edit the following line for each network.
changeDHCPNetworks(Network, Source );



};

Add-in as JSON file:

DHCPSourceAddress.json