Page 1 of 1

Strange output from 'host name -I' command

Posted: Mon Jul 24, 2017 10:21 pm
by alechk
What have I done to create this output after typing 'hostname -I':
192.168.1.85 192.168.1.86

???

Re: Strange output from 'host name -I' command

Posted: Mon Jul 24, 2017 11:04 pm
by DougieLawson
You've got two addresses assigned. That's due to mucking about with /etc/network/interfaces after failing to read the first five lines of that file.

Put it back to

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Re: Strange output from 'host name -I' command

Posted: Mon Jul 24, 2017 11:12 pm
by klricks
alechk wrote:What have I done to create this output after typing 'hostname -I':
192.168.1.85 192.168.1.86

???
Looks normal to me. What were you expecting?
On my RPi3B the first IP is the wired interface and the 2nd is the WIFI interface.