Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto lo
- iface lo inet loopback
- auto eth0
- allow-hotplug eth0
- iface eth0 inet static
- address 192.168.1.101
- netmask 255.255.255.0
- gateway 0.0.0.0
- #auto wlan0
- allow-hotplug wlan0
- iface wlan0 inet manual
- wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
- iface home inet static
- address 192.168.0.157
- netmask 255.255.255.0
- broadcast 192.168.0.255
- gateway 192.168.0.1
- iface default inet dhcp
- pi@raspberrypi ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
- ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
- update_config=1
- network={
- ssid="****"
- scan_ssid=1
- proto=RSN
- key_mgmt=WPA-PSK
- pairwise=CCMP TKIP
- group=CCMP TKIP
- psk="****"
- id_str="home"
- priority=5
- }
- pi@raspberrypi ~ $ sudo cat /etc/network/interfaces
- auto lo
- iface lo inet loopback
- auto eth0
- allow-hotplug eth0
- iface eth0 inet static
- address 192.168.1.101
- netmask 255.255.255.0
- auto wlan0
- allow-hotplug wlan0
- iface wlan0 inet static
- wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
- address 192.168.0.157
- netmask 255.255.255.0
- broadcast 192.168.0.255
- gateway 192.168.0.1
- iface default inet dhcp
- pi@raspberrypi ~ $ sudo cat /etc/default/ifplugd
- INTERFACES="eth0"
- HOTPLUG_INTERFACES="eth0"
- ARGS="-q -f -u0 -d10 -w -I"
- SUSPEND_ACTION="stop"
- pi@raspberrypi ~ $ sudo cat /etc/rc.local
- #!/bin/sh -e
- # Print the IP address
- _IP=$(hostname -I) || true
- if [ "$_IP" ]; then
- printf "My IP address is %sn" "$_IP"
- fi
- # Disable the ifplugd eth0
- sudo ifplugd eth0 --kill
- sudo ifup wlan0
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement