<p dir="ltr"><br>
On 8 Jun 2015 13:12, &quot;Dario Lesca&quot; &lt;<a href="mailto:d.lesca@solinos.it">d.lesca@solinos.it</a>&gt; wrote:<br>
&gt;<br>
&gt; Il giorno sab, 06/06/2015 alle 21.43 +0300, Alchemist ha scritto:<br>
&gt; &gt; Couple of possible solutions<br>
&gt;<br>
&gt; Thanks Alchemist, one of that sure probably partially solves my<br>
&gt; problem.<br>
&gt;<br>
&gt; But the question is: Why in f22 (or new version of NetworkManager?) it<br>
&gt; has removed the option to change the default gateway via &quot;ip r rep...&quot;<br>
&gt; command line, like i do in previous version or all other version of<br>
&gt; redhat or centos?<br>
&gt;<br>
&gt; I thing this is a issue, not a feature.<br>
&gt;<br>
&gt; Thanks<br>
&gt;</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&#39;ve changed the route at the kernel level it doesn&#39;t know it&#39;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 &lt;connection-profile-name&gt; ipv4.gateway &lt;ip-address-of-gateway&gt;</p>
<p dir="ltr">You can see the present configuration NM thinks it should be with:</p>
<p dir="ltr">nmcli conn show &lt;connection-profile-name&gt;<br>
</p>