惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

Alpine Linux

Alpine 3.23 发布了 AlpineLinux 3.19 发布了 Why AlpineLinux - V2EX 在 iOS 上安装了 iSH,大家有什么推荐的玩法吗? - V2EX AlpineLinux 3.12 发布 - V2EX alpine Linux 跑 docker? Docker 容器中基于 Alpine Linux 镜像, kill 命令不起作用? - V2EX docker 的 alpine 不支持 i18n,对 Java 后端开发有啥影响吗? - V2EX 请教 alpine 大牛如何在 alpine 使用 curl 安装 caddy,并添加服务到自启动 - V2EX Alpine Linux 如何安装 Google TCP-BRR 加速? - V2EX 既然 alpine 体积这么小,为什么其它软件官方镜像不把它作为基础镜像? - V2EX 在用 alpine 构建一个运行静态编译的 nginx 的 docker 镜像时遇到的用户问题 - V2EX 小型系统,用 alpine Linux 真真是极好的。 - V2EX 分享两份自己用的 alpine-php-fpm 的 Dockerfile - V2EX Alpine Linux 大法好!这个没有 GNU, Systemd 和其他莫名的系统,这个简洁、基于脚本的系统,在我折腾 Linux 一年时,让我真正体验到 Unix 系统的精神和原理。 - V2EX
有牛人么? alpine 改用 networkmanager 问题。
ps1aniuge · 2020-04-19 · via Alpine Linux

目的:不用 networking 管理网卡,而用 networkmanager 管理网卡
linux:alpine 3.11

源:
cat /etc/apk/repositories
https://mirrors.huaweicloud.com/alpine/edge/main/
https://mirrors.huaweicloud.com/alpine/edge/community/
https://mirrors.nju.edu.cn/alpine/edge/main/
https://mirrors.nju.edu.cn/alpine/edge/community/

命令:
apk update
/bin/mv '/etc/network/interfaces' '/opt'
apk add networkmanager ifupdown
addgroup root plugdev
#rc-update add wpa_supplicant default

rc-update add networkmanager boot
rc-update del networking boot
rc-service networking stop #这条命令之后,则网断了,不能从终端管理了,但可以在 linux 本机管理。
rc-service networkmanager start

cat /etc/NetworkManager/NetworkManager.conf
[main]
dhcp=dhcpcd

-------故障现象:-----------------
nmcli d
DEVICE TYPE STATE CONNECTION
eth0 ethernet unmanaged --
lo loopback unmanaged --

nmcli connection add type ethernet con-name lan1 ifname eth0 ip4 $ip gw4 $gw
#正常

nmcli device conn eth0
#返回:
Error: Failed to add/activate new connection: Connection 'eth0' is not available on device eth0 because device is strictly unmanaged

nmcli connection up lan1
#返回
Error: Connection activation failed: No suitable device found for this connection (device lo not available because device is strictly unmanaged).