Configure a DHCP source address on LANCOM devices using LCOS

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

/**
 * @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 );


    };

download json file

results matching ""

    No results matching ""