vi /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
#source /etc/network/interfaces.d/*
auto eth0
iface eth0 inet static
address 192.168.200.7
netmask 255.255.255.0
gateway 192.168.200.1
service networking restart
博客介绍了在Debian系统中进行静态IP配置的操作。通过编辑 /etc/network/interfaces 文件,设置 eth0 网卡为静态IP,指定地址、子网掩码和网关,最后使用 service networking restart 命令重启网络服务。
1071

被折叠的 条评论
为什么被折叠?



