[CentOS] Gateway question

Tue Aug 9 20:08:53 UTC 2016
Gordon Messmer <gordon.messmer at gmail.com>

On 08/09/2016 11:51 AM, Birta Levente wrote:
> If I add "#route add default gw 192.168.1.1 dev enp3s0" all is good, 
> but cannot add that in route-iface file or with "ip route" .... 


Are you using the "network" or the "NetworkManager" service to configure 
your network?  I haven't verified that the route-<interface> files are 
supported by NetworkManager.

If you are using the older "network" service, then you might be getting 
the syntax of the route-<interface> file wrong.  If you included the 
contents of your ifcfg-<interface> and route-<interface> files, we could 
check.

Generally, I'm quite certain that the document I provided describes how 
to accomplish specifically what you're trying to accomplish.