change access point dhcp range
Posted: 2020/12/29 01:15:40
I have added an access point to one of my centos boxes:
nmcli con add type wifi ifname wlp1s0 mode ap con-name wlp1s0 802-11-wireless.ssid MyAPSSID
nmcli con modify wlp1s0 802-11-wireless.band bg connection.autoconnect yes 802-11-wireless-security.key-mgmt wpa-psk
nmcli con modify wlp1s0 802-11-wireless-security.psk MYAPKEY ipv4.addr 192.168.1.0/17 ipv4.method shared
nmcli con up wlp1s0
bringing this interface up launches a dnsmasq session with these parameters:
/usr/sbin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=192.168.1.0 --dhcp-range=192.168.1.10,192.168.1.254,60m --dhcp-lease-max=50 --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlp1s0.leases --pid-file=/run/nm-dnsmasq-wlp1s0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d
Can someone tell me how to change the default IP address range used (e.g. where are these command-line options coming from so I can change the --dhcp-range option) ?
Or, better yet, since I already have a DHCP server on my network, is there a way to simply have the access point obtain its IP addresses for clients from that DHCP server?
nmcli con add type wifi ifname wlp1s0 mode ap con-name wlp1s0 802-11-wireless.ssid MyAPSSID
nmcli con modify wlp1s0 802-11-wireless.band bg connection.autoconnect yes 802-11-wireless-security.key-mgmt wpa-psk
nmcli con modify wlp1s0 802-11-wireless-security.psk MYAPKEY ipv4.addr 192.168.1.0/17 ipv4.method shared
nmcli con up wlp1s0
bringing this interface up launches a dnsmasq session with these parameters:
/usr/sbin/dnsmasq --conf-file=/dev/null --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=192.168.1.0 --dhcp-range=192.168.1.10,192.168.1.254,60m --dhcp-lease-max=50 --dhcp-leasefile=/var/lib/NetworkManager/dnsmasq-wlp1s0.leases --pid-file=/run/nm-dnsmasq-wlp1s0.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d
Can someone tell me how to change the default IP address range used (e.g. where are these command-line options coming from so I can change the --dhcp-range option) ?
Or, better yet, since I already have a DHCP server on my network, is there a way to simply have the access point obtain its IP addresses for clients from that DHCP server?