Flint 3 - Static IP on Access Point mode

Hi,

I am looking for a way to set a Static IP address for my Flint 3 operating in Access Point mode. The option of a static IP address disappears when switching from Router to Access Point Mode.

jak

well i think luci should be able to do it "advances settings" >login>network>interfaces>pick the interface you want and edit. change protocol to static & fill in the blanks.

But! Luci has been super weird on the flint 3, not saving stuff, so i generally config everything via ssh with UCI or the config file /etc/config/network

Option #1
Once logged in via ssh, run these commands 1 by 1 but change what you want to configure to work for your needs.

uci set network.lan.proto='static'
uci set network.lan.ipaddr='192.168.1.2'
uci set network.lan.netmask='255.255.255.0'
uci set network.lan.gateway='192.168.1.1'
uci set network.lan.dns='192.168.1.1'
uci delete network.lan.ipaddr_old 2>/dev/null
uci commit network
/etc/init.d/network reload

Option #2
edit /etc/config/network using vi or nano. Use nano-plus if you're not techy, install via the software package on either luci or plugins.

nano /etc/config/network

find the below

config interface 'lan'
	option device 'br-lan'
	option proto 'dhcp'
	option ipaddr_old '192.168.8.1'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option isolate '0'
	option multicast_querier '0'
	option igmp_snooping '0'

to

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.1.2'
	option netmask '255.255.255.0'
	option gateway '192.168.1.1'
	list dns '192.168.1.1'
	option ip6assign '60'
	option isolate '0'
	option multicast_querier '0'
	option igmp_snooping '0'

hold Ctrl + O to save.
hold Ctrl + X to exit.
reboot

3 Likes

... but first, opkg update && opkg install nano.

#ViForLyfe

1 Like

thank you both!

one question came up, when I logged into my Flint 3 using SSH (option 2) at the end of
config interface 'lan'
was
option classlessroute '0'

it does not appear in your instructions. Is it needed or can it be deleted? I left it in but I doubt it is needed as it seems to relate to a DHCP configuration.

its safe to remove but probably fine to keep in too as its off, unless your doing some dnsmasq static routes and need it to be on.

Thabk you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.