Hi list, in order to achieve a more complex result, my first step is to correctly setup my alix3d3 + Wistron DCMA81 [wifi0: Atheros AR5414 chip found (MAC 10.5, PHY SChip 6.1, Radio 6.3)] as a wireless AP with WPA-PSK encryption.
Here are the result of two completely different attempts that failed: ATTEMPT NUMBER ONE: Following instruction on http://svn.voyage.hk/repos/voyage/branches/voyage-live/0.6.2/config/chroot_local-includes/README [3.5 Madwifi] I fail pretty quickly. My /etc/network/interfaces looks like this: #### /etc/network/interfaces #### auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto ath0 iface ath0 inet static address 10.1.20.1 netmask 255.255.255.0 broadcast 10.1.20.255 madwifi-base wifi1 wireless-mode Master up iwpriv ath0 mode 3 up iwconfig ath0 mode master up iwconfig ath0 essid voyage up iwconfig ath0 txpower auto up iwconfig ath0 enc off up iwconfig ath0 rate auto up nat.sh ath0 eth0 "10.1.20.0/24"iface eth0 inet dhcp #### EOF #### If I try /etc/init.d/networking restart I get: Reconfiguring network interfaces...[ 8415.962045] eth0: link up, 100Mbps, full-d uplex, lpa 0x41E1 [ 8415.994330] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1 wlanconfig: ioctl: No such device run-parts: /etc/network/if-pre-up.d/050madwifi exited with return code 1 Error for wireless request "Set Mode" (8B06) : SET failed on device ath0 ; No such device. SIOCSIFADDR: No such device ath0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device SIOCSIFBRDADDR: No such device ath0: ERROR while getting interface flags: No such device ath0: ERROR while getting interface flags: No such device Failed to bring up ath0. done. and ath0 is not up. ATTEMPT NUMBER TWO: First the problem, then all the details: When I try /etc/init.d/hostapd restart I get: Stopping advanced IEEE 802.11 management: hostapd. Starting advanced IEEE 802.11 management: hostapd failed! with no clue about where is the problem. Now all conf files and command outputs: after following this thread http://www.mail-archive.com/voyage-linux@list.voyage.hk/msg02858.html I modified my /etc/network/interfaces to look like this: ### /etc/network/interfaces ### auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto ath0 iface ath0 inet manual pre-up wlanconfig ath0 destroy || true # set up the ath0 device in AP mode before bringing up the interface pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap # remove the ath0 device when bringing the interface down post-down wlanconfig ath0 destroy up iwconfig ath0 essid "a_test" rate 54M channel 11 up ip link set ath0 up auto br0 iface br0 inet static # Assign your IP address, subnet and mask, broadcast address, and default gateway address 192.168.50.1 network 192.168.50.0 netmask 255.255.255.0 broadcast 192.168.50.255 gateway 192.168.50.2 # Bridge eth0 and ath0 with br0. bridge_ports eth0 ath0 #### EOF #### if I type /etc/init.d/networking restart I get: Reconfiguring network interfaces...[ 3228.696890] br0: port 1(eth0) entering disabled state [ 3228.992922] br0: port 2(ath0) entering disabled state [ 3229.008707] device ath0 left promiscuous mode [ 3229.021948] br0: port 2(ath0) entering disabled state [ 3229.405352] device eth0 left promiscuous mode [ 3229.418712] br0: port 1(eth0) entering disabled state ath0: ERROR while getting interface flags: No such device [ 3229.971373] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1 [ 3230.003741] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1 if-up.d/mountnfs[eth0]: waiting for interface ath0 before doing NFS mounts (warning). if-up.d/mountnfs[eth0]: waiting for interface br0 before doing NFS mounts (warning). wlanconfig: ioctl: No such device ath0 if-up.d/mountnfs[ath0]: waiting for interface br0 before doing NFS mounts (warning). [ 3231.456602] br0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature. [ 3231.565214] device eth0 entered promiscuous mode [ 3231.603612] device ath0 entered promiscuous mode [ 3231.632711] br0: port 2(ath0) entering learning state [ 3231.647449] br0: port 1(eth0) entering learning state Waiting for br0 to get ready (MAXWAIT is 30 seconds). [ 3246.647043] br0: topology change detected, propagating [ 3246.648021] br0: port 2(ath0) entering forwarding state [ 3246.678016] br0: topology change detected, propagating [ 3246.678016] br0: port 1(eth0) entering forwarding state done. iwconfig shows: lo no wireless extensions. eth0 no wireless extensions. wifi0 no wireless extensions. ath0 IEEE 802.11g ESSID:"a_test" Nickname:"" Mode:Master Frequency:2.462 GHz Access Point: 06:0B:6B:2E:25:D5 Bit Rate=54 Mb/s Tx-Power:16 dBm Sensitivity=1/1 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm Rx invalid nwid:8 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 br0 no wireless extensions. and ifconfig shows: ath0 Link encap:Ethernet HWaddr 06:0b:6b:2e:25:d5 inet6 addr: fe80::40b:6bff:fe2e:25d5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:72 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:3258 (3.1 KiB) br0 Link encap:Ethernet HWaddr 00:0d:b9:16:4b:0c inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0 inet6 addr: fe80::20d:b9ff:fe16:4b0c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:69 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:102 (102.0 B) TX bytes:3114 (3.0 KiB) eth0 Link encap:Ethernet HWaddr 00:0d:b9:16:4b:0c inet6 addr: fe80::20d:b9ff:fe16:4b0c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:321 errors:0 dropped:0 overruns:0 frame:0 TX packets:576 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:43751 (42.7 KiB) TX bytes:38452 (37.5 KiB) Interrupt:11 Base address:0x6000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:128 errors:0 dropped:0 overruns:0 frame:0 TX packets:128 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12119 (11.8 KiB) TX bytes:12119 (11.8 KiB) wifi0 Link encap:UNSPEC HWaddr 00-0B-6B-2E-25-D5-65-74-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1158 errors:0 dropped:0 overruns:0 frame:171 TX packets:1262 errors:674 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:280 RX bytes:72734 (71.0 KiB) TX bytes:140881 (137.5 KiB) Interrupt:10 Regarding the text above, I don't understand why eth0 does not get an IP address (it does with the standard interfaces conf file). I edited /etc/default/hostapd: #### /etc/default/hostapd #### # Defaults for hostapd initscript RUN_DAEMON="yes" DAEMON_CONF="/etc/hostapd/hostapd.conf" DAEMON_OPTS="-dd" #### EOF #### And this is /etc/hostapd/hostapd.conf: #### /etc/hostapd/hostapd.conf #### # based on howto at http://www.linux.com/articles/55617 interface=ath0 bridge=br0 driver=madwifi logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 debug=2 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=a_test #macaddr_acl=1 #accept_mac_file=/etc/hostapd/accept auth_algs=3 eapol_key_index_workaround=0 eap_server=0 wpa=1 #wpa_psk_file=/etc/hostapd/hostapd.wpa_psk wpa_passphrase=somerandomtext wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP wpa_group_rekey=600 wpa_gmk_rekey=86400 ####EOF#### Finally, when I try /etc/init.d/hostapd restart I get: Stopping advanced IEEE 802.11 management: hostapd. Starting advanced IEEE 802.11 management: hostapd failed! with no clue about where is the problem. /tmp/hostapd.dump does not exist even after remountrw. Any idea? Thank you, alfonso
_______________________________________________ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux