debian的IP地址信息的文件是保存在/etc/network/interfaces,直接编辑该文件就可以。
#可以看到文件中的设置为动态IP的语句
iface eth0 inet dhcp
当然也可以设置为静态IP地址,如:
在 /etc/network/interfaces 中,删除 iface eth0 inet dhcp,添加一下内容
iface eth0 inet static
address 172.17.10.40
netmask 255.255.0.0
broadcast 172.17.0.255
network 172.17.0.0
gateway 172.17.10.100
重启网络
#/etc/init.d/networking restart
debian 修改ip地址
最新推荐文章于 2025-07-24 11:11:58 发布
本文介绍如何在Debian系统中配置网络参数,包括设置动态IP及静态IP的方法,并提供了具体的配置文件示例。
1097

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



