With the following Addin script you can set a static IPv4 address on LANCOM Switches of the GS-23xx series:
Englisch |
---|
exports.main = function (config, context) {
if (context.device.type.indexOf("GS-23") >= 0) {
config.setScalarByOid("1.1.4.1.1.1", context.vars.DHCP_GS23xx);
config.setScalarByOid("1.2.1500.2", "0");
config.setScalarByOid("1.1.4.1.1.2", context.vars.SW_IP);
config.setScalarByOid("1.1.4.1.1.3", context.vars.MASK);
config.setScalarByOid("1.1.4.1.1.4", context.vars.GW_IP);
config.setScalarByOid("1.1.4.1.1.5", context.vars.VLAN_ID);
config.setScalarByOid("1.1.4.1.1.6", context.vars.DNS_IP);
}
};
|