Article 5MB8Z Adding persistent route to routing table in Deepin

Adding persistent route to routing table in Deepin

by
KFoltz
from LinuxQuestions.org on (#5MB8Z)
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.

Thankslatest?d=yIl2AUoC8zA latest?i=7lmWA19cvwU:h6BmphZ64Rc:F7zBnMy latest?i=7lmWA19cvwU:h6BmphZ64Rc:V_sGLiP latest?d=qj6IDK7rITs latest?i=7lmWA19cvwU:h6BmphZ64Rc:gIN9vFw7lmWA19cvwU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments