LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 880|回复: 2

Debian如何将IP 配成DHCP自动获取方式?

[复制链接]
发表于 2006-9-27 12:48:56 | 显示全部楼层 |阅读模式
Debian如何将IP 配成DHCP自动获取方式?

只能用命令行或修改配置文件方式,因为我要在程序中来实现,GUI工具不能用。

这个以前还真没配过,一时不知怎么设,在网上找了下,全是设置DHCP服务器的文章
发表于 2006-9-27 13:12:48 | 显示全部楼层
man interfaces
回复 支持 反对

使用道具 举报

发表于 2006-9-27 17:44:08 | 显示全部楼层
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
----------------------------------------
我的interfaces。网卡IP同过DHCP自动获取.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表