linux的interfaces网络配置 - Wed, Mar 9, 2022
linux的interfaces网络配置
linux的interfaces网络配置
提示: Linux发行版更新较快,命令可能因版本不同而有差异。
/etc/network/interfaces
# cat /etc/network/interfaces
# interface file auto-generated by buildroot
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1