elementary OS Asked by BlackSpy on August 28, 2021
Does anyone know how to make the following command permanent in Elementary OS?
route add -host 192.168.1.1 dev wlp0s20f3
This route does exactly what I need, but its not permanent. A reboot of the machine or the network connection will result in it being removed from the IP tables.
I can’t seem to find the files that define the routes for this device (wifi adapter – wlp0s20f3).
Type in terminal :
sudo nano /etc/network/interfaces
Add at the bottom this:
up route add -net 192.168.1.10/24 gw 192.168.1.1 dev wlp0s20f3
Where 192.168.1.10 is the IP of your machine which you can check with command:
ip a
Restart the networking service by typing in terminal:
sudo /etc/init.d/networking restart
Correct answer by Sysadmin on August 28, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP