Hi @misc,
I have a Beagleboard-xM with Ansgtrom Linux and a PC running OpenBSD 4.8, AMD64 
version. My PC is connected via TP-Link wifi to household router (my otus0 
internet address for this connection is 192.168.1.101). The beagleboard is 
connected to the PC via ethernet.
On the Beagle I configured the ethernet device (which shows up as usb0 on 
Angstrom):

# ifconfig usb0 inet 192.168.10.10 netmask 255.255.255.0
# route add default gw 192.168.10.12 netmask 255.255.255.0 dev usb0
Also, in /etc/resolv.conf I added nameservers 203.12.160.35 & 203.12.160.36

On the OpenBSD PC I created a bridge:

# ifconfig nfe0 inet 192.168.10.12 netmask 255.255.255.0
# ifconfig bridge0 create
In /etc/hostname.nfe0 is the single word: up
In /etc/hostname.otus0 is the single word: up
In /etc/bridgename.bridge0 is: add nfe0 add otus0 up
In /etc/sysctl.conf I uncommented: net.inet.ip.forwarding=1

I have also tried uncommenting net.inet6.ip6.mforwarding=1 but it did not help.

I can ping 192.168.10.12 from the Beagle, and 192.168.10.10 from the PC, but I 
cannot ping 192.168.1.101 (the PC's wifi connection from the Beagle, "network 
is unreachable").
The first time I set this up (a few days ago), I could ping the outside world 
from the Beagle running Angstrom. I loaded Ubuntu onto the Beagle tried the 
setup again, and could not reach the outside internet. Now I've gone back to 
Angstrom and cannot get the connection to come back up. I am not sure why it 
worked before and not now but it seems like my OpenBSD bridge0 is not working. 
When it was working, typing ifconfig (as below) I seem to remember the output 
for bridge0 was longer than it is now, but am not sure. Probably it is some 
simple forgotten command but I do not know what it could be.

Thanks for any help!
Brett.

More detailed output:

------------------------------------------------------------------------
On the OpenBSD pc:

# ifconfig nfe0 inet 192.168.10.12 netmask 255.255.255.0
# ifconfig bridge0 create
# ifconfig                                               
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33160
        priority: 0
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr c8:3a:35:d4:64:2b
        priority: 0
        media: Ethernet autoselect (10baseT half-duplex)
        status: no carrier
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:25:11:1e:44:93
        priority: 0
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::225:11ff:fe1e:4493%nfe0 prefixlen 64 scopeid 0x2
        inet 192.168.10.12 netmask 0xffffff00 broadcast 192.168.10.255
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33160
        priority: 0
        groups: pflog
otus0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr d8:5d:4c:8e:b8:29
        priority: 4
        groups: wlan egress
        media: IEEE802.11 autoselect (OFDM54 mode 11g)
        status: active
        ieee80211: nwid linksys_hd chan 3 bssid 00:25:9c:83:5f:94 34dB wpapsk 
0x075ce6504c26846e32c144a71a0f7840988b9a8e9d4a7593243d4dfae845032e wpaprotos 
wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
        inet6 fe80::da5d:4cff:fe8e:b829%otus0 prefixlen 64 scopeid 0x7
        inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
bridge0: flags=0<>
        groups: bridge
        priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp
-----------------------------------------------------------------------------
# route show
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            192-168-1-1.tpgi.c UGS       36   996265     -    12 otus0
CPE-58-169-237-189 192-168-1-1.tpgi.c UGHD       1   996074     - L  56 otus0
124-168-64-155.dyn 192-168-1-1.tpgi.c UGHD       1   991997     - L  56 otus0
loopback           localhost          UGRS       0        0 33160     8 lo0  
localhost          localhost          UH         2       66 33160     4 lo0  
192.168.1/24       link#7             UC         1        0     -     4 otus0
192-168-1-1.tpgi.c 00:25:9c:83:5f:93  UHLc       3        0     -     4 otus0
192-168-1-101.tpgi localhost          UGHS       0        0 33160     8 lo0  
192.168.10/24      link#2             UC         1        0     -     4 nfe0 
192.168.10.10      32:45:70:13:d5:3e  UHLc       0        6     -     4 nfe0 
BASE-ADDRESS.MCAST localhost          URS        0        3 33160     8 lo0  

Internet6:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
::/104             localhost          UGRS       0        0     -     8 lo0  
::/96              localhost          UGRS       0        0     -     8 lo0  
localhost          localhost          UH        14        0 33160     4 lo0  
::127.0.0.0/104    localhost          UGRS       0        0     -     8 lo0  
::224.0.0.0/100    localhost          UGRS       0        0     -     8 lo0  
::255.0.0.0/104    localhost          UGRS       0        0     -     8 lo0  
::ffff:0.0.0.0/96  localhost          UGRS       0        0     -     8 lo0  
2002::/24          localhost          UGRS       0        0     -     8 lo0  
2002:7f00::/24     localhost          UGRS       0        0     -     8 lo0  
2002:e000::/20     localhost          UGRS       0        0     -     8 lo0  
2002:ff00::/24     localhost          UGRS       0        0     -     8 lo0  
fe80::/10          localhost          UGRS       1        0     -     8 lo0  
fe80::%nfe0/64     link#2             UC         0        0     -     4 nfe0 
fe80::225:11ff:fe1 00:25:11:1e:44:93  HL         0        0     -     4 lo0  
fe80::%lo0/64      fe80::1%lo0        U          0        0     -     4 lo0  
fe80::1%lo0        link#4             UHL        0        0     -     4 lo0  
fe80::%otus0/64    link#7             UC         0        0     -     4 otus0
fe80::da5d:4cff:fe d8:5d:4c:8e:b8:29  UHL        0        0     -     4 lo0  
fec0::/10          localhost          UGRS       0        0     -     8 lo0  
ff01::/16          localhost          UGRS       0        0     -     8 lo0  
ff01::%nfe0/32     link#2             UC         0        0     -     4 nfe0 
ff01::%lo0/32      localhost          UC         0        0     -     4 lo0  
ff01::%otus0/32    link#7             UC         0        0     -     4 otus0
ff02::/16          localhost          UGRS       1        0     -     8 lo0  
ff02::%nfe0/32     link#2             UC         0        0     -     4 nfe0 
ff02::%lo0/32      localhost          UC         0        0     -     4 lo0  
ff02::%otus0/32    link#7             UC         0        0     -     4 otus0
-------------------------------------------------------------------------------

On the Beagleboard running Angstrom:
r...@beagleboard:~# ifconfig usb0 inet 192.168.10.10 netmask 255.255.255.0
r...@beagleboard:~# [   95.218231] usb0: link up, 100Mbps, full-duplex, lpa 
0x41E1

r...@beagleboard:~# route add default gw 192.168.10.12 netmask 255.255.255.0 dev
 usb0
r...@beagleboard:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.10.12   255.255.255.0   UG    0      0        0 usb0
192.168.10.0    *               255.255.255.0   U     0      0        0 usb0

r...@beagleboard:~# ping 192.168.10.12
PING 192.168.10.12 (192.168.10.12) 56(84) bytes of data.
64 bytes from 192.168.10.12: icmp_seq=1 ttl=255 time=6.89 ms
64 bytes from 192.168.10.12: icmp_seq=2 ttl=255 time=0.427 ms
64 bytes from 192.168.10.12: icmp_seq=3 ttl=255 time=0.397 ms
^C
--- 192.168.10.12 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.397/2.574/6.898/3.057 ms

r...@beagleboard:~# ping 192.168.1.101
connect: Network is unreachable
r...@beagleboard:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.10.12   255.255.255.0   UG    0      0        0 usb0
192.168.10.0    *               255.255.255.0   U     0      0        0 usb0

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

Reply via email to