Comment corriger l'erreur «pcap_lookupnet: wlan0: aucune adresse IPv4»

0

Cela fait un moment que je joue avec Debian Linux dans une machine virtuelle. Tandis que j'essayais de scanner mon propre réseau local avec un outil appelé arp-scan, j'ai reçu un message d'erreur. Évidemment, le problème vient de l'adresse IP de mon interface (un adaptateur USB Wifi) mais je n'arrive pas à trouver de solution à mon problème. J'espère que vous pouvez m'aider.

La commande que j'ai tapée dans le terminal:

arp-scan -I wlan0 --localnet

La sortie que j'ai obtenue:

WARNING: Could not obtain IP address for interface wlan0. Using 0.0.0.0 for
the source address, which is probably not what you want.
Either configure wlan0 with an IP address, or manually specify the address
with the --arpspa option.
Interface: wlan0, datalink type: EN10MB (Ethernet)
ERROR: Could not obtain interface IP address and netmask
ERROR: pcap_lookupnet: wlan0: no IPv4 address assigned
Nathan Stork
la source
se connecter au wifi? vous exécutez la commande en tant que root, non?
Frank Thomas
Postez la sortie de ip addr show .
MariusMatutiae
ip addr show me donne cette sortie: 3: wlan0: <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc état mq valeur par défaut groupe qlen 1000 lien / ether 38: d5: 47: 06: b7: 8f brd ff: ff: ff: ff: ff: ff
Nathan Stork
et oui, j'ai couru le commentaire en tant que root et j'ai toujours l'erreur
Nathan Stork