#21796: Cloned macaddress on many huawey hg553
----------------------------------+--------------------------------
Reporter: alessandro@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: base system | Version: Chaos Calmer 15.05
Keywords: hardcoded macaddress |
----------------------------------+--------------------------------
Hi, we've tried to configure more than one VodafoneStation Huawey HG553 in
bridge mode (WDS/mac80211) over our network in accord with the following
schema:
[MyLAN - Site 1] <--> [HG553-01, AP(WDS)] -)) ((- [HG553-02, Client(WDS)]
and
[HG553-02, Client(WDS)] <--> [HG553-03, AP] -)) [MyLAN - Site 2]
Where <--> means "wired connection" and -)) ((- means "wireless
connection".
We've seeked for the right procedure over the internet, then we've applied
to our hardware devices after the firmware installation by jtag cable
using the firmware downloaded from here:
http://downloads.openwrt.org/chaos_calmer/15.05/brcm63xx/generic/openwrt-15.05
-brcm63xx-generic-HG553-squashfs-cfe.bin
Everythings goes fine and now we've three perfectly identical openwrt
router systems. We've attached to this ticket the outputs of ifconfig
command for each.
So, all routers had the same macaddress for eth0 and the same macaddress
for wlan0 card of all others.
We've overwrited the macaddress of br-lan on all routers and we've wrote
the follow startup script for fix wlan0 macaddress for HG553-02 and
HG553-03:
root@RVS02:~# vi /etc/init.d/clonemac
#!/bin/sh /etc/rc.common
#Copyright (C) 2014 OpenWrt.org
START=94
STOP=15
start() {
ifconfig wlan0 down
ifconfig wlan0 hw ether '00:24:D2:1A:5F:8x'
ifconfig wlan0 up
}
stop() {
echo "Stop."
}
:wq!
root@RVS02:~# chmod +x /etc/init.d/clonemac
root@RVS02:~# /etc/init.d/clonemac enable
root@RVS02:~# /etc/init.d/clonemac start
We've also added the follow lines to /etc/rc.common, start section, to our
HG553-02 e HG553-03:
ifconfig wlan0 down
ifconfig wlan0 hw ether '00:24:D2:1A:5F:8x'
ifconfig wlan0 up
The macaddress we've used for the HG553-02 is '00:24:D2:1A:5F:86' and for
the HG553-03 is '00:24:D2:1A:5F:88'
But it's does'nt work at system startup.
However, if we run manually the clonemac script it's work fine and the WDS
Bridge between the HG553-01 and the HG553-02 goes online, but not all work
fine. It's impossible to connect people's devices to the HG553-03 for surf
the net.
Now, the question:
there's a way for write hardcode the macaddress into the bin image before
upload it to each routers ?
We hope, we plan to use many Huawey HG553 devices to improve a open
wireless network over the 40k square meters in the common place where we
live as a free community with all the peolple, in the city center of
Turin; where people fight for their rigths. Into the Freed Cavallerizza
Reale of Turin, a heritage of the past in which we can see the future of
arts and culture.
Thanks for all, best regards.
-----------------------------------------------------------------------------
root@RVS01:~# ifconfig
br-lan Link encap:Ethernet HWaddr 00:24:D2:1A:5F:83
inet addr:192.168.254.3 Bcast:192.168.254.255
Mask:255.255.255.0
inet6 addr: fdd8:c547:fcf9::1/60 Scope:Global
inet6 addr: fe80::224:d2ff:fe1a:5f83/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3084 errors:0 dropped:0 overruns:0 frame:0
TX packets:3055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:329973 (322.2 KiB) TX bytes:630824 (616.0 KiB)
eth0 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:81
inet6 addr: fe80::224:d2ff:fe1a:5f81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3585 errors:0 dropped:0 overruns:0 frame:0
TX packets:3073 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:492244 (480.7 KiB) TX bytes:644940 (629.8 KiB)
Interrupt:14
eth0.1 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:81
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3585 errors:0 dropped:0 overruns:0 frame:0
TX packets:3058 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:427714 (417.6 KiB) TX bytes:631002 (616.2 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:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1566 (1.5 KiB) TX bytes:1566 (1.5 KiB)
wlan0 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:82
inet6 addr: fe80::224:d2ff:fe1a:5f82/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:471 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:48974 (47.8 KiB)
-----------------------------------------------------------------------------
root@RVS02:~# ifconfig
br-lan Link encap:Ethernet HWaddr 00:24:D2:1A:5F:84
inet addr:192.168.254.4 Bcast:192.168.254.255
Mask:255.255.255.0
inet6 addr: fd67:775c:e967::1/60 Scope:Global
inet6 addr: fe80::224:d2ff:fe1a:5f84/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12136 errors:0 dropped:0 overruns:0 frame:0
TX packets:13052 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1394400 (1.3 MiB) TX bytes:2735961 (2.6 MiB)
eth0 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:81
inet6 addr: fe80::224:d2ff:fe1a:5f81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13920 errors:0 dropped:0 overruns:0 frame:0
TX packets:13069 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2075779 (1.9 MiB) TX bytes:2790015 (2.6 MiB)
Interrupt:14
eth0.1 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:81
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13790 errors:0 dropped:0 overruns:0 frame:0
TX packets:13054 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1776416 (1.6 MiB) TX bytes:2736093 (2.6 MiB)
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:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1557 (1.5 KiB) TX bytes:1557 (1.5 KiB)
wlan0 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:82
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
-----------------------------------------------------------------------------
br-lan Link encap:Ethernet HWaddr 00:24:D2:1A:5F:87
inet addr:192.168.254.5 Bcast:192.168.254.255
Mask:255.255.255.0
inet6 addr: fe80::224:d2ff:fe1a:5f87/64 Scope:Link
inet6 addr: fd2c:3b27:5723::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11890 errors:0 dropped:0 overruns:0 frame:0
TX packets:13064 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1346130 (1.2 MiB) TX bytes:2731645 (2.6 MiB)
eth0 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:81
inet6 addr: fe80::224:d2ff:fe1a:5f81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13448 errors:0 dropped:0 overruns:0 frame:0
TX packets:13305 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1957130 (1.8 MiB) TX bytes:2827137 (2.6 MiB)
Interrupt:14
eth0.1 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:81
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13413 errors:0 dropped:0 overruns:0 frame:0
TX packets:13290 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1712478 (1.6 MiB) TX bytes:2772271 (2.6 MiB)
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:65536 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3182 (3.1 KiB) TX bytes:3182 (3.1 KiB)
wlan0 Link encap:Ethernet HWaddr 00:24:D2:1A:5F:82
inet6 addr: fe80::224:d2ff:fe1a:5f82/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:202 errors:0 dropped:0 overruns:0 frame:0
TX packets:735 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:40149 (39.2 KiB) TX bytes:99404 (97.0 KiB)
--
Ticket URL: <https://dev.openwrt.org/ticket/21796>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets