Re: Persisting Routes In A Routing Table Other Than The Default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 2018-05-15 at 13:04 -0500, Chris Adams wrote:
> Once upon a time, Adam Tauno Williams <awilliam@xxxxxxxxxxxxx> said:
> > Rules load automatically via the /etc/sysconfig/network-
> > scripts/rules-
> > {interface} files.  Routes added to /etc/sysconfig/network-
> > scripts/routes-{interface} are always added to the default policy.
> What are you putting in the routes-<if> file?  I just put something
> like:
> table 200 default via 192.168.41.1 dev eth1

My route-ens192 file looks like -

...
ADDRESS20=192.168.10.0
NETMASK20=255.255.255.0
GATEWAY20=192.168.1.6
METRIC20=0
ADDRESS21=192.168.40.0
NETMASK21=255.255.255.0
GATEWAY21=192.168.1.6
METRIC21=0
...

Adding a ^table line doesn't do anything.

-- 
Adam Tauno Williams <mailto:awilliam@xxxxxxxxxxxxx> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux