AnswerBun.com

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

One Answer

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

Add your own answers!

Related Questions

Boot Issue After Formatting and Changing Mounting Points

2  Asked on August 28, 2021 by user5652235

 

Permanent Static Route to Device

1  Asked on August 28, 2021 by blackspy

 

No Wireless Connection On Elementary OS On Hera 5.1

3  Asked on August 28, 2021 by skysorachi

   

Display resolution

1  Asked on August 28, 2021

   

Monitor type wrongly detected in Hera

0  Asked on August 28, 2021 by mal-110

   

I cannot install WINE

1  Asked on August 28, 2021 by joshua-ham

   

No WiFi MacBook Pro after ElementaryOS install

2  Asked on August 28, 2021 by jethrobodine

   

Always on top of a full-screen app?

1  Asked on August 28, 2021 by labs

   

Files showing Lock symbol Elementary OS Juno

1  Asked on August 28, 2021 by blackberry

     

Keeping both files with auto rename when copying

1  Asked on August 28, 2021 by manuj-chandra

   

Adobe Flash upgrade

1  Asked on August 28, 2021 by user204360

 

Fingerprint reader driver thinkpad T480s

0  Asked on August 28, 2021 by dragos-vasile

   

Dark mode doesn’t work in system settings

2  Asked on August 28, 2021 by yan-kohut

 

Cannot wake from suspend after 5.1.4 update

1  Asked on August 28, 2021 by a-saikiran-reddy

 

renaming a drive in the files app

1  Asked on August 28, 2021 by user23200

 

Broken theme, icons and shortcuts

1  Asked on August 28, 2021 by saul-chavez-sanchez

   

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP