Hello list;

 

I am having problems getting my wired interface eth0 and my wireless
interface wlan0 to play nice together.

I have a wireless adapter connected to a powered hub along with a USB
camera.

I have a network dome camera connected to the BBB ethernet port with a
static IP of 192.168.4.2

The WiFi has a static IP of 192.168.4.1

The BBB has a static IP of 192.168.4.3

 

I have included some information. 

There appears to be a conflict between the "/etc/network/interfaces" file
and "hostapd.conf".

 

hostapd.conf:

### Wireless network name ###

interface=wlan0

### Set your bridge name ###

#bridge=br0

 

#driver

driver=nl80211

country_code=US

## The name of your server##

ssid=Gaucho Robot 

## Channel to use

channel=7

hw_mode=g

#############Security Starts Here########################

# # Static WPA2 key configuration

# #1=wpa1, 2=wpa2, 3=both

# #wpa=2

## wpa_passphrase=yourpassword

## Key management algorithms ##

## wpa_key_mgmt=WPA-PSK

#

## Set cipher suites (encryption algorithms) ##

## TKIP = Temporal Key Integrity Protocol

## CCMP = AES in Counter mode with CBC-MAC

wpa_pairwise=TKIP

#rsn_pairwise=CCMP

#

## Shared Key Authentication ##

auth_algs=1

## Accept all MAC address ###

macaddr_acl=0

#enables/disables broadcasting the ssid

ignore_broadcast_ssid=0

# Needed for Windows clients

eapol_key_index_workaround=0

 

----------------------------------------------------------------------------
--------------------------------

 

/etc/networks/interfaces

 

# The loopback network interface

auto lo

iface lo inet loopback

 

# The primary network interface

#This works "sometimes !" 

auto eth0

iface eth0 inet static

address 192.168.10.127 <- My 10/100 Network

netmask 255.255.255.0

gateway 192.168.10.1

 

#WiFi Doesn't with this config

auto eth0

iface eth0 inet static

address 192.168.4.3

netmask 255.255.255.0

gateway 192.168.4.0

 

 

# WiFi Setup

auto wlan0

iface wlan0 inet static

     wpa-ssid "Multimedia Server" <- When wlan0 comes up it uses "Gaucho
Robot" as the ssid

#    wpa-psk  "password"          <- The ssid from hostapd.conf

address 192.168.4.1

network 192.168.4.0

netmask 255.255.255.0

broadcast 192.168.4.255

 

# Ethernet/RNDIS gadget (g_ether)

# ... or on host side, usbnet and random hwaddr

# Note on some boards, usb0 is automaticly setup with an init script

iface usb0 inet static

    address 192.168.7.2

    netmask 255.255.255.0

    network 192.168.7.0

    gateway 192.168.7.1

 

=====================================================================

 

root@beaglebone:~# nmap -T4 -F 192.168.4.0-255

 

Starting Nmap 6.00 ( http://nmap.org ) at 2015-03-01 20:47 UTC

Nmap scan report for 192.168.4.2 <-------------------------------Can ping
Dome Camera

Host is up (0.00079s latency).

All 100 scanned ports on 192.168.4.2 are closed

MAC Address: 00:D7:15:01:04:D5 (Unknown)

 

Nmap scan report for 192.168.4.3 <-------------------------------from
Beaglebone

Host is up (0.00019s latency).

Not shown: 93 closed ports

PORT     STATE SERVICE

22/tcp   open  ssh

80/tcp   open  http

139/tcp  open  netbios-ssn

445/tcp  open  microsoft-ds

3000/tcp open  ppp

3389/tcp open  ms-wbt-server

8080/tcp open  http-proxy

 

Nmap done: 256 IP addresses (2 hosts up) scanned in 39.75 seconds

====================================================================

 

If that isn't bad enough, wlan0 is only configured properly "sometimes" L

This is the result "if" it works:

 

root@beaglebone:~# ifconfig

eth0      Link encap:Ethernet  HWaddr 1c:ba:8c:e1:85:5e

          inet addr:192.168.10.127  Bcast:192.168.10.255  Mask:255.255.255.0

          inet6 addr: fe80::1eba:8cff:fee1:855e/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:189 errors:0 dropped:0 overruns:0 frame:0

          TX packets:297 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:29228 (28.5 KiB)  TX bytes:28958 (28.2 KiB)

          Interrupt:40

 

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:65536  Metric:1

          RX packets:5 errors:0 dropped:0 overruns:0 frame:0

          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:319 (319.0 B)  TX bytes:319 (319.0 B)

 

mon.wlan0 Link encap:UNSPEC  HWaddr
E0-CB-4E-A6-58-EC-00-00-00-00-00-00-00-00-00-00

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:12 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:1047 (1.0 KiB)  TX bytes:0 (0.0 B)

 

usb0      Link encap:Ethernet  HWaddr 1a:92:a3:52:26:d4

          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252

          UP BROADCAST 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)

 

wlan0     Link encap:Ethernet  HWaddr e0:cb:4e:a6:58:ec

          inet addr:192.168.4.1  Bcast:192.168.4.255  Mask:255.255.255.0

          inet6 addr: fe80::e2cb:4eff:fea6:58ec/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:55 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:8197 (8.0 KiB)

 

 

root@beaglebone:~# lsusb

Bus 001 Device 002: ID 05e3:0604 Genesys Logic, Inc. USB 1.1 Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 003: ID 046d:082d Logitech, Inc.
<---------------------------------------------------- Camera

Bus 001 Device 004: ID 0b05:1723 ASUSTek Computer, Inc. WL-167G v2 802.11g
Adapter [Ralink RT2571W] - WiFi Adapter

 

root@beaglebone:~# uname -a

Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l
GNU/Linux

 

 

 

"All that is necessary for the triumph of evil is that good men do nothing"
Edmond Burke (1729 - 1797)

 
<http://www.packtpub.com/building-a-home-security-system-with-beaglebone/boo
k>
http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book

http://ca.linkedin.com/pub/bill-pretty/2b/b07/602

 

 

 

 

 

 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to