Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation needs improvement #22

Closed
unquietwiki opened this issue Oct 12, 2018 · 7 comments

Comments

Projects
None yet
2 participants
@unquietwiki
Copy link

commented Oct 12, 2018

Hey there. I've been trying to make use of this software over the years, and find that the man page documentation on how the routing works needs some clarification. There may also be obsolete options on there as well: the "wired" statement comes to mind. I also don't quite understand how the ge and le tags work on subnet masks; and it looks like "local" applies to the IPs, and not subnets. I'd be happy to help work on this effort, if I had some pointers. Thanks!

@jech

This comment has been minimized.

Copy link
Owner

commented Oct 25, 2018

Please feel free to submit patches to improve the documentation.

@jech jech closed this Oct 25, 2018

@unquietwiki

This comment has been minimized.

Copy link
Author

commented Oct 25, 2018

@jech

This comment has been minimized.

Copy link
Owner

commented Oct 25, 2018

le and ge constrain the length of the prefix. For example

redistribute ip 0.0.0.0/0 le 0

only applies to the default route (prefix length equal to 0), while

redistribute ip 0.0.0.0/0 ge 24

only applies to routes with a prefix length 24 or longer.

local makes the redistribution rule apply to addresses assigned to interfaces as opposed to routes installed in the kernel routing table.

@unquietwiki

This comment has been minimized.

Copy link
Author

commented Oct 25, 2018

@jech Thanks. One more clarification on ge: when we say longer prefix lengths, do we mean...

  • 10.0.0.0/8 ge 8 can include 10.2.0.0/16 ?
  • 192.168.12.0/24 ge 16 can include 192.168.0.0/16 ?
  • Both? Neither?
@jech

This comment has been minimized.

Copy link
Owner

commented Oct 25, 2018

@unquietwiki

This comment has been minimized.

Copy link
Author

commented Oct 25, 2018

@jech Thanks on that: that really helps. One more clarification: is there any way at all for declaring a static route; or is that left to the OS? I know you have some source-routing application in this, that hasn't been in my own use cases; but maybe that could apply?

@jech

This comment has been minimized.

Copy link
Owner

commented Oct 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.