內容目錄

OpenWRT mac address change

That’s my ‘nano /etc/config/network’ :

config 'switch' 'eth0'
    option 'vlan0' '1 2 3 4 5*'
    option 'vlan1' '0 5'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0.0'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'

config 'interface' 'wan'
    option 'ifname' 'eth0.1'
    option 'proto' 'dhcp'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'macaddr' '94:c6:91:54:a4:75'
  1. put the mac address in lowercase
  2. go to the SSH, and ifdown wan and ifup wan to use this configuration.

ref: https://openwrt.org/docs/guide-user/network/wifi/basic

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *