Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Seiteneigenschaften
Englisch


Description:

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

Info

Every

ip-

IP helper address should only be rolled out once, as further rollouts with the same content may 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:

View file
nameDHCP_Relay_Agent.json
height150