18 octobre 2015

Configuration avec adresse IP static en Wifi sous Raspberry debian:

/etc/network/interfaces
____________
auto lo
iface lo inet loopback

#auto eth0
iface eth0 inet static
   address 192.168.0.122
   netmask 255.255.255.0
   gateway 192.168.0.254

allow-hotplug wlan0

iface default inet dhcp

auto wlan0
iface wlan0 inet static
   address 192.168.0.112
   netmask 255.255.255.0
   gateway 192.168.0.254
   wpa-essid "xxx"
   wpa-psk "yyyyyyyyyy..."
____________

====================================================
Comment configurer la meme adresse IPstatic pour plusieurs reseaux Wifi Raspberry debian:
/etc/network/interfaces

____________

auto lo
iface lo inet loopback

#auto eth0
iface eth0 inet static
   address 192.168.0.122
   netmask 255.255.255.0
   gateway 192.168.0.254

allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
  address 192.168.0.112
  netmask 255.255.255.0
  gateway 192.168.0.254
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

#iface default inet dhcp

#auto wlan0
#iface wlan0 inet static
   #address 192.168.0.112
   #netmask 255.255.255.0
   #gateway 192.168.0.254
   #wpa-essid "xxxxx"
   #wpa-psk "yyyyyyyyyyy"

____________
vi /etc/wpa_supplicant/wpa_supplicant.conf
____________
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="reseau1"
        psk="passphrase"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        auth_alg=OPEN
}
network={
        ssid="reseau2"
        psk="passphrase"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        auth_alg=OPEN
}

____________





Aucun commentaire: