8000 Add the container routing table · Issue #3 · mhristache/cniguru · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add the container routing table #3

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& 8177 rdquo;, 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

Open
mhristache opened this issue Jun 29, 2018 · 0 comments
Open

Add the container routing table #3

mhristache opened this issue Jun 29, 2018 · 0 comments

Comments

@mhristache
Copy link
Owner

It would be helpful to include the container routing table in the output of cniguru

[root@kh1 ~]# ip netns exec aa41e96576b ip r        
default via 21.23.96.126 dev net1 
10.96.0.0/12 via 10.244.0.1 dev eth0 
10.244.0.0/24 dev eth0 proto kernel scope link src 10.244.0.216 
21.23.80.128/25 via 10.244.0.1 dev eth0 
21.23.81.128/25 via 10.244.0.1 dev eth0 
21.23.82.128/25 via 10.244.0.1 dev eth0 
21.23.84.128/25 via 10.244.0.1 dev eth0 
blackhole 21.23.90.200 
21.23.92.129 via 10.244.0.1 dev eth0 
21.23.95.0/25 dev net0 proto kernel scope link src 21.23.95.1 
21.23.96.0/25 dev net1 proto kernel scope link src 21.23.96.1 
21.23.97.0/25 dev net2 proto kernel scope link src 21.23.97.1 
blackhole 22.8.0.0/16 
172.19.0.0/27 via 21.23.95.126 dev net0 

Note: a container might use more routing tables (e.g. policy based routing) so it might be nice to detect other non-default tables and print routes in those as well.

# cat /etc/iproute2/rt_tables 
#
# reserved values
#
255     local
254     main
253     default
0       unspec
#
# local
#
#1      inr.ruhep
512     Custom
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0