Modify

Opened 3 years ago

Last modified 3 years ago

#18484 new defect

Override mac address doesn't work

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Override mac address Cc:

Description

Hi. Using latest trunk on WDR4900 rev 2 I can't no longer override the wan mac address, as for ar71xx target the mac is hardcoded as D8:14:6D:FE:32:8C. On lan interface it gets overriden.
Here's the config:

config interface 'wan'
        option ifname 'eth0'
        option proto 'static'
        option ipaddr '192.168.1.22'
        option netmask '255.255.255.0'
        option gateway '192.168.1.1'
        option dns '8.8.8.8'
        option delegate '0'
        option macaddr '15:AA:69:44:B2:17'

root@OpenWrt:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr D8:14:6D:FE:32:8C  
          inet addr:192.168.1.22  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::da15:dff:fefe:322b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8750142 errors:0 dropped:609 overruns:0 frame:0
          TX packets:5168786 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2975322119 (2.7 GiB)  TX bytes:550739622 (525.2 MiB)
          Interrupt:4

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by bittorf@…

i will have a look into this.

comment:2 Changed 3 years ago by bittorf@…

here it looks like this:

root@Schreibtischspinne:~ cat /etc/openwrt_version 
r43102

root@Schreibtischspinne:~ uci show network.wan
network.wan=interface
network.wan.ifname=eth0.2
network.wan.proto=static
network.wan.ipaddr=10.63.43.253
network.wan.netmask=255.255.255.252
network.wan.macaddr=00:04:9f:00:08:08

root@Schreibtischspinne:~ ip address show dev eth0.2
9: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 00:04:9f:00:08:08 brd ff:ff:ff:ff:ff:ff
    inet 10.63.43.253/30 brd 10.63.43.255 scope global eth0.2
       valid_lft forever preferred_lft forever
    inet6 fe80::204:9fff:fe00:808/64 scope link 
       valid_lft forever preferred_lft forever

so my "special" mac is applied. please show us: 'uci show network.wan'

comment:3 follow-up: Changed 3 years ago by bittorf@…

please also give the exact version, here:

TP-LINK TL-WDR4900 v1

comment:4 in reply to: ↑ 3 Changed 3 years ago by anonymous

Replying to bittorf@…:

please also give the exact version, here:

TP-LINK TL-WDR4900 v1
root@OpenWrt:~# cat /etc/openwrt_version
r43514
root@OpenWrt:~# uci show network.wan
network.wan=interface
network.wan.ifname=eth0
network.wan.proto=static
network.wan.ipaddr=192.168.1.22
network.wan.netmask=255.255.255.0
network.wan.gateway=192.168.1.1
network.wan.dns=8.8.8.8
network.wan.macaddr=15:AA:69:44:B2:17
root@OpenWrt:~# ip address show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether d8:14:6d:fe:32:8c brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.22/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::da15:dff:fefe:322b/64 scope link
       valid_lft forever preferred_lft forever
TP-Link TL-WDR4900 v2

comment:5 Changed 3 years ago by bittorf@…

maybe i did something wrong with:
https://dev.openwrt.org/changeset/43074/trunk

this is really a 'v2' - i dont have such a board here in my zoo.
can you please tell us, which mac is on the board and what is the output
of:

. /lib/functions.sh
. /lib/functions/system.sh
echo "'$( mpc85xx_board_name )'"

I=0
while [ $I -lt 1000 ]; do
mtd_get_mac_binary config $I | grep ^'d8:14:6d' && echo $I
let I+=1
done

comment:6 follow-up: Changed 3 years ago by anonymous

this problem not only happen on TP-Link TL-WDR4900 v2.
i update other router to r43514, also have this problem include ramips ar71xx...

comment:7 in reply to: ↑ 6 Changed 3 years ago by bittorf@…

Replying to anonymous:

this problem not only happen on TP-Link TL-WDR4900 v2.
i update other router to r43514, also have this problem include ramips ar71xx...

please open another ticket for that (and post the output of above command - replace the vendor-id of the mac and the correct partition name, e.g. 'config')

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.