ajen0
September 8, 2026, 11:40am
1
Buenos dias, por si alguno les sirve esta config me funciono para pasar todas las ont huawei a dual stasck: // Busca todas las conexiones PPP en cualquier WANConnectionDevice
const pppInstances = declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice..WANPPPConnection. ”, {path: 1});
for (let ppp of pppInstances) {
let path = ppp.path;
// 1. Activar Dual-Stack IPv4/IPv6
declare(path + “.X_HW_IPv6Enable”, {value: Date.now()}, {value: true});
// 2. Crear instancia PrefixDelegation y setear Origin
declare(path + “.X_HW_IPv6.IPv6Prefix.[Origin:PrefixDelegation]”, {path: Date.now(), value: Date.now()}, {path: 1, value: “PrefixDelegation”});
// 3. Crear instancia AutoConfigured Address y setear Origin
declare(path + “.X_HW_IPv6.IPv6Address.[Origin:AutoConfigured]”, {path: Date.now(), value: Date.now()}, {path: 1, value: “AutoConfigured”});
}
akcoder
September 8, 2026, 5:56pm
2
Translation for non-Spanish speakers:
Good morning, in case it helps anyone, this configuration worked for me to switch all Huawei ONTs to dual-stack:
// Searches for all PPP connections on any WANConnectionDevice
const pppInstances = declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice..WANPPPConnection.", {path: 1});
for (let ppp of pppInstances) {
let path = ppp.path;
// 1. Enable Dual-Stack IPv4/IPv6
declare(path + ".X_HW_IPv6Enable", {value: Date.now()}, {value: true});
// 2. Create PrefixDelegation instance and set Origin
declare(path + ".X_HW_IPv6.IPv6Prefix.[Origin:PrefixDelegation]", {path: Date.now(), value: Date.now()}, {path: 1, value: "PrefixDelegation"});
// 3. Create AutoConfigured Address instance and set Origin
declare(path + ".X_HW_IPv6.IPv6Address.[Origin:AutoConfigured]", {path: Date.now(), value: Date.now()}, {path: 1, value: "AutoConfigured"});
}