OpenRC/netifrc Netifrc is a collection of modules created to configure and manage network interfaces via individual, per-interface scripts located in the /etc/init.d/ directory. Enable Gentoo’s network stack (net.* scripts). 检测网卡名字 1 2 3 ifconfig -a or ls /sys/class/net 添加网卡 通过net.lo链接 1 2 3 ln -s /etc/init.d/net.lo /etc/init.d/net.ifname /etc/init.d/net.ifname start rc-update add net.ifname default