[CentOS] Configuring source-specific routing

Michael Mol mikemol at gmail.com
Thu May 2 13:25:38 UTC 2013


On 05/02/2013 05:13 AM, James Hogarth wrote:
>>
>> Yeah, I've gone that deep. And a tad deeper. I had almost *everything*
>> working by hand, and went to figure out how to convert it to idomatic
>> CentOS network configuration scripts. And took my network down *three
>> times* because of the script-processing stripping things out.
>>
>>
> The files to use for this in RHEL land are rule-ethX similar to how
> ifcfg-ethX and route-ethX get used ...

Yup. And if you put a line in route-ethN like:

default via 10.0.0.1 dev ethN from 10.0.0.0/24

you're in for a rude shock; running "ip route show" after bringing up
ethN will show something like:

default via 10.0.0.1 dev ethN

...having stripped the key "from 10.0.0.0/24" portion. I ran into
similar problems with "table SomeTable".


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20130502/86185f22/attachment.sig>


More information about the CentOS mailing list