>>> On 11/24/2016 at 07:53 AM, Artyom Khvediouk <artyom.khvedi...@gmail.com> 
>>> wrote:

> Hello all ,
> I've been having a problems changing the default gateway on rhel7.
> I have eth devices , I've been trying to change the default gateway with :
> ip route replace default via 192.168.1.1 dev enccw0.0.0900
> 
> Then when I run ip route , I see that it didn't replace the default gateway
> but added another one , and I have 2 default gateways :
> "
> default via 192.168.50.1 dev enccw0.0.0990
> default via 191.14.121.1 dev enccw0.0.0900  proto static  metric 100
> "

It looks like you didn't specify the same interface for the two ip route 
commands.  I see 990 for the first and 900 for the second.

Note also that running these commands are not persistent.  The next time you 
restart your network, the old configuration will come back.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to