public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Unable to connect to internet
@ 2009-03-11 20:57 marco tozzini
  2009-03-11 21:14 ` elektra
  2009-03-16 22:54 ` Sven Eckelmann
  0 siblings, 2 replies; 11+ messages in thread
From: marco tozzini @ 2009-03-11 20:57 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi All,
I have 2 fonera router running openwrt and batman
wireless IP are 192.168.2.200 and 192.168.2.203

Routers have separete wifi and eth interfaces

Here it is openwrt network config file:

root@OpenWrt:~# cat /etc/config/network
config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ifname' 'eth0'
        option 'ipaddr' '192.168.0.203'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.0.1'
        option 'dns' '192.168.0.1'

config 'interface' 'wifi'
        option 'ifname' 'ath0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.2.203'
        option 'netmask' '255.255.255.0'

other router has br-lan 192.168.1.200 and 192.168.0.200

router 192.168.2.203 is connected to my ADSL modem (IP 192.168.0.1) 
through ethernet port (br-lan in openwrt)
I would like to connect to internet (and at least to ADSL modem) but 
something doesn't work...

I used this command on node 200:
root@OpenWrt:~# batmand ath0

I used this command on node 203:
root@OpenWrt:~# batmand -a 192.168.0.1/24 ath0
Interface activated: ath0
Using interface ath0 with address 192.168.2.203 and broadcast address 
192.168.2.255


Here it is result from ping command issued from node 200

root@OpenWrt:~# ping -c 3 192.168.2.203
PING 192.168.2.203 (192.168.2.203): 56 data bytes
64 bytes from 192.168.2.203: seq=0 ttl=64 time=3.539 ms
64 bytes from 192.168.2.203: seq=1 ttl=64 time=2.875 ms
64 bytes from 192.168.2.203: seq=2 ttl=64 time=6.233 ms

--- 192.168.2.203 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 2.875/4.215/6.233 ms
root@OpenWrt:~# ping -c 3 192.168.0.203
PING 192.168.0.203 (192.168.0.203): 56 data bytes
64 bytes from 192.168.0.203: seq=0 ttl=64 time=4.981 ms
64 bytes from 192.168.0.203: seq=1 ttl=64 time=2.991 ms
64 bytes from 192.168.0.203: seq=2 ttl=64 time=3.119 ms

--- 192.168.0.203 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 2.991/3.697/4.981 ms
root@OpenWrt:~# ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes

--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:~# ssh root@192.168.0.203
root@192.168.0.203's password:


BusyBox v1.11.2 (2008-10-07 13:44:59 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r13118) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~# ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=0 ttl=255 time=4.106 ms
64 bytes from 192.168.0.1: seq=1 ttl=255 time=2.193 ms
64 bytes from 192.168.0.1: seq=2 ttl=255 time=2.187 ms

--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 2.187/2.828/4.106 ms
root@OpenWrt:~#

As you can see from node 200 I can ping node 203 (wireless interface 
192.168.2.203 and wired interface 192.168.0.203), but I'm unable to go 
through adsl modem (192.168.0.1)
But I can connect to adsl modem from node 203

Any Hints?

Thanks

Ciao
Marco



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [B.A.T.M.A.N.] Unable to connect to internet
@ 2009-03-17  9:39 Marco Tozzini
  0 siblings, 0 replies; 11+ messages in thread
From: Marco Tozzini @ 2009-03-17  9:39 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


----- Original Message Follows -----
From: Sven Eckelmann


> Solution was found today on irc.
...

> Regards,
>     Sven

indeed it is !
thanks you so much for your support (expecially d0tslash on
irc #batman channel)

Ciao
Marco


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-03-17  9:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 20:57 [B.A.T.M.A.N.] Unable to connect to internet marco tozzini
2009-03-11 21:14 ` elektra
2009-03-12 21:40   ` marco tozzini
2009-03-13  2:11     ` Marek Lindner
2009-03-14  8:13       ` marco tozzini
2009-03-14 11:01         ` Marek Lindner
2009-03-14  8:04     ` marco tozzini
2009-03-14  8:52   ` marco tozzini
2009-03-14  9:14     ` elektra
2009-03-16 22:54 ` Sven Eckelmann
  -- strict thread matches above, loose matches on Subject: below --
2009-03-17  9:39 Marco Tozzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox