mac adress

39 views
Skip to first unread message

Vusumzi Ndzengu

unread,
Nov 16, 2014, 2:34:39 AM11/16/14
to village-...@googlegroups.com


Hi All

I have strange scenario the mac addresses of the same devices appear differently on secn web page and under bat-hosts.

bat-hosts file

68:72:51:04:78:03 10.130.1.10 (gateway)

68:72:51:04:78:19 10.130.1.11

24:a4:3c:f8:81:c2 10.130.1.12

24:a4:3c:f8:81:bf 10.130.1.13

24:a4:3c:f8:81:28 10.130.1.14

24:a4:3c:f8:81:5c 10.130.1.15

24:a4:3c:f8:83:9c 10.130.1.16


here in the screen shot the ma the mac addresses start with 26 instead of 24 and 6a instead of 68







T Gillett

unread,
Nov 16, 2014, 3:47:58 AM11/16/14
to village-telco-dev

What does the ifconfig command show?

--
You received this message because you are subscribed to the Google Groups "Village Telco Development Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to village-telco-...@googlegroups.com.
To post to this group, send email to village-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/village-telco-dev/b16fdd25-15e6-480b-8fcb-1d8b7726cef8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vusumzi Ndzengu

unread,
Nov 16, 2014, 12:44:47 PM11/16/14
to village-...@googlegroups.com
Hi All

 here are the interfaces

 Link encap:Ethernet  HWaddr 86:1A:45:8C:A3:96 
          inet6 addr: fe80::841a:45ff:fe8c:a396/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:745519 errors:0 dropped:0 overruns:0 frame:0
          TX packets:482093 errors:0 dropped:940 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:71596487 (68.2 MiB)  TX bytes:613273059 (584.8 MiB)

br-lan    Link encap:Ethernet  HWaddr 68:72:51:05:78:03 
          inet addr:10.130.1.10  Bcast:10.130.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6a72:51ff:fe05:7803/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:969005 errors:0 dropped:0 overruns:0 frame:0
          TX packets:602202 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:59565687 (56.8 MiB)  TX bytes:71178572 (67.8 MiB)

br-lan:9  Link encap:Ethernet  HWaddr 68:72:51:05:78:03 
          inet addr:172.31.255.254  Bcast:172.31.255.255  Mask:255.255.255.252
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 68:72:51:05:78:03 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:634823 errors:0 dropped:0 overruns:0 frame:0
          TX packets:936469 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:57076310 (54.4 MiB)  TX bytes:87255342 (83.2 MiB)
          Interrupt:4

eth1      Link encap:Ethernet  HWaddr 6A:72:51:05:78:03 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:729569 errors:0 dropped:0 overruns:0 frame:0
          TX packets:611698 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:946797785 (902.9 MiB)  TX bytes:77911064 (74.3 MiB)
          Interrupt:5

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

wlan0     Link encap:Ethernet  HWaddr 68:72:51:04:78:03 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:160709 errors:0 dropped:0 overruns:0 frame:0
          TX packets:582560 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19604404 (18.6 MiB)  TX bytes:360663498 (343.9 MiB)

wlan0-1   Link encap:Ethernet  HWaddr 6A:72:51:04:78:03 
          inet addr:10.10.1.20  Bcast:10.10.1.255  Mask:255.255.255.0
          inet6 addr: fe80::6872:51ff:fe04:7803/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1532  Metric:1
          RX packets:7148779 errors:0 dropped:3409 overruns:0 frame:0
          TX packets:1887613 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:478894032 (456.7 MiB)  TX bytes:744294173 (709.8 MiB)

T Gillett

unread,
Nov 16, 2014, 2:55:43 PM11/16/14
to village-telco-dev

The SECN Status page is just displaying the output of the
    batctl o
command.

On 16/11/2014 5:34 PM, "Vusumzi Ndzengu" <ndze...@gmail.com> wrote:

T Gillett

unread,
Nov 16, 2014, 2:58:30 PM11/16/14
to village-telco-dev

So 'batctl o' and 'ifconfig' show the same MAC addresses.

Vusumzi Ndzengu

unread,
Nov 16, 2014, 3:25:14 PM11/16/14
to village-...@googlegroups.com
Hi

