public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: johnzeng <johnzeng2013@yahoo.com>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: how to config gateway ?
Date: Tue, 01 Nov 2016 21:28:43 +0800	[thread overview]
Message-ID: <5818988B.5050600@yahoo.com> (raw)


Hello Dear Sir :

after i succeed to connect hostA to hostB at wifi environment this
afternoon , and i config gateway between hostA and hostB,

i run avahi-autoipd bat0 at two host only ( not run dhcpcd ) and run
batctl gw_mode server and batctl gw_mode server 5mbit/1mbit at hostA,

and run batctl gw_mode client and batctl gw_mode client 20 at hostB


Whether i need config dhcpcd at hostA ? if possible , please give me a
example .

Thanks

---------------------------
HostB status

--------------------------
[root@alarmpi ~]# batctl gwl
Gateway (#/255) Nexthop [outgoingIF]: advertised uplink bandwidth ...
[B.A.T.M.A.N. adv 2015.2, MainIF/MAC: wlan0/c8:3a:35:c9:ce:71 (bat0)]
=> 00:b0:8c:e7:25:3a (248) 00:b0:8c:e7:25:3a [ wlan0]: 5.0/1.0 MBit

[root@alarmpi ~]# batctl gw_mode
client (selection class: 20)

[B.A.T.M.A.N. adv 2015.2, MainIF/MAC: wlan0/c8:3a:35:c9:ce:71 (bat0
BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]: Potential nexthops ...
00:b0:8c:e7:25:3a 0.840s (229) 00:b0:8c:e7:25:3a [ wlan0]:
00:b0:8c:e7:25:3a (229)


---------------------------
HostA status

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

[root@alarmpi ~]# batctl gw_mode
server (announced bw: 5.0/1.0 MBit)
[root@alarmpi ~]# batctl o
[B.A.T.M.A.N. adv 2015.2, MainIF/MAC: wlan0/00:b0:8c:e7:25:3a (bat0
BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]: Potential nexthops ...
c8:3a:35:c9:ce:71 0.440s (239) c8:3a:35:c9:ce:71 [ wlan0]:
c8:3a:35:c9:ce:71 (239)
[root@alarmpi ~]# batctl gwl
Gateway (#/255) Nexthop [outgoingIF]: advertised uplink bandwidth ...
[B.A.T.M.A.N. adv 2015.2, MainIF/MAC: wlan0/00:b0:8c:e7:25:3a (bat0)]
No gateways in range ..




             reply	other threads:[~2016-11-01 13:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-01 13:28 johnzeng [this message]
2016-11-01 13:39 ` [B.A.T.M.A.N.] how to config gateway ? Sven Eckelmann
     [not found]   ` <5818B129.7090509@yahoo.com>
2016-11-01 15:25     ` Sven Eckelmann
2016-11-01 15:34       ` johnzeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5818988B.5050600@yahoo.com \
    --to=johnzeng2013@yahoo.com \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox