mirror of
https://github.com/OpenMANET/morse-feed.git
synced 2025-12-11 19:42:38 -06:00
force gateway
This commit is contained in:
parent
69e5c7b73d
commit
7ee17c2986
@ -141,12 +141,12 @@ function createDhcp(dnsmasqName, networkSectionId) {
|
|||||||
uci.set('dhcp', proposedName, 'limit', '16');
|
uci.set('dhcp', proposedName, 'limit', '16');
|
||||||
uci.set('dhcp', proposedName, 'leasetime', '12h');
|
uci.set('dhcp', proposedName, 'leasetime', '12h');
|
||||||
uci.set('dhcp', proposedName, 'interface', networkSectionId);
|
uci.set('dhcp', proposedName, 'interface', networkSectionId);
|
||||||
uci.set('dhcp', proposedName, 'force', '1');
|
|
||||||
uci.set('dhcp', proposedName, 'ra', 'hybrid');
|
uci.set('dhcp', proposedName, 'ra', 'hybrid');
|
||||||
uci.set('dhcp', proposedName, 'ra_slaac', '1');
|
uci.set('dhcp', proposedName, 'ra_slaac', '1');
|
||||||
uci.set('dhcp', proposedName, 'dns_service', '0');
|
uci.set('dhcp', proposedName, 'dns_service', '0');
|
||||||
uci.set('dhcp', proposedName, 'ignore', '0');
|
uci.set('dhcp', proposedName, 'ignore', '0');
|
||||||
uci.set('dhcp', proposedName, 'ra_flags', 'none');
|
uci.set('dhcp', proposedName, 'ra_flags', 'none');
|
||||||
|
uci.set('dhcp', proposedName, 'force', '1');
|
||||||
// Link this dhcp section to the appropriate dnsmasq instance
|
// Link this dhcp section to the appropriate dnsmasq instance
|
||||||
if (!uci.get('dhcp', dnsmasqName)['.anonymous']) {
|
if (!uci.get('dhcp', dnsmasqName)['.anonymous']) {
|
||||||
uci.set('dhcp', proposedName, 'instance', dnsmasqName);
|
uci.set('dhcp', proposedName, 'instance', dnsmasqName);
|
||||||
@ -537,7 +537,8 @@ function setupNetworkWithDnsmasq(sectionId, ip, uplink = true, isMeshPoint = tru
|
|||||||
|
|
||||||
if (isMeshPoint) {
|
if (isMeshPoint) {
|
||||||
if (sectionId === 'ahwlan') {
|
if (sectionId === 'ahwlan') {
|
||||||
uci.set('network', sectionId, 'gateway', ip);
|
//uci.set('network', sectionId, 'gateway', ip);
|
||||||
|
uci.set('network', sectionId, 'gateway', '10.41.1.1');
|
||||||
uci.set('network', sectionId, 'ip6assign', '64');
|
uci.set('network', sectionId, 'ip6assign', '64');
|
||||||
uci.set('network', sectionId, 'ip6ifaceid', 'eui64');
|
uci.set('network', sectionId, 'ip6ifaceid', 'eui64');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user