linux:openwrt:openwrt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:openwrt:openwrt [2020/10/23 12:06] – percy | linux:openwrt:openwrt [2022/05/03 19:52] (current) – jianqing | ||
---|---|---|---|
Line 10: | Line 10: | ||
| | ||
===== Update network config ===== | ===== Update network config ===== | ||
- | After install the image in the VMM, need to update the network config | + | After install the image in the VMM, need to update the network config(/ |
- gateway | - gateway | ||
- dns | - dns | ||
- | ``` | + | < |
config interface ' | config interface ' | ||
option type ' | option type ' | ||
option ifname ' | option ifname ' | ||
option proto ' | option proto ' | ||
- | option ipaddr ' | + | option ipaddr ' |
option netmask ' | option netmask ' | ||
option ip6assign ' | option ip6assign ' | ||
Line 25: | Line 25: | ||
option gateway ' | option gateway ' | ||
list dns ' | list dns ' | ||
- | ``` | + | |
+ | config interface ' | ||
+ | option ifname ' | ||
+ | option proto ' | ||
+ | |||
+ | </ | ||
===== Install luci ===== | ===== Install luci ===== | ||
- | https:// | + | - https:// |
- | ``` | + | |
- | opkg update | + | opkg update |
- | opkg install luci | + | opkg install luci |
- | ``` | + | |
===== Install tools ===== | ===== Install tools ===== | ||
``` | ``` | ||
Line 49: | 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 / | vim / | ||
And add the following: | And add the following: | ||
Line 62: | Line 67: | ||
sysctl -p | sysctl -p | ||
- | ``` | + | < |
lsmod|grep bbr | lsmod|grep bbr | ||
tcp_bbr | tcp_bbr | ||
- | ``` | + | </ |
+ | |||
+ | |||
+ | ===== Update hosts ===== | ||
+ | vim / | ||
+ | |||
+ | Add the `list addnhosts '/ | ||
+ | < | ||
+ | config dnsmasq | ||
+ | list addnhosts '/ | ||
+ | </ | ||
+ | Then add your hosts to / | ||
+ | vim / | ||
+ | |||
+ | Then restart the dnsmasq service | ||
+ | / | ||
+ | |||
+ | ===== eth0/lan doesn' | ||
+ | |||
+ | |||
+ | The network eth0 doesn' | ||
+ | device eth0 entered promiscuous mode | ||
+ | After google, I try to disable promiscuous mode. | ||
+ | ifconfig eth0 -promisc | ||
+ | |||
+ | - https:// | ||
+ | - https:// | ||
+ | |||
+ | |||
+ |
/var/www/dokuwiki/wiki/data/attic/linux/openwrt/openwrt.1603425994.txt.gz · Last modified: 2020/10/23 12:06 by percy