IP鄰居爲某些設備返回IPV6地址,儘管這些設備都具有IPV4。我怎樣才能設置它,使它只返回IPV4地址?IP鄰居獲取IPV4地址
fe80::a7a:4cff:fe9f:a03a dev br-lan lladdr 08:7a:4c:9f:a0:3a STALE
fe80::8ebe:beff:fede:afaf dev br-lan lladdr 8c:be:be:de:af:af STALE
fe80::ba8d:12ff:fe24:3076 dev br-lan lladdr b8:8d:12:24:30:76 STALE
192.168.0.22 dev br-lan FAILED
192.168.0.21 dev br-lan lladdr b8:8d:12:24:30:76 DELAY
192.168.0.1 dev br-lan lladdr 00:00:00:00:02:00 STALE
我不熟悉IP的鄰居是怎麼叫,但你可以管你輸出爲grep,如下所示:'grep「[[:digit:]] {1,3} \。[[:digit:]] {1,3} \。[[:digit:]] {1,3} \ 。[[:digit:]] {1,3}「-E' – 2014-08-28 17:58:11
@ChrisForrence'ip neigh show'。 – admdrew 2014-08-28 17:59:27