Debian 系统常见问题
网络管理
Debian 系统默认使用 /etc/network/interfaces
配置文件保存网卡网络配置。
例如需要为某个网卡单独禁用 IPv6 支持,可以修改配置:
iface enp1s0 inet dhcp
pre-up /sbin/sysctl -w net.ipv6.conf.enp1s0.disable_ipv6=1
修改完成之后重启网络:
~# systemctl restart networking
Debian 系统默认使用 /etc/network/interfaces
配置文件保存网卡网络配置。
例如需要为某个网卡单独禁用 IPv6 支持,可以修改配置:
iface enp1s0 inet dhcp
pre-up /sbin/sysctl -w net.ipv6.conf.enp1s0.disable_ipv6=1
修改完成之后重启网络:
~# systemctl restart networking