Persisting Routes In A Routing Table Other Than The Default

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



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} files.  Routes added to /etc/sysconfig/network-
scripts/routes-{interface} are always added to the default policy.

[root@aqueduct rc.d]# ip rule
0:	from all lookup local 
32763:	from 192.168.65.0/24 lookup pods 
32764:	from 192.168.41.0/24 lookup pods 
32765:	from 192.168.43.0/24 lookup pods 
32766:	from all lookup main 
32767:	from all lookup default 

-- 
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