<p dir="ltr"><br>
On 8 Jun 2015 13:12, "Dario Lesca" <<a href="mailto:d.lesca@solinos.it">d.lesca@solinos.it</a>> wrote:<br>
><br>
> Il giorno sab, 06/06/2015 alle 21.43 +0300, Alchemist ha scritto:<br>
> > Couple of possible solutions<br>
><br>
> Thanks Alchemist, one of that sure probably partially solves my<br>
> problem.<br>
><br>
> But the question is: Why in f22 (or new version of NetworkManager?) it<br>
> has removed the option to change the default gateway via "ip r rep..."<br>
> command line, like i do in previous version or all other version of<br>
> redhat or centos?<br>
><br>
> I thing this is a issue, not a feature.<br>
><br>
> Thanks<br>
></p>
<p dir="ltr">Think of it this way.</p>
<p dir="ltr">You have your network manager configured (via static or dhcp) to have your default route pointed somewhere.</p>
<p dir="ltr">NM tries to maintain its configuration so when it notices you've changed the route at the kernel level it doesn't know it's an admin override and fixes what it thinks is a broken setup.</p>
<p dir="ltr">On NM based systems instead of using ip route try the nmcli command.</p>
<p dir="ltr">Something like this ought to work:</p>
<p dir="ltr">nmcli conn mod <connection-profile-name> ipv4.gateway <ip-address-of-gateway></p>
<p dir="ltr">You can see the present configuration NM thinks it should be with:</p>
<p dir="ltr">nmcli conn show <connection-profile-name><br>
</p>