ถ้าเป็น E2 ลองทำตามนี้ครับ
ผมลอง Search จาก Google
ใช้ได้ทั้ง Open Pli และ GP3
ให้แก้ file ชื่อ interfaces อยู่ใน folder
user/share/network
ของเดิมจะเป็นอะไรก็ไม่ต้องสนใจครับ อาจไม่เหมือนกัน
เนื่องจากบางคนใช้ DHCP บางคน Lock IP
ให้เพิ่ม บรรทัดนี้ต่อท้าย แล้ว Save และ Restart เครื่อง เป็นอันเรียบร้อย
โดยแก้ 00:00:00:00:00:00 เป็น MAC Address ที่ต้องการครับ อย่าลืม safe และ Restart เครื่องด้วยครับ
pre-up ifconfig eth0 hw ether 00:00:00:00:00:00
ได้หรือไม่ได้ยังไง แจ้งด้วยนะครับ
ขอบคุณครับ ของ Pli 4.0 user/share/network ไม่มีหัวข้อ network
แต่ผมแก้ได้แล้ว โดย ect/network/if-pre-up.d/ สร้าง scip ชื่อ config mac 775
#!/bin/sh
ifconfig eth0 down
ifconfig eth0 hw ether 00:00:00:00:00:00 เปลี่ยนค่า mac เอง
ifconfig eth0 up
คุณปราให้คำแนะนำมา
แต่ถ้าเป็น PLi 3.0 ผมเคยแก้ง่าย etc/init.d/busybox-udhcpc
#!/bin/sh
ifconfig eth0 down
echo "network is down..."
sleep 2
#ifconfig eth0 hw ether 00:DE:FA:11:45:B5 แก้เอง
echo "set new mac...."
sleep 2
ifconfig eth0 up
echo "network is working...."
sleep 2
/etc/init.d/networking restart
# (c) 2010-2011 Wind River Systems, Inc.
#
# Busybox udhcpc init script
#
# script to start the udpchc DHCP client on boots where
# the parameter 'ip=dhcp' was included in the kernel parameters
# ensure the required binaries are present
[ -x /sbin/udhcpc ] || exit 1
[ -x /bin/grep ] || exit 1
[ -x /bin/mount ] || exit 1
# ensure /proc is mounted
if ! mount | grep -q "/proc "; then
exit 2
fi
rc=0
if grep -q -E "\bip=dhcp\b" /proc/cmdline; then
/sbin/udhcpc -D -s /usr/share/udhcpc/default.script
rc=$?
fi
exit $rc
ขอบคุณอีกครั้งครับ