Hi,
It seems to me that the following should do the job:
ip route del default via 192.168.0.60 dev enp0s9

I assume that your ssh client has access to 192.168.0.70, which is your new gateway.

Regards,
Rami Rosen

בתאריך 20 בדצמ 2016 20:21, "Ron Leach" <ronleach@tesco.net> כתב:
List, good evening,

I wanted to change a Fedora 24 server's default outgoing route, using CLI over a local SSH connection.  I found the ip command, read the man page for ip route, and gave the command:

ron # ip route add default via 192.168.0.70 dev enp0s9

The server uses a static IP and its original gateway address was 192.168.0.60.  Now I have

ron # ip route show
default via 192.168.0.70 dev enp0s9
default via 192.168.0.60 dev enp0s9  proto static  metric 100
[...]

So I have created two 'default' routes.  I've misunderstood the man page, and I thought I'd better ask for some advice before I did any more damage.

I want to reach the situation where the server has only one default route, for all traffic, which is to a gateway machine with IP address 192.168.0.70 .

Should I remove both these entries, and then try 'add'ing a new default route?  If so, how ought I remove these entries?

Or is there a better way to correct this mistake?

Grateful for any help,

regards, Ron
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org