User Tools

Site Tools


linux:openwrt:openwrt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:openwrt:openwrt [2021/10/26 22:56] – [Update network config] jianqinglinux:openwrt:openwrt [2022/05/03 19:52] (current) jianqing
Line 33: Line 33:
  
 ===== Install luci ===== ===== Install luci =====
-https://openwrt.org/docs/guide-user/luci/luci.essentials +  - https://openwrt.org/docs/guide-user/luci/luci.essentials 
-``` + 
-opkg update +  opkg update 
-opkg install luci +  opkg install luci 
-```+
 ===== Install tools ===== ===== Install tools =====
 ``` ```
Line 54: Line 54:
  
 ===== Install BBR ===== ===== Install BBR =====
-``` + 
-opkg install kmod-tcp-bbr +  opkg install kmod-tcp-bbr 
-insmod kmod-tcp-bbr +  insmod kmod-tcp-bbr 
-lsmod|grep bbr +  lsmod|grep bbr 
-```+
   vim /etc/sysctl.conf   vim /etc/sysctl.conf
 And add the following: And add the following:
Line 67: Line 67:
   sysctl -p   sysctl -p
  
-```+<code>
 lsmod|grep bbr lsmod|grep bbr
 tcp_bbr                16384 35  tcp_bbr                16384 35 
-```+</code> 
  
 ===== Update hosts ===== ===== Update hosts =====
Line 76: Line 77:
  
 Add the `list addnhosts '/etc/myhosts'` Add the `list addnhosts '/etc/myhosts'`
-```+<code>
 config dnsmasq                                                                                                     ...                                                                                            config dnsmasq                                                                                                     ...                                                                                           
         list addnhosts '/etc/myhosts'             list addnhosts '/etc/myhosts'    
-```+</code>
 Then add your hosts to /etc/myhosts Then add your hosts to /etc/myhosts
   vim /etc/myhosts   vim /etc/myhosts
Line 85: Line 86:
 Then restart the dnsmasq service Then restart the dnsmasq service
   /etc/init.d/dnsmasq restart   /etc/init.d/dnsmasq restart
 +
 +===== eth0/lan doesn't work =====
 +
 +
 +The network eth0 doesn't work, and saw the log
 +  device eth0 entered promiscuous mode
 +After google, I try to disable promiscuous mode.
 +ifconfig eth0 -promisc
 +
 +  - https://help.aliyun.com/document_detail/41541.html
 +  - https://ieevee.com/tech/2016/11/24/promisc.html
  
      
      
  
/var/www/dokuwiki/wiki/data/attic/linux/openwrt/openwrt.1635260187.txt.gz · Last modified: 2021/10/26 22:56 by jianqing