OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Bridge Usb0 And Wlan0
colin
post May 24 2007, 02:29 PM
Post #1





Group: Members
Posts: 7
Joined: 6-October 04
Member No.: 4,893



Hi,

I am sure the answer is in the forum somewhere, but I can not find it and I am stuck.

I have C1000 and have installed 3.5.4.1. I am trying to connect to the internet via my laptop using a bridge on the laptop between usb0 and wlan0. The wlan0 connects to my ADSL router.

I think I have followed the procedures on the OZ web site and in the pinned connection topic in this forum.

I have got it to the stage where the C1000 talks to the laptop and the laptop will talk to the world, but the bridge does not seem to forward between usb0 and wlan0 (no ping from the C1000 to anything other than the laptop.)

I am now stuck. The laptop is running slackware, and I will try on the slackware forum if that is the right place to ask.

Hope someone can help.

I have appended the output of some commands below.

Cheers,

Colin

So here what is set up laptop
+++++++++++++++++

// PROMISC is set and there is no IP address on wlan0 and usb0. The br0 bridge has an
// address assigned by dhcpcd

root@slain:/home/colin/Desktop/Zaurus# ifconfig
br0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.123.148 Bcast:192.168.123.255 Mask:255.255.255.0
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/xx Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10477 errors:0 dropped:0 overruns:0 frame:0
TX packets:6261 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5101013 (4.8 MiB) TX bytes:707382 (690.8 KiB)

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:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6500 (6.3 KiB) TX bytes:6500 (6.3 KiB)

usb0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/xx Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:5544 errors:0 dropped:0 overruns:0 frame:0
TX packets:3139 errors:24 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:432766 (422.6 KiB) TX bytes:213405 (208.4 KiB)

wlan0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/xx Scope:Link
UP BROADCAST NOTRAILERS RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:4945 errors:0 dropped:0 overruns:0 frame:0
TX packets:11351 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4738990 (4.5 MiB) TX bytes:1067462 (1.0 MiB)
Interrupt:20 Memory:c0200000-c0202000

// Laptop routing seems correct

root@slain:/home/colin/Desktop/Zaurus# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.123.0 * 255.255.255.0 U 0 0 0 br0
loopback * 255.0.0.0 U 0 0 0 lo
default router 0.0.0.0 UG 0 0 0 br0

// bridge claims to be forwarding in dmesg output
br0: port 2(usb0) entering learning state
br0: port 1(wlan0) entering learning state
br0: no IPv6 routers present
br0: topology change detected, propagating
br0: port 2(usb0) entering forwarding state
br0: topology change detected, propagating
br0: port 1(wlan0) entering forwarding state

// no net filtering in for the bridge
root@slain:/home/colin/Desktop/Zaurus# cat /proc/sys/net/bridge/*
0
0
0
0


on the C1000, 192.168.123.55, I have
+++++++++++++++++++++++


// It knows the route to the gateway, the router at IP address 192.168.123.254.
root@slain:/home/colin/Desktop/Zaurus# ssh 192.168.123.55
root@192.168.123.55's password:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.123.0 * 255.255.255.0 U 0 0 0 usb0
default 192.168.123.254 0.0.0.0 UG 0 0 0 usb0
#

irda0 Link encap:UNSPEC HWaddr xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx
NOARP MTU:2048 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:8
RX bytes:0 (0.0 cool.gif TX bytes:0 (0.0 cool.gif

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:5999 errors:0 dropped:0 overruns:0 frame:0
TX packets:5999 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:664986 (649.4 KiB) TX bytes:664986 (649.4 KiB)

sit0 Link encap:UNSPEC HWaddr xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx-xx
NOARP MTU:1480 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:0
RX bytes:0 (0.0 cool.gif TX bytes:0 (0.0 cool.gif

usb0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.123.55 Bcast:192.168.123.255 Mask:255.255.255.0
inet6 xxxx: xxxx::xxxx:xxxx:xxxx:xxxx/xx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3759 errors:0 dropped:0 overruns:0 frame:0
TX packets:6580 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:198769 (194.1 KiB) TX bytes:597037 (583.0 KiB)

//192.168.123.254 is the router and 192.168.123.148 is the latop
//traceroute shows the router is unreachable,

# traceroute 192.168.123.254
traceroute to 192.168.123.254 (192.168.123.254), 30 hops max, 40 byte packets
1 192.168.123.55 (192.168.123.55) 3026.23 ms !H 3031.38 ms !H 3039.61 ms !H
# traceroute 192.168.123.148
traceroute to 192.168.123.148 (192.168.123.148), 30 hops max, 40 byte packets
1 192.168.123.148 (192.168.123.148) 2.819 ms 4.624 ms 2.816 ms
#
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 3rd July 2015 - 02:05 PM