As I know, in a Linux shell environment, I could list the networks links in any specific namespace with ip
, like:
ip netns exec <namespace> ip link show
My question is:
If I have multiple net namespaces, how to list all the links in all the namespaces with a simple command? Or I have to write a script to do so?