ifconfig
sudo service hostapd status
sudo service isc-dhcp-server status
sudo ifdown wlan0
sudo ifup wlan0
sudo service hostapd stop
sudo service isc-dhcp-server stop
sudo service isc-dhcp-server start
sudo service hostapd start
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n reless Adapter [Realtek RTL8188CUS]
pi@raspberrypi ~ $
pi@raspberrypi ~ $ sudo ifdown wlan0
/etc/network/interfaces:3: unknown method
ifdown: couldn't read interfaces file "/etc/network/interfaces"
pi@raspberrypi ~ $ sudo ifup wlan0
/etc/network/interfaces:3: unknown method
ifup: couldn't read interfaces file "/etc/network/interfaces"
pi@raspberrypi ~ $ sudo service hosapd stop
hosapd: unrecognized service
pi@raspberrypi ~ $ sudo service isc-dhcp-server stop
[FAIL] Stopping ISC DHCP server: dhcpd failed!
pi@raspberrypi ~ $ sudo service isc-dhcp-server start
[FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!
failed!
pi@raspberrypi ~ $ sudo service hostapd start
[ ok ] Starting advanced IEEE 802.11 management: hostapd.
pi@raspberrypi ~ $ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 74:da:38:0c:c0:c0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
pi@raspberrypi ~ $
cat /etc/network/interfaces
login as:
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet DHCP
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
gateway 192.168.42.1
pi@raspberrypi ~ $
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
#iface wlan0 inet manual
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
Users browsing this forum: Yahoo [Bot] and 0 guests