Open-wrt system How to set up PPPoE to permanently modify the NIC MAC address

Source: Internet
Author: User
Tags ssh ssh access

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).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.