tlg it seem so here is the output of batcl o

root@UB-10:~# batctl o
Warning - unrecognized bat-host definition:                         
Warning - unrecognized bat-host definition: 
Warning - unrecognized bat-host definition: 
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:    
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition: 
Warning - unrecognized bat-host definition:  
Warning - unrecognized bat-host definition:   
Warning - unrecognized bat-host definition:    
Warning - unrecognized bat-host definition: 
Warning - unrecognized bat-host definition:      
Warning - unrecognized bat-host definition:       
Warning - unrecognized bat-host definition:       
[B.A.T.M.A.N. adv 2013.4.0, MainIF/MAC: wlan0-1/6a:72:51:04:78:03 (bat0)]
  Originator      last-seen (#/255)           Nexthop [outgoingIF]:   Potential nexthops ...
6a:72:51:04:78:19    0.120s   (246) 6a:72:51:04:78:19 [   wlan0-1]: 26:a4:3c:f8:81:5c (217) 26:a4:3c:f8:83:9c (217) 26:a4:3c:f8:81:bf (174) 26:a4:3c:f8:81:c2 (194) 26:a4:3c:f8:81:28 (217) 6a:72:51:04:78:19 (246)
26:a4:3c:f8:81:5c    0.010s   (255) 26:a4:3c:f8:81:5c [   wlan0-1]: 26:a4:3c:f8:81:c2 (185) 26:a4:3c:f8:81:28 (213) 6a:72:51:04:78:19 (204) 26:a4:3c:f8:81:bf (185) 26:a4:3c:f8:83:9c (209) 26:a4:3c:f8:81:5c (255)
26:a4:3c:f8:81:bf    0.030s   (210) 26:a4:3c:f8:81:bf [   wlan0-1]: 26:a4:3c:f8:81:5c (204) 26:a4:3c:f8:81:c2 (178) 26:a4:3c:f8:83:9c (205) 6a:72:51:04:78:19 (188) 26:a4:3c:f8:81:28 (182) 26:a4:3c:f8:81:bf (210)
26:a4:3c:f8:81:28    0.710s   (242) 26:a4:3c:f8:81:28 [   wlan0-1]: 26:a4:3c:f8:81:5c (210) 6a:72:51:04:78:19 (202) 26:a4:3c:f8:83:9c (205) 26:a4:3c:f8:81:c2 (175) 26:a4:3c:f8:81:bf (173) 26:a4:3c:f8:81:28 (242)
26:a4:3c:f8:83:9c    0.360s   (246) 26:a4:3c:f8:83:9c [   wlan0-1]: 26:a4:3c:f8:81:5c (220) 26:a4:3c:f8:81:bf (172) 26:a4:3c:f8:81:c2 (178) 26:a4:3c:f8:81:28 (209) 6a:72:51:04:78:19 (209) 26:a4:3c:f8:83:9c (246)
26:a4:3c:f8:81:c2    0.630s   (223) 26:a4:3c:f8:81:c2 [   wlan0-1]: 26:a4:3c:f8:81:5c (196) 6a:72:51:04:78:19 (191) 26:a4:3c:f8:83:9c (191) 26:a4:3c:f8:81:bf (163) 26:a4:3c:f8:81:28 (173) 26:a4:3c:f8:81:c2 (223)
root@UB-10:~#

Steve Song

unread,
Nov 16, 2014, 3:38:12 PM11/16/14
to village-...@googlegroups.com
Hi Vusi,

Try changing the 24 prefix to 26 on the MAC addresses beginning with 24 in the /etc/bat-hosts file.

-Steve

Vusumzi Ndzengu

unread,
Nov 16, 2014, 3:45:45 PM11/16/14
to village-...@googlegroups.com, st...@villagetelco.org
Hi

i chnaged the the 24 with 26 here is the output of batctl o
      10.130.1.11    0.840s   (255)       10.130.1.11 [   wlan0-1]:       10.130.1.15 (217)       10.130.1.16 (207)       10.130.1.13 (186)       10.130.1.12 (167)       10.130.1.14 (210)       10.130.1.11 (255)
      10.130.1.15    0.720s   (255)       10.130.1.15 [   wlan0-1]:       10.130.1.12 (160)       10.130.1.14 (220)       10.130.1.11 (221)       10.130.1.13 (185)       10.130.1.16 (210)       10.130.1.15 (255)
      10.130.1.13    0.790s   (216)       10.130.1.13 [   wlan0-1]:       10.130.1.15 (188)       10.130.1.12 (182)       10.130.1.16 (201)       10.130.1.11 (197)       10.130.1.14 (175)       10.130.1.13 (216)
      10.130.1.14    0.370s   (255)       10.130.1.14 [   wlan0-1]:       10.130.1.15 (225)       10.130.1.11 (225)       10.130.1.16 (217)       10.130.1.12 (181)       10.130.1.13 (185)       10.130.1.14 (255)
      10.130.1.16    0.630s   (243)       10.130.1.16 [   wlan0-1]:       10.130.1.15 (225)       10.130.1.13 (166)       10.130.1.12 (153)       10.130.1.14 (213)       10.130.1.11 (217)       10.130.1.16 (243)
      10.130.1.12    0.400s   (207)       10.130.1.12 [   wlan0-1]:       10.130.1.15 (187)       10.130.1.11 (194)       10.130.1.16 (188)       10.130.1.13 (169)       10.130.1.14 (172)       10.130.1.12 (207)
root@UB-10:~#

Steve Song

unread,
Nov 16, 2014, 3:46:47 PM11/16/14
to village-...@googlegroups.com
Well done.  That's what it should look like.

Cheers... Steve

Vusumzi Ndzengu

unread,
Nov 16, 2014, 3:56:22 PM11/16/14
to village-...@googlegroups.com, st...@villagetelco.org
Hi

thanks for the help maybe so now i can have spud working ?

T Gillett

unread,
Nov 16, 2014, 4:51:02 PM11/16/14
to village-telco-dev

So it seems that bathosts file is being generated incorrectly.

Vusumzi Ndzengu

unread,
Nov 17, 2014, 12:46:13 AM11/17/14
to village-...@googlegroups.com
Hi 

tlg how can i fix that ?

T Gillett

unread,
Nov 17, 2014, 2:52:57 AM11/17/14
to village-telco-dev
I am not familiar with with the software that generates the bathosts file.

Hopefully Steve or someone else who is familiar with it can suggest something.

Meanwhile if you edit the bathosts file to make it correct, does everything work OK?
That will give you a work around at least.

Song, Stephen

unread,
Nov 17, 2014, 7:07:16 AM11/17/14
to village-telco-dev
For spud, the /etc/bat-hosts file has to be manually populated with MAC and equivalent IP addresses.    Vusi must have accidentally copied the wrong MAC addresses into the file.  

Regards... Steve

Vusumzi Ndzengu

unread,
Nov 17, 2014, 7:47:56 AM11/17/14
to village-...@googlegroups.com
Hi

Steve those are mac addreses  thta were on the devices. is there any anyway to fix that?

T Gillett

unread,
Nov 17, 2014, 6:12:05 PM11/17/14
to village-telco-dev
I have done some general Googling on 'bat-hosts mac address'  and also searched the open-mesh.org wiki pages but haven't found a definitive answer, surprisingly.

However...

What is happening is that ifconfig reports the MAC address as per the label on the device, whereas batman-adv reports a MAC address that has been changed by adding 02 to the first octet.

Presumably batman-adv uses a different MAC address so that it can distinguish its interfaces from the hardware interfaces.

So the bottom line is that the bat-hosts file has to be built using the same MAC address as shown in batctl and not those on the label.

The difference appears to be simply the addition of 02 to the first octet, but it would pay to check.

T

Pieter van Zyl

unread,
Nov 17, 2014, 10:14:29 PM11/17/14
to village-...@googlegroups.com
 
I have not had the opportunity to evaluate the MP to date and did not look at your attached screen capture...
Vusumzi you need to remember a device with 3 network interfaces (IE Wi-Fi, wired and GSM)
Will have 3 different MAC addresses one each for Wi-Fi, wired and GSM respectively
Is that not perhaps why you see more than one MAC address on your MP?

 Pieter van Zyl
 

Reply all
Reply to author
Forward
0 new messages