Jump to content

Set static ip for wifi (Orange pi Zero)


Mesut

Recommended Posts

Hi, I'm trying to set up static ip for my Orange pi zero.
I made the following settings in /etc/network/interfaces

#Local loopback
auto lo
iface lo inet loopback
 
#Ethernet Static IP
auto eth0
allow-hotplug eth0

iface eth0 inet static
 
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1

This just set static ip for ethernet and when wifi connects it assigns a new ip so I lose internet access.
I can assign any ip to the wifi name I set in Nmtui settings. But what I want is to be able to assign a single static ip to all wifi connections.

Can you help with this?
Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines