请教关于类似zerotier等虚拟网卡网络封包的疑问

8 views
Skip to first unread message

李洛

unread,
Mar 19, 2020, 12:33:27 AM3/19/20
to sh...@googlegroups.com
各位,最近在折腾内网穿透的事情并且使用过zerotier,然后有个疑问就是Linux如何通过zerotier这个虚拟网卡将报文传递出去的.
假设某台Linux服务器为A并且仅通过一条网线与路由器相连接,假设这个物理网卡为eth0,IP地址为10.10.10.200,并且zerotier新增的虚拟网卡为eth1,IP地址为192.168.111.100(仅举例)
此时我通过zerotier的虚拟IP去ping其他zerotier节点的IP,假设为192.168.111.101,那么我tcpdump -i eth1抓eth1网卡时是可以看到icmp的request和reply报文的,但是我tcpdump -i eth0这个真实的物理网卡确实看不到icmp报文的。
我的疑问是既然这台Linux服务器只有一个物理网卡,那么网络流量肯定是走这个物理网卡eth0出去的,但是为何tcpdump看不到这个icmp报文呢?


--
All the best!

Liang Guo

unread,
Mar 19, 2020, 4:22:24 AM3/19/20
to sh...@googlegroups.com
发给zerotier网卡的包经过包装后才发给物理网卡,所以你在物理网卡上看不到icmp报文,但是能看到其他报文
> --
> -- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
> 要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/shlug/CACb3DvPenXf_BagkDYK2qHotXfrqqj6Qc0p7udo-ZuPEtZb3mg%40mail.gmail.com



--
Liang Guo

李洛

unread,
Mar 19, 2020, 5:40:01 AM3/19/20
to sh...@googlegroups.com
了解了,感谢。

Liang Guo <bluesto...@gmail.com> 于2020年3月19日周四 下午4:22写道:
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要在网络上查看此讨论,请访问 https://groups.google.com/d/msgid/shlug/CAJwrgW7RFqrczQK0%2BJU40Oyf4rPL9VzPSrgnOJzhGb9KqpRsXg%40mail.gmail.com


--
All the best!

Reply all
Reply to author
Forward
0 new messages