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
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.
Find your wifi connection information
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
Keep all of this information handy as you'll need to write a configuration file.
Open terminal on your device as a superuser.
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.
Look in this file for the header that says
[ipv6]
,hit 'i' to switch to insert mode, and change the line below it to showmethod=ignore
Move on to the header for
[ipv4]
and make the following changes:You can save these changes by hitting escape and typing
:wq
Turn off wifi and turn it back on.
Once you boot into Ubuntu Touch, connect to the chosen Wi-Fi network. Then, drop to the shell prompt.
Then check the current IP address of your device and verify if it's the same IP as Android. If not, then follow the steps below.
Navigate to the NetworkManager folder and look for the Wi-Fi SSID name
Your wifi connection should look like this:
To change to static IP and ignore IPV6 address, you will need to change the sections in [ipv6] and [ipv4]. The changes to be made are shown in the file below in bold,italics. Use the
vi
editor to edit the file (don’t use up and down arrow keys in edit mode). Nano, which is the default editor in Ubuntu Touch,did not allow me to save the file due to some reason.Save the file. Disconnect and reconnect the Wi-Fi from the Ubuntu Touch UI to get the static IP going. You can verify the ip using the command:
Enjoy!
Source