Chinaunix

标题: 怎样才能把自己的ip设置成自动获取? [打印本页]

作者: kevin94730    时间: 2005-08-19 17:08
标题: 怎样才能把自己的ip设置成自动获取?
请教各位老大怎样才能把自己的ip设置成自动获取??在线等待!谢谢!!
作者: 89728972    时间: 2005-08-19 17:15
标题: 怎样才能把自己的ip设置成自动获取?
1.To start using DHCP on a system already running Solaris 9, create an empty file for the primary interface and edit the /etc/default/dhcpagent file so that any IP address assigned to the client is relinquished when the client is shut down or is rebooted:

Log in as root on the client.

Edit the client DHCP default parameter file, /etc/default/dhcpagent.

Go to the entry RELEASE_ON_SIGTERM=yes. This entry is commented out by default, so uncomment it to make the client relinquish its IP address when it shuts down or reboots.

Create the appropriate interface file to enable DHCP. For example, if your system has an hme0 interface, create the file /etc/dhcp.hme0 as shown here:

ultra5# touch /etc/dhcp.hme0

Reboot the client.

2.use sys-unconfig command
作者: kevin94730    时间: 2005-08-19 17:31
标题: 怎样才能把自己的ip设置成自动获取?
好像不行哦
作者: caojiqun    时间: 2005-08-19 18:42
标题: 怎样才能把自己的ip设置成自动获取?
看看这里
http://www.rite-group.com/consulting/solaris_dhcp.html
作者: 89728972    时间: 2005-08-19 19:38
标题: 怎样才能把自己的ip设置成自动获取?
[quote]原帖由 "kevin94730"]好像不行哦[/quote 发表:


sys-unconfig 你试了吗?
作者: zflying2000    时间: 2005-08-19 20:05
标题: 怎样才能把自己的ip设置成自动获取?
sys-unconfig 你试了吗?
好像是清除系统设置重新设置吧?
作者: Philmoon    时间: 2005-08-19 21:10
标题: 怎样才能把自己的ip设置成自动获取?
就是用DHCP方法:DHCP=Dynamic Host Configuration Protocol
作者: kevin94730    时间: 2005-08-20 12:53
标题: 怎样才能把自己的ip设置成自动获取?
原帖由 "zflying2000" 发表:
sys-unconfig 你试了吗?
好像是清除系统设置重新设置吧?


这样会不会把系统的其它设置也reset了?
作者: remen    时间: 2005-08-20 13:04
标题: 怎样才能把自己的ip设置成自动获取?
当然会!
作者: kevin94730    时间: 2005-08-21 21:25
标题: 怎样才能把自己的ip设置成自动获取?
除了sys-unconfig之外还有别的方法吗??
作者: hbird    时间: 2006-02-09 01:11
设置自动获取ip
   以网络设备名为pcn0为例:
   touch dhcp.pcn0
   defaultrouter内添加网关
作者: 我能帮你吗    时间: 2006-02-09 11:17
标题: sys-unconfig 能在光盘单用户引导后使用吗?
RT




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2