LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin
User Name
Password
Linux Deepin This forum is for the discussion of Linux Deepin.

Notices


Reply
  Search this Thread
Old 07-18-2021, 03:32 PM   #1
KFoltz
LQ Newbie
 
Registered: Apr 2020
Posts: 20

Rep: Reputation: Disabled
Adding persistent route to routing table in Deepin


Cox email doesn't allow my VPN address so I need to exclude the email ip address from the VPN. From the terminal:

sudo ip route add 68.1.17.4 via 192.168.10.1 dev enp6s0

works.

I tried to add the routing to the /ect/network/interfaces file but it didn't work. It looks like:

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback

auto enp6s0
iface enp6s0 inet static
address 192.168.10.180
netmask 255.255.255.0
gateway 192.168.10.1
up /bin/ip route add 68.1.17.4 via 192.168.10.1 dev enp6s0
down /bin/ip route del 68.1.17.4 via 192.168.10.1 dev enp6s0

Can anyone help fix whatever I goofed up.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot add default route in another routing table unless scope link route is in main vincix Linux - Networking 6 01-24-2018 02:29 AM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Linux - Networking 2 10-11-2017 02:58 PM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Red Hat 1 10-09-2017 05:45 AM
Persistent persistent Persistent Going Nuts Here Fcukinyahoo Linux - Newbie 6 11-17-2011 09:56 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration