There's a few minor issues with the show interfaces kernel command's output.
- Tunnel interfaces report an IP address in the field where a MAC is expected
Interface IP Address MAC VRF MTU S/L Description ----------- ------------------ ----------------- -------- ----- ----- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- tun0 192.168.100.200/24 192.0.2.10 default 1476 u/u tun100 10.0.0.1/30 198.51.100.2 default 1476 u/u
- Podman created veth interfaces list it's parent network as a VRF instead of the actual VRF.
Interface IP Address MAC VRF MTU S/L Description ----------- ------------------ ----------------- -------- ----- ----- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- pod-test 10.0.201.1/24 52:29:16:c9:81:be default 1500 u/u veth1 - d6:4c:fb:e1:b8:1b pod-test 1500 u/u veth2 - 76:11:f3:6a:8d:99 pod-test 1500 u/u
- Long descriptions should wrap
Interface IP Address MAC VRF MTU S/L Description ----------- ------------------ ----------------- -------- ----- ----- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- eth0 172.16.0.12/28 0c:28:d8:f7:00:00 default 1500 u/u This is a really long description This is a really long description This is a really long description This is a really long description This is a really long description
- Non useful interfaces shouldn't be shown.
Interface IP Address MAC VRF MTU S/L Description ----------- ------------------ ----------------- -------- ----- ----- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- erspan0 - 00:00:00:00:00:00 default 1450 A/D gre0 - 0.0.0.0 default 1476 A/D gretap0 - 00:00:00:00:00:00 default 1462 A/D pim6reg - default 1452 u/u pim6reg101 - test 1452 u/u pim6reg102 - test2 1452 u/u tunl0 - 0.0.0.0 default 1480 A/D
Expected Output:
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address MAC VRF MTU S/L Description
----------- ------------------ ----------------- ------- ----- ----- --------------------------------------------------
eth0 172.16.0.12/28 0c:28:d8:f7:00:00 default 1500 u/u This is a really long description This is a really
long description This is a really long description
This is a really long description This is a really
long description
pod-test 10.0.201.1/24 52:29:16:c9:81:be testvrf 1500 u/u
tun0 192.168.100.200/24 n/a default 1476 u/u
tun100 10.0.0.1/30 n/a default 1476 u/u
veth1 - d6:4c:fb:e1:b8:1b testvrf 1500 u/u
veth2 - 76:11:f3:6a:8d:99 testvrf 1500 u/u