We need to set a static IP address (and DNS etc.) to connect to our workplace Wi-Fi, but I couldn't find an option on my bq Aquaris E5 device. How should I do it?
We need to set a static IP address (and DNS etc.) to connect to our workplace Wi-Fi, but I couldn't find an option on my bq Aquaris E5 device. How should I do it?
As suggested you can modify
/etc/NetworkManager/system-settings
A quick Google search reveals this guide
With a text editor. This is in XML format, if you're unfamiliar don't be afraid. Skim through the whole thing, it's like a settings screen.
You need to determine which device is represented by your WiFi adapter.
ip addr show wlan0
Find your wifi connection information
ip route show
Look for the connection that is related to wlan0, this will show you both the SSID (wifi name) and the ip address assigned to the phone.
Get your DNS
getprop net.dns1
Keep all of this information handy as you'll need to write a configuration file.
Open terminal on your device as a superuser.
#cd /etc/NetworkManager/system-connections
#ls
# cat [name of wireless device wlan0]
This will list the formatting of the automatic wireless configuration that will made when you connected to your wifi network, use this as a base to make you static ip address assignment.
$sudo apt-get install vim
$sudo vim [name of wireless device wlan0]
Look in this file for the header that says [ipv6]
,hit 'i' to switch to insert mode, and change the line below it to show method=ignore
Move on to the header for [ipv4]
and make the following changes:
[ipv4]
method=manual
address1=[staticIP/netmask],[default ip route]
dns=8.8.8.8;[your ISP's DNS address];
You can save these changes by hitting escape and typing :wq
Turn off wifi and turn it back on.