mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-02 03:37:57 +00:00
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:
@@ -17,6 +17,13 @@
|
|||||||
# --key24 12345678 --key5 12345678 --encryption24 psk2 --encryption5 psk2 --action cfg \
|
# --key24 12345678 --key5 12345678 --encryption24 psk2 --encryption5 psk2 --action cfg \
|
||||||
# --network24 wan --network5 wan
|
# --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
|
import json
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
@@ -235,7 +242,12 @@ def cfg_device(args):
|
|||||||
"mode": "lan",
|
"mode": "lan",
|
||||||
"cfg": {
|
"cfg": {
|
||||||
"proto": "static",
|
"proto": "static",
|
||||||
"ipaddr": "192.168.1.1"
|
"ipaddr": "192.168.1.1",
|
||||||
|
"dhcp": {
|
||||||
|
"start": 10,
|
||||||
|
"limit": 240,
|
||||||
|
"leasetime": "6h"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user