ulogin: Enable DHCP in NAT mode.

This lets NAT mode work as expected.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2021-04-16 16:06:29 -07:00
parent 1f1753ed77
commit 5235bdfdb9

View File

@@ -17,6 +17,13 @@
# --key24 12345678 --key5 12345678 --encryption24 psk2 --encryption5 psk2 --action cfg \
# --network24 wan --network5 wan
# Configure 2 ssid setup with psk2 in NAT/Routed mode.
# Use local cert downloaded from a remote ucentralgw
# ./ulogin.py --serno c4411ef53f23 --cert ~/lab-ctlr-ucentral-cert.pem \
# --ucentral_host test-controller-1 --ssid24 Default-SSID-2g --ssid5 Default-SSID-5gl \
# --key24 12345678 --key5 12345678 --encryption24 psk2 --encryption5 psk2 --action cfg \
# --network24 lan --network5 lan
import json
from urllib.parse import urlparse
@@ -235,7 +242,12 @@ def cfg_device(args):
"mode": "lan",
"cfg": {
"proto": "static",
"ipaddr": "192.168.1.1"
"ipaddr": "192.168.1.1",
"dhcp": {
"start": 10,
"limit": 240,
"leasetime": "6h"
}
}
}
]