Displaying 2 results from an estimated 2 matches for "gateway20".
Did you mean:
gateway0
2018 May 16
1
Persisting Routes In A Routing Table Other Than The Default
...; > 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 at whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA
2018 May 15
2
Persisting Routes In A Routing Table Other Than The Default
I need to add persistent routes to a policy routing table. I can add
rules to an IP policy table after installing NetworkManager-config-
routing-rules; but I have not found how to add routes to a table other
than the specific table.
Manually I do a:
ip route add default via 192.168.1.6 dev ens192 table pods
Rules load automatically via the /etc/sysconfig/network-scripts/rules-
{interface}