Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2448  / 1 Year ago, sat, march 25, 2023, 10:42:13

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?


More From » networking

 Answers
5

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.


[#16061] Monday, March 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pardsea

Total Points: 290
Total Questions: 115
Total Answers: 98

Location: Svalbard and Jan Mayen
Member since Sun, Sep 25, 2022
2 Years ago
;