Hi, I am wondering if anyone can tell me how to get OpenSolaris to set the 
hostname given by the DHCP server (code 12). I have the same setup on Solaris 
that work but it doesn't seem to work on OpenSolaris. Here is what I have on 
OpenSolaris follow by Solaris 10 U8.
Thanks very much in advance
Albert

OpenSolaris:
r...@unknown:~#  egrep -v '^#|^$' /etc/default/dhcpagent 
REQUEST_HOSTNAME=no
PARAM_REQUEST_LIST=1,3,6,12,15,28,43
.v6.PARAM_REQUEST_LIST=7,12,23,24,27,29
r...@unknown:~# uname -a
SunOS unknown 5.11 snv_111b i86pc i386 i86xpv Solaris
r...@unknown:~# dhcpinfo -i xnf0 12
osol0906
r...@unknown:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 
index 1
        inet 127.0.0.1 netmask ff000000 
xnf0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 172.18.250.121 netmask ffff0000 broadcast 172.18.255.255
        ether 0:16:3e:10:63:9 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 
index 1
        inet6 ::1/128 
r...@unknown:~# ls -dlh /etc/*dhc*
drwxr-xr-x 2 root sys  6 2009-05-14 08:48 /etc/dhcp
-rw-r--r-- 1 root root 1 2010-08-02 23:30 /etc/dhcp.xnf0
r...@unknown:~# cat /etc/dhcp.xnf0

r...@unknown:~#  ls -dlh /etc/*name*
-rw-r--r-- 1 root root    1 2010-08-02 23:47 /etc/hostname.xnf0
-rw-r--r-- 1 root sys  2.5K 2009-05-14 08:52 /etc/name_to_major
-rw-r--r-- 1 root sys  3.3K 2009-05-14 08:48 /etc/name_to_sysnum
r...@unknown:~# cat /etc/hostname.xnf0

r...@unknown:~# 

Solaris 10 U8:
r...@sol10:/ $ egrep -v '^#|^$' /etc/default/dhcpagent 
REQUEST_HOSTNAME=no
PARAM_REQUEST_LIST=1,3,6,12,15,28,43
.v6.PARAM_REQUEST_LIST=7,12,23,24,27,29
r...@sol10:/ $ uname -a
SunOS sol10 5.10 Generic_141445-09 i86pc i386 i86pc
r...@sol10:/ $ dhcpinfo -i xnf0 12
-bash: dhcpinfo: command not found
r...@sol10:/ $ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 
index 1
        inet 127.0.0.1 netmask ff000000 
xnf0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 172.18.250.106 netmask ffff0000 broadcast 172.18.255.255
        ether 0:16:3e:8:c7:68 
r...@sol10:/ $ ls -dlh /etc/*dhc*
drwxr-xr-x   2 root     sys            5 Aug  2 23:39 /etc/dhcp
-rw-r--r--   1 root     root           1 Jul 17 00:17 /etc/dhcp.xnf0
r...@sol10:/ $ cat /etc/dhcp.xnf0

r...@sol10:/ $ ls -dlh /etc/*name*
-rw-r--r--   1 root     root           1 Jul 17 00:17 /etc/hostname.xnf0
-rw-r--r--   1 root     sys         2.3K Feb 20 07:41 /etc/name_to_major
-rw-r--r--   1 root     sys         3.2K Sep  3  2009 /etc/name_to_sysnum
r...@sol10:/ $ cat /etc/hostname.xnf0

r...@sol10:/ $
-- 
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to