MAC CLONE on WZR-HP-G300NH

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
nhanquy
DD-WRT Novice


Joined: 12 Aug 2010
Posts: 15

PostPosted: Sun Apr 17, 2011 5:24    Post subject: MAC CLONE on WZR-HP-G300NH Reply with quote
I put this script on startup and it seems to solve the problem of MAC clone (Now, no need to apply every time after booting)

Code:
#!/bin/sh

nvram set wan_hwaddr=`nvram get def_hwaddr`
ifconfig `nvram get wan_ifname` down
ifconfig `nvram get wan_ifname`  hw ether `nvram get def_hwaddr`
ifconfig `nvram get wan_ifname` up
kill -USR2  $(pidof udhcpc) 2> /dev/null
killall udhcpc 2> /dev/null
/usr/sbin/udhcpc -i `nvram get wan_ifname` -p /var/run/udhcpc/pid -s /tmp/udhcpc


Could someone fix this mac clone problem for the next release?

Thanks!
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum