Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Simple configuration method of openwrt

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "simple configuration method of openwrt", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "simple configuration method of openwrt"!

1. Modify IP address

Method 1:

Edit the package/base-files/files/etc/config/network file in the openwrt directory

1 # Copyright (C) 2006 OpenWrt.org 2 3 config interface loopback 4 option ifname lo 5 option proto static 6 option ipaddr 127.0.0.1 7 option netmask 255.0.0.0 8 9 config interface lan 10 option ifname eth0 11 option type bridge 12 option proto static 13 option ipaddr 192.168.1.123 14 option netmask 255.255.255.0 15 option ip6assign 60 16 17 config globals globals 18 option ula_prefix auto

Set the IP in line 13 to the IP you want.

Method 2:

uci set network.lan.ipaddr=192.168.1.123uci commit/etc/init.d/network restart

Method 3:

vi /etc/config/network/etc/init.d/network restart2, Change time zone/hostname

The requested URL/files/etc/config/was not found on this server.

config system option hostname Kent option timezone CST-8 option zonename Asia/Shanghaiconfig timeserver ntp list server 0.openwrt.pool.ntp.org list server 1.openwrt.pool.ntp.org list server 2.openwrt.pool.ntp.org list server 3.openwrt.pool.ntp.org option enabled 1 option enable_server03, Set Chinese firmware

Go to make menufig menu--》LuCI--》Modules--》Translations--》English (zh-cn) Select on

4, openwrt set web interface

Go to make menufig menu--> LuCI--> Collections--> luci Select

5, hlk-rm04 Modify image default generation size

The requested URL/linux/ramips/images/Makefile was not found on this server.

# Build images for default ralink layout for 4MB flash# kernel + roots = 0x3b0000# $(1) = squashfs/initramfs# $(2) = lowercase board name# $(3) = dts file#ralink_default_fw_size_4M=3866624 ralink_default_fw_size_4M=8060928 (4M Change to 8M)6. Modify the root password

The requested URL/files/etc/shadow/was not found on this server.

root:$1$BTkC8R/1$ZtNrYbhknXmNKGHDJCmJc1:0:0:99999:7:::daemon:*:0:0:99999:7:::ftp:*:0:0:99999:7:::network:*:0:0:99999:7:::nobody:*:0:0:99999:7:::

The root password above is 123456.

7. Modify default memory

Go to make kernel_menufig menu--> Kernel hacking--> rootfstype=squashfs,jffs2 mem=32M

8. Modify the firmware address

The requested URL/dts/linux/was not found on this server.

partition@50000 { label = "firmware"; reg = ;};

3b0000 amended to 7b 0000

At this point, I believe that everyone has a deeper understanding of the "simple configuration method of openwrt," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report