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