first
uci set network.lan.ipaddr="192.168.1.20"
uci set network.lan.gateway="192.168.1.1"
uci set network.lan.dns="192.168.1.1"
uci commit
/etc/init.d/network restart
login as: root
BusyBox v1.36.1 (2024-08-18 07:55:46 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r27161-8d25723865
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# uci show
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].cachesize='1000'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].filter_aaaa='0'
dhcp.@dnsmasq[0].filter_a='0'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth='on'
dropbear.@dropbear[0].RootPasswordAuth='on'
dropbear.@dropbear[0].Port='22'
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='REJECT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].network='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
firewall.@zone[1].network='wan' 'wan6'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@rule[7]=rule
firewall.@rule[7].name='Allow-IPSec-ESP'
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[8]=rule
firewall.@rule[8].name='Allow-ISAKMP'
firewall.@rule[8].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd71:60a3:2a06::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth0.1'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.20'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.gateway='192.168.1.1'
network.lan.dns='192.168.1.1'
network.@device[1]=device
network.@device[1].name='eth0.2'
network.@device[1].macaddr='b0:4e:26:22:8c:59'
network.wan=interface
network.wan.device='eth0.2'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='eth0.2'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='1 2 3 4 6t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='0 6t'
system.@system[0]=system
system.@system[0].hostname='OpenWrt'
system.@system[0].timezone='UTC'
system.@system[0].ttylogin='0'
system.@system[0].log_size='64'
system.@system[0].urandom_seed='0'
system.ntp=timeserver
system.ntp.enabled='1'
system.ntp.enable_server='0'
system.ntp.server='0.openwrt.pool.ntp.org' '1.openwrt.pool.ntp.org' '2.openwrt.pool.ntp.org' '3.openwrt.pool.ntp.org'
system.led_wlan2g=led
system.led_wlan2g.name='wlan2g'
system.led_wlan2g.sysfs='green:wlan'
system.led_wlan2g.trigger='phy0tpt'
system.led_lan1=led
system.led_lan1.name='lan1'
system.led_lan1.sysfs='green:lan1'
system.led_lan1.trigger='switch0'
system.led_lan1.port_mask='0x2'
system.led_lan2=led
system.led_lan2.name='lan2'
system.led_lan2.sysfs='green:lan2'
system.led_lan2.trigger='switch0'
system.led_lan2.port_mask='0x4'
system.led_lan3=led
system.led_lan3.name='lan3'
system.led_lan3.sysfs='green:lan3'
system.led_lan3.trigger='switch0'
system.led_lan3.port_mask='0x8'
system.led_lan4=led
system.led_lan4.name='lan4'
system.led_lan4.sysfs='green:lan4'
system.led_lan4.trigger='switch0'
system.led_lan4.port_mask='0x10'
system.led_wan=led
system.led_wan.name='wan'
system.led_wan.sysfs='green:wan'
system.led_wan.trigger='switch0'
system.led_wan.port_mask='0x01'
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='platform/10300000.wmac'
wireless.radio0.band='2g'
wireless.radio0.channel='1'
wireless.radio0.htmode='HT20'
wireless.radio0.disabled='1'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='OpenWrt'
wireless.default_radio0.encryption='none'
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/kmods/6.6.45-1-9a16ae37ede613995c3fc97bd2fcf7c1/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/kmods/6.6.45-1-9a16ae37ede613995c3fc97bd2fcf7c1/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install luci
Installing luci (23.051.66410~a505bb1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci_23.051.66410~a505bb1_all.ipk
Installing luci-proto-ipv6 (24.148.86114~fbbfdb4) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-proto-ipv6_24.148.86114~fbbfdb4_all.ipk
Installing rpcd (2024.02.22~8ef4c258-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd_2024.02.22~8ef4c258-r1_mipsel_24kc.ipk
Installing rpcd-mod-file (2024.02.22~8ef4c258-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd-mod-file_2024.02.22~8ef4c258-r1_mipsel_24kc.ipk
Installing rpcd-mod-luci (20240305-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/rpcd-mod-luci_20240305-r1_mipsel_24kc.ipk
Installing rpcd-mod-ucode (2024.02.22~8ef4c258-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd-mod-ucode_2024.02.22~8ef4c258-r1_mipsel_24kc.ipk
Installing cgi-io (2022.08.10~901b0f04-r21) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/cgi-io_2022.08.10~901b0f04-r21_mipsel_24kc.ipk
Installing ucode-mod-math (2024.07.11~1a8a0bcf-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/ucode-mod-math_2024.07.11~1a8a0bcf-r1_mipsel_24kc.ipk
Installing ucode-mod-html (1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/ucode-mod-html_1_mipsel_24kc.ipk
Installing liblucihttp0 (2023.03.15~9b5b683f-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/liblucihttp0_2023.03.15~9b5b683f-r1_mipsel_24kc.ipk
Installing liblucihttp-ucode (2023.03.15~9b5b683f-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/liblucihttp-ucode_2023.03.15~9b5b683f-r1_mipsel_24kc.ipk
Installing luci-base (24.212.79282~65b8002) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-base_24.212.79282~65b8002_mipsel_24kc.ipk
Installing luci-app-firewall (24.148.86114~fbbfdb4) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-app-firewall_24.148.86114~fbbfdb4_all.ipk
Installing rpcd-mod-iwinfo (2024.02.22~8ef4c258-r1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd-mod-iwinfo_2024.02.22~8ef4c258-r1_mipsel_24kc.ipk
Installing luci-mod-status (24.204.81707~734442a) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-status_24.204.81707~734442a_mipsel_24kc.ipk
Installing luci-mod-system (24.165.47464~37ea60d) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-system_24.165.47464~37ea60d_all.ipk
Installing luci-mod-network (24.207.85692~75422e1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-network_24.207.85692~75422e1_all.ipk
Installing luci-mod-admin-full (19.253.48496~3f93650) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-admin-full_19.253.48496~3f93650_all.ipk
Installing luci-proto-ppp (24.148.86114~fbbfdb4) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-proto-ppp_24.148.86114~fbbfdb4_all.ipk
Installing luci-theme-bootstrap (24.191.51591~991549c) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-theme-bootstrap_24.191.51591~991549c_all.ipk
Installing rpcd-mod-rrdns (20170710) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/rpcd-mod-rrdns_20170710_mipsel_24kc.ipk
Installing uhttpd (2023.06.25~34a8a74d-r4) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/uhttpd_2023.06.25~34a8a74d-r4_mipsel_24kc.ipk
Installing uhttpd-mod-ubus (2023.06.25~34a8a74d-r4) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/uhttpd-mod-ubus_2023.06.25~34a8a74d-r4_mipsel_24kc.ipk
Installing luci-light (23.024.33244~34dee82) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-light_23.024.33244~34dee82_all.ipk
Installing luci-app-opkg (24.191.51591~bff2a43) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-app-opkg_24.191.51591~bff2a43_all.ipk
Configuring liblucihttp0.
Configuring cgi-io.
Configuring rpcd.
Configuring rpcd-mod-file.
Configuring rpcd-mod-luci.
Configuring rpcd-mod-ucode.
Configuring ucode-mod-math.
Configuring ucode-mod-html.
Configuring liblucihttp-ucode.
Configuring luci-base.
4+0 records in
4+0 records out
Configuring luci-app-opkg.
Configuring luci-mod-system.
Configuring luci-theme-bootstrap.
/luci-static/bootstrap
Configuring rpcd-mod-iwinfo.
Configuring luci-mod-status.
Configuring luci-app-firewall.
Configuring luci-proto-ppp.
Configuring luci-mod-network.
Configuring luci-mod-admin-full.
Configuring luci-proto-ipv6.
Configuring uhttpd.
4+0 records in
4+0 records out
Configuring rpcd-mod-rrdns.
Configuring uhttpd-mod-ubus.
4+0 records in
4+0 records out
Configuring luci-light.
Configuring luci.
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-nf-reject
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-nf-reject6
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-nf-log
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-nf-log6
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-crypto-crc32c
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-nft-core
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-nf-flow
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-nf-ipt
* pkg_hash_check_unresolved: cannot find dependency kernel (= 6.6.47~817789ee4cb34858ec65be67c62be4b9-r1) for kmod-ipt-core
root@OpenWrt:~#
links of web ui luci works
https://i.imgur.com/fnCBXyJ.jpeg
https://i.imgur.com/SyeLDjU.jpeg
all good now