How could I know which veth pairs are running in the current linux host

Asked by yang xu

Hi, I have a question related to the veth pair that is used in Quantum. I know that Quantum used veth pair. Thus, I want to know which veth pair is running in the current host, which I mean querying the pair by using the linux command. I know that to construct veth pair, you can simply by using "ip link add name1 type veth name2". But I haven't found an command to query the current running veth pair. If you know how to realize the query function, could you please tell me? This would help me a lot. Thanks, :).

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
Darragh O'Reilly
Solved:
Last query:
Last reply:
Revision history for this message
Best Darragh O'Reilly (darragh-oreilly) said :
#1

try 'ethtool -S name' - I think it returns the number as in 'ip link' - this worked for me on ubuntu.

Revision history for this message
yang xu (xuyang06) said :
#2

Thanks Darragh O'Reilly, that solved my question.