- 论坛徽章:
- 0
|
通常我是用 `touch /reconfigure`和 `touch /etc/hostname.eri0`.
可是這個server 好像行不通. 重啟時總是抓不到ip (從dhcp)
- Sun Blade 150 (UltraSPARC-IIe 550MHz), No Keyboard
- Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved.
- OpenBoot 4.10.6, 256 MB memory installed, Serial #59492716.
- Ethernet address 0:3:ba:8b:c9:6c, Host ID: 838bc96c.
- Rebooting with command: boot -r
- Boot device: /pci@1f,0/ide@d/disk@0,0:a File and args: -r
- SunOS Release 5.10 Version Generic 64-bit
- Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved.
- Use is subject to license terms.
- Failed to configure IPv4 DHCP interface(s): eri0
- SUNW,eri0 : 100 Mbps full duplex link up
- Configuring devices.
- Jul 28 14:44:00 svc.startd[7]: svc:/network/physical:default: Method "/lib/svc/method/net-physical" failed with exit status 96.
复制代码
bash-3.00# svcs physical
- STATE STIME FMRI
- maintenance 14:44:00 svc:/network/physical:default
复制代码
bash-3.00# svcs -x
- svc:/network/physical:default (physical network interfaces)
- State: maintenance since Tue Jul 28 14:44:00 2009
- Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
- See: [url]http://sun.com/msg/SMF-8000-KS[/url]
- See: ifconfig(1M)
- See: /etc/svc/volatile/network-physical:default.log
- Impact: 5 dependent services are not running. (Use -v for list.)
- svc:/application/print/server:default (LP print server)
- State: disabled since Tue Jul 28 14:43:20 2009
- Reason: Disabled by an administrator.
- See: [url]http://sun.com/msg/SMF-8000-05[/url]
- See: lpsched(1M)
- Impact: 2 dependent services are not running. (Use -v for list.)
复制代码
目前我得用script 放在/etc/rc3.d 里,主機才能抓到ip address:
#!/bin/bash
ifconfig eri0 unplumb
ifconfig eri0 plumb
ifconfig eri0 dhcp
請問要怎樣才能不用legacy script 也能達到重啟時自動從dhcp server獲取ip address ?
ps: 我是用 solaris10 on blade150 機.
[ 本帖最后由 stock99 于 2009-7-28 12:29 编辑 ] |
|