Seiteneigenschaften |
---|
Deutsch |
---|
Info |
---|
Jede IP-Helper Adresse sollte nur einmalig ausgerollt werden, da weitere roll-outs mit dem selben Inhalt einen Fehler auswerfen können. Die ScriptLine "ip helper enable" muss nur einmalig ausgerollt werden und kann anschließend entfernt werden. |
Liste der verwendeten Variablen:
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("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 als JSON-Datei:
View file | ||||||||
---|---|---|---|---|---|---|---|---|
|
Description:
With the following Addin script you can activate the dhcp DHCP relay agent.
Info |
---|
Every 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:
Variable | Description |
---|---|
Add-in code:
/** // 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 | ||
---|---|---|
|
|