Fabian Peter Hammerle 67d34fc4e1 link.cpp: added comment regarding ifinfomsg.ifi_type | пре 6 година | |
---|---|---|
.gitignore | пре 6 година | |
Makefile | пре 6 година | |
README.md | пре 6 година | |
address.h | пре 6 година | |
hardware_address.h | пре 6 година | |
inet6_address.h | пре 6 година | |
inet_address.h | пре 6 година | |
link.cpp | пре 6 година | |
link.h | пре 6 година | |
list.h | пре 6 година | |
main.cpp | пре 6 година | |
operstate.h | пре 6 година | |
vector.h | пре 6 година | |
yaml.h | пре 6 година |
Show network device configuration in YAML format.
apt install libmnl-dev linux-libc-dev g++
$ ipyml
links:
- ifname: lo
mtu: 65536
operstate: unknown
addresses:
- 127.0.0.1/8
- ifname: eth0
address: 11:22:33:44:55:66
broadcast: ff:ff:ff:ff:ff:ff
mtu: 1500
operstate: up
addresses:
- 192.168.2.101/24
- fe80::1322:33ff:fe44:5566/64
- ifname: wlan0
address: 77:88:99:00:aa:bb
broadcast: ff:ff:ff:ff:ff:ff
mtu: 1500
operstate: up
addresses:
- 192.168.20.11/24
- fe80::7588:99ff:fe00:aabb/64