Permanent Static Route to Device

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 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).

One Answer

Type in terminal :

sudo nano /etc/network/interfaces

Add at the bottom this:

up route add -net gw dev wlp0s20f3

Where 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

Add your own answers!

Related Questions

How can I get flash video to work?

4  Asked on January 1, 2022 by channelz28


How to install Wine 5 on elementary OS 5.1 Hera?

1  Asked on January 1, 2022 by arium76


Bluetooth headphones don’t work at all :(

3  Asked on December 25, 2021 by codedgar


Wifi driver Lenovo T420s – Where to find find driver?

1  Asked on December 18, 2021 by a-kiddoo


kern.log and syslog grow 40+ GB in few minutes

4  Asked on December 18, 2021 by surendrajat


How to add and sync Gsuite calender in calender?

1  Asked on December 11, 2021 by sulthan


Elementary OS 5.1 Hera Screen Tearing

1  Asked on December 9, 2021 by wilman-darnasutisna


Unknown Display after installing nvidia driver

1  Asked on December 4, 2021 by jacob-k


xsetwacom on elementary OS Hera?

1  Asked on December 4, 2021 by peter-uithoven


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP