Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

Version 1 Aktuelle »




Description: 

Bind physical interfaces to LAG and assign LACP on LANCOM Switches of the XS series

With the following Addin script you can bind physical interfaces to LAG and assign LACP on LANCOM Switches of the XS series:

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) {

    config.addScriptLine("interface 1/0/15"); //Adding the physical 1/0/15...
    config.addScriptLine("addport 0/3/1");    // ...into the logical interface (LAG) 1 0/3/1
    config.addScriptLine("exit");

    config.addScriptLine("interface 1/0/16"); //Adding the physical 1/0/16...
    config.addScriptLine("addport 0/3/1"); // ...into the logical interface (LAG1) 0/3/1
    config.addScriptLine("exit");

    config.addScriptLine("interface lag 1"); // Setting the Link Aggregation Group (LAG) from Static to LACP -> no port-channel static
    config.addScriptLine("no port-channel static");
    config.addScriptLine("exit");
};

phys_interface_bind_to_LAG_assign_LACP.json


  • Keine Stichwörter