iftree

module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: Apache-2.0

README

☘️ iftree

iftree command visulize local network interfaces.

intent for better understanding container networks :D

golangci-lint CodeQL Go Report Github All Releases


iftree --graph

iftree

Features

  • visualize Veth/bridge connections
  • table output
  • rich text
  • rendering image
  • output graphviz DOT language

usage

iftree [options]

Example:
  generate tree output
    # sudo iftree 
  generate png graph with name "output.png"
    # sudo iftree --graph -Tpng -Ooutput.png
  generate image with dot
    # sudo iftree --graph -Tdot | dot -Tpng  > output.png
  generate table output
    # sudo iftree --table
text
sudo go run cmd/iftree/main.go
graph

support jpg, svg, png

sudo iftree --graph -Tpng

Or create an ouput image with any graphviz compatible renderer. e.g: online editor: https://dreampuf.github.io/GraphvizOnline

sudo go run cmd/iftree/main.go --graph -Tdot

generate image using dot(http://www.graphviz.org/download/#executable-packages)

sudo go run cmd/iftree/main.go --graph -Tdot | dot -Tpng  > output.png
table
sudo iftree --table

table

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL