The steps for open-wrt system to permanently modify the Mac card address are as follows.
1, open SSH remote management
Click "System"-"administration" to find the following SSH Access entry (Dropbear is the Ssh-server program used by Open-wrt), and open the corresponding interface below. Here I am opening the LAN port. Note that the following "Password authentication" and "Allow root logins with Password" are selected, and then "Save & Apply";
2, set PPPoE (Broadband account)
The reason is to set up the network first, because if you modify the network card configuration file via SSH, and then set up PPPoE on the Web page, you will overwrite the previous network card configuration file. So you need to set up PPPoE first.
Click "Network"-"interfaces", locate the WAN below, click "Edit" on the right, set "Protocol" to "PPPoE", and fill in the account password below. If you know the MTU value, change "Override MTU" to the desired MTU value in "Advanced Settings". Other basic do not move, click "Save & Apply".
Simple optimization:
Click on "Network"-"Firewall", find "Lan=>wan" in "Zones" below, check the "MSS clamping" on the right. This setting can generally solve the telecom operators across the country set the MTU value improperly, resulting in mobile WiFi connection, QQ, micro-mail, etc. can not send out pictures of the problem.
3, permanently modify the network card MAC address
Go through SSH and make the following modifications
Vi/etc/config/network
Config interface ' Wan '
OPTION ifname ' eth1 '
Option _orig_ifname ' eth1 '
Option _orig_bridge ' false '
Option Proto ' PPPoE '
Option username ' Broadband account '
Option password ' broadband password '
Option MTU ' 1488 '
Option ' macaddr ' 08:10:76:23:8b:19 ' #添加这一行
Vi/etc/rc.local #添加如下几行
Ifconfig eth1 Down
Ifconfig eth1 hw ether 08:10:76:23:8b:19
Ifconfig eth1 up
Exit 0
Note that if you want to transfer files to Open-wrt using WINSCP, the file protocol needs to select the SCP (do not select the default sftp).