MadMax Posted September 9, 2018 Posted September 9, 2018 I did enable Hotspot in armbian-config and that creates 172.24.1.1 for the WLAN adapter and 172.24.1.50 - 172.24.1.150 for DHCP. I want to change it to 172.29.2.1 First thing i did was changing the dnsmasq.conf to: interface=wlx647002073fb2 # Use interface wlx647002073fb2 listen-address=172.29.2.1 # Explicitly specify the address to listen on bind-interfaces # Bind to the interface to make sure we aren't sending things elsewhere domain-needed # Don't forward short names bogus-priv # Never forward addresses in the non-routed address spaces dhcp-range=172.29.2.50,172.29.2.150,12h # Assign DHCP IP pool with a 12 hour lease time But then i found out that the WLAN adapter still has 172.24.1.1 I can't find out how to change that. From reading around you should use nmtui or nmcli. But nmtui does not let me save the change. It says: Unable to save connection. Connection is read-only. With nmcli i get: root@Portable-Grave:~# nmcli con mod wlx647002073fb2 ipv4 172.29.2.1/24 Error: unknown connection 'wlx647002073fb2'. root@Portable-Grave:~# nmcli connection show NAME UUID TYPE DEVICE Wired connection 1 ed3815ee-3e10-3437-b392-b9e65de7da8f 802-3-ethernet eth0 Ifupdown (wlx647002073fb2) 25b4f800-4829-5d95-212a-80cadb97da55 802-3-ethernet -- root@Portable-Grave:~# nmcli device show GENERAL.DEVICE: eth0 GENERAL.TYPE: ethernet GENERAL.HWADDR: 02:0F:05:01:41:90 GENERAL.MTU: 1500 GENERAL.STATE: 100 (connected) GENERAL.CONNECTION: Wired connection 1 GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1 WIRED-PROPERTIES.CARRIER: on IP4.ADDRESS[1]: 10.1.254.9/16 IP4.GATEWAY: 10.1.0.1 IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000 IP4.DNS[1]: 10.1.0.1 IP4.DOMAIN[1]: skulltronics.net IP6.ADDRESS[1]: fe80::466c:ff4e:ad7f:a5f7/64 IP6.GATEWAY: -- GENERAL.DEVICE: bond0 GENERAL.TYPE: bond GENERAL.HWADDR: 7A:BF:90:1E:2D:40 GENERAL.MTU: 1500 GENERAL.STATE: 10 (unmanaged) GENERAL.CONNECTION: -- GENERAL.CON-PATH: -- IP4.GATEWAY: -- IP6.GATEWAY: -- GENERAL.DEVICE: lo GENERAL.TYPE: loopback GENERAL.HWADDR: 00:00:00:00:00:00 GENERAL.MTU: 65536 GENERAL.STATE: 10 (unmanaged) GENERAL.CONNECTION: -- GENERAL.CON-PATH: -- IP4.ADDRESS[1]: 127.0.0.1/8 IP4.GATEWAY: -- IP6.ADDRESS[1]: ::1/128 IP6.GATEWAY: -- GENERAL.DEVICE: wlx647002073fb2 GENERAL.TYPE: wifi GENERAL.HWADDR: 64:70:02:07:3F:B2 GENERAL.MTU: 1500 GENERAL.STATE: 10 (unmanaged) GENERAL.CONNECTION: -- GENERAL.CON-PATH: -- IP4.ADDRESS[1]: 172.24.1.1/24 IP4.GATEWAY: -- IP6.GATEWAY: -- root@Portable-Grave:~# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.1.254.9 netmask 255.255.0.0 broadcast 10.1.255.255 inet6 fe80::466c:ff4e:ad7f:a5f7 prefixlen 64 scopeid 0x20<link> ether 02:0f:05:01:41:90 txqueuelen 1000 (Ethernet) RX packets 9433 bytes 698710 (682.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1560 bytes 596926 (582.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 50 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 6 bytes 552 (552.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6 bytes 552 (552.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlx647002073fb2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 172.24.1.1 netmask 255.255.255.0 broadcast 172.24.1.255 ether 64:70:02:07:3f:b2 txqueuelen 1000 (Ethernet) RX packets 145 bytes 26372 (25.7 KiB) RX errors 0 dropped 14 overruns 0 frame 0 TX packets 160 bytes 30498 (29.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 This is a Banana Pi with Armbian 5.59 Debian Stretch 4.14.65
Igor Posted September 21, 2018 Posted September 21, 2018 On 9/9/2018 at 9:01 PM, MadMax said: I did enable Hotspot in armbian-config and that creates 172.24.1.1 for the WLAN adapter and 172.24.1.50 - 172.24.1.150 for DHCP. I want to change it to 172.29.2.1 Peek into: /etc/network/interfaces.d
Recommended Posts