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

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 3 Aktuelle »




Description:

With the following Addin script you can activate the dhcp relay agent.

Every ip-helper address should only be rolled out once, as further rollouts with the same content will result in an error. The scriptLine "ip helper enable" only has to be rolled out once and can be removed afterwards.

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



    // DHCP-Relay-Agent aktivieren
    config.addScriptLine("configure");
        config.addScriptLine("ip helper enable");
    config.addScriptLine("exit");

    config.addScriptLine("configure");

        config.addScriptLine("interface vlan 1102");
            config.addScriptLine("ip helper-address 172.16.10.150");
        config.addScriptLine("exit");

        config.addScriptLine("interface vlan 64");
            config.addScriptLine("ip helper-address 172.16.10.150");
        config.addScriptLine("exit");        

        config.addScriptLine("interface vlan 80");
            config.addScriptLine("ip helper-address 172.16.10.150");
        config.addScriptLine("exit");        

        config.addScriptLine("interface vlan 100");
            config.addScriptLine("ip helper-address 172.16.10.150");
        config.addScriptLine("exit");        

        config.addScriptLine("interface vlan 110");
            config.addScriptLine("ip helper-address 172.16.10.150");
        config.addScriptLine("exit");        

    config.addScriptLine("exit");
    };

Add-in as JSON file:

DHCP_Relay_Agent.json


  • Keine Stichwörter