@
zrp1994 图不太好发
这是虚拟机 172.8.0.6 的:
broadcast 172.8.0.0 dev veth1 proto kernel scope link src 172.8.0.6
local 172.8.0.6 dev veth1 proto kernel scope host src 172.8.0.6
broadcast 172.8.255.255 dev veth1 proto kernel scope link src 172.8.0.6
这是主机的:
broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
broadcast 172.8.0.0 dev sgdocker0 proto kernel scope link src 172.8.0.1
local 172.8.0.1 dev sgdocker0 proto kernel scope host src 172.8.0.1
broadcast 172.8.255.255 dev sgdocker0 proto kernel scope link src 172.8.0.1
broadcast 172.17.0.0 dev docker0 proto kernel scope link src 172.17.0.1
local 172.17.0.1 dev docker0 proto kernel scope host src 172.17.0.1
broadcast 172.17.255.255 dev docker0 proto kernel scope link src 172.17.0.1
broadcast 172.21.0.0 dev eth0 proto kernel scope link src 172.21.0.16
local 172.21.0.16 dev eth0 proto kernel scope host src 172.21.0.16
broadcast 172.21.15.255 dev eth0 proto kernel scope link src 172.21.0.16
其中 172.17 的是 docker 相关的,172.21 是这台主机在的网络