Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改 eth0 接口的子网掩码?
sudo ifconfig netmask 255.255.254.0
我试过这个,但它没有效果
你失去了device参数。
device
像这样:
sudo ifconfig eth0 192.168.120.56 netmask 255.255.254.0
然后重启你的网络服务
systemctl restart network