要重启AlmaLinux的网卡,可以按照以下步骤进行操作:
ip addr show
ifconfig
sudo systemctl restart network.service
sudo systemctl restart NetworkManager.service
sudo ifdown <接口名称>
sudo ifup <接口名称>
ip addr show
ifconfig
这样就可以通过重启网卡来重新初始化网络接口。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:linux重启单个网卡的方法是什么