Home>Article>Operation and Maintenance> How to change the default IP in openwrt

How to change the default IP in openwrt

藏色散人
藏色散人 Original
2020-04-16 09:27:09 29283browse

How to change the default IP in openwrt

How to modify the default IP of openwrt

1. Modify it through the command

vi etc/config/network

Recommendation: "linux tutorial"

: Exit wq, and then restart it to change it to the desired 192.168.x.xxx

After updating the firmware To be revised again.

2. Modify the source code directly, once and for all

The modification location is at a certain location below. Different versions have different locations

/package/base-files/files/lib/functions/uci-defaults.sh

or

/package/base-files/files/bin/config_generate

Completed modification Then save and compile.

The above is the detailed content of How to change the default IP in openwrt. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:adb shell what does it mean Next article:adb shell what does it mean