luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.85k stars 534 forks source link

Is there any command or way to view the mac address forwarding table information under vale0? #586

Open xiaojin2630 opened 5 years ago

xiaojin2630 commented 5 years ago

I created a vale0 and connected the 4 igb interfaces.

# ./vale-ctl -a vale0:eth6
# ./vale-ctl -a vale0:eth7
# ./vale-ctl -a vale0:eth8
# ./vale-ctl -a vale0:eth9

The four igb interfaces are connected to the client and server, and a simple ICMP ping test is performed. Where can I see the mac address forwarding table information in vale0? Similar to the command output in the bridge under Linux:

# brctl showmacs br0
Port no mac addr is local? ageing timer
   6 00:0c:29:10:94:98 no 0.18
   6 00:0c:29:30:36:97 no 1.93
   6 00:0c:29:34:16:95 no 1.21
   6 00:0c:29:44:4b:04 no 0.06
   6 00:0c:29:6d:55:ef no 0.10
   6 00:0c:29:91:02:79 no 0.00
   6 00:0c:29:ab:f0:13 no 1.14
   6 00:0c:29:e2:69:e6 no 11.18
   5 00:10:f3:4c:e6:04 no 0.12
   2 00:10:f3:60:55:b9 no 4.22
vmaffione commented 5 years ago

Please use backticks to format text pasted from terminal, otherwise your messages are hard to read. There is no such command for now, but it would be definitely nice to add it. It could be implemented similarly to how the vale-ctl list command is implemented. If you want to provide a patch for that it would be welcome. Otherwise we will do that soon-ish.

xiaojin2630 commented 5 years ago

Sorry, it brings difficulties to your reading; I have encountered this problem when I paste the text myself. Some characters are large and some are small; you said: Please use backticks to format the text pasted from the terminal, otherwise your message is difficult to read. I still don't understand how to operate.

I have been testing vale recently, and I can't patch vale-ctl for now; I am still looking forward to your implementation.

vmaffione commented 5 years ago

If you click edit on your first comment (above), you will see that I inserted some special characters to wrap parts of your text.

xiaojin2630 commented 5 years ago

Thank you, I think I understand it, I will pay attention to it when I submit the issue next time.

vmaffione commented 5 years ago

I'd keep this open, so that we keep track of the pending item.