- 论坛徽章:
- 0
|
我查看了Solaris中文FAQ,有提到DHCP客户端设置,但不是很全面,这里补充一小点:
原文:
创建两个空文件,是网卡适配器的名字,这两个文件用于系统启动时自动启动dhcp。
# touch /etc/hostname.
# touch /etc/dhcp.
网卡适配器的名字的我们可以通过ifconfig -a 或者文件/etc/path_to_inst得到。 如果需要立即使用dhcp的话,可以执行一下命令:
# ifconfig dhcp start补充:如果此时要查看dhcp的状态,可用# ifconfig dhcp statusbash-3.00# ifconfig pcn0 dhcp status
Interface State Sent Recv Declined Flags
pcn0 BOUND 2 2 0如果不想再用这个DHCP,这里不是用stop ,而是drop停用网卡完整命令如下:# ifconfig dhcp drop更详细资料请参见:man ifconfig
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26090/showart_315866.html |
|