lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

/etc/netowrk/interfaces issue.

Mon Jun 23, 2014 4:55 am

I use wpa-roam to setup my connection

case 1
iface wlan0 inet dhcp
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

No IP has been assigned.

case 2
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

Still no IP has been assigned

case 3
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

now it works. why need to face default inet dhcp yet wlan0 has to be manual for wpa-roam to work?

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: /etc/netowrk/interfaces issue.

Mon Jun 23, 2014 8:04 am

Try this:
/etc/network/interfaces

Code: Select all

auto lo
#auto eth0
iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
address 10.0.0.7
gateway 10.0.0.1
netmask 255.255.255.0
/etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="mySSID"
        scan_ssid=1
        psk="myRedactedPassword"
}
iface xxxx inet manual means that something external to Network Manager will be configuring the network. It's just the way it's designed to work.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”