Jetson nano static ip

Hi,

I want to define a static ip but for a wifi connection.

I found example for Eth0 but not for wlan0

I have tried in /etc/network/interfaces:

source-directory /etc/network/interfaces.d

auto wlan0
iface wlan0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.255

but I when I reboot and look with ifconfig the ip is Ok, but my network wifi doesn’t work.

How I can fix this ?

Thanks for your help.

Hi @thierry_sco

Did you try @sergi.riera’s post:

Hope it works

Hi,

Thanks for your quick answer and help.

But Eth0, change the IP for a connection with a rj45 network not for Wifi, and I need to have a static IP for Wifi.

I have try :

Uncomment the line “CONFIGURE_INTERFACES” with no, and write :

> auto wlan0 iface wlan0 inet static address 192.168.1.180 netmask 255.255.255.0 gateway 192.168.1.1

but the same problem occurs after reboot, my network stop to find any wifi, but the ip of wlan0 is ok.

Do you have an other idea ?

Thanks

I’m not sure but you can add in /etc/network/interfaces:

network 192.168.1.0
broadcast 192.168.1.255

Source:

Hi many thanks,

My conclusion: it is not possible to set a static IP address for wlan0 because wlan0 uses the ipv4 of each connection.
In other words, you can define a static wifi IP address for a specific network (your box), but not for all.