ok, so something could have changed in SMF since I left, but back in april
configureing the hostname and ip of an interface still basically (on the
surface) worked the way I've been used to since SunOS4.
I just installed an Ultra10 with Solaris Express build 46. During the CD
install I answered that the machine wasn't networked, but I did give it a
nodename.
After installation, as I have done in the past, I created /etc/hostname.hme0
and configured /etc/hosts, and /etc/netmasks, and /etc/nsswitch.conf. Then I
rebooted.
During boot I get:
ip_arp_done: init failed
Failed to configure IPv4 interface(s): hme0
Oct 4 14:17:42 svc.startd[7]: svc:/network/physical:default: Method "/lib/svc/m
ethod/net-physical" failed with exit status 96.
Oct 4 14:17:42 svc.startd[7]: network/physical:default misconfigured: transitio
ned to maintenance (see 'svcs -xv' for details)
Hostname: Newton
I instrumented /lib/svc/method/net-physical by adding 'set -x' and this is what
I get in /etc/svc/volatile/network-physical:default.log:
[ Oct 4 14:17:34 Enabled. ]
[ Oct 4 14:17:38 Executing start method ("/lib/svc/method/net-physical") ]
[ Oct 4 14:17:38 Timeout override by svc.startd. Using infinite timeout ]
configuring IPv4 interfaces:+ doDHCPhostname hme0
+ [ -f /etc/dhcp.hme0 ]
+ return 1
+ :
multiple_lines=false
ifcmds=
retval=0
+ read line
+ [ -n ]
ifcmds=Newton
+ read line
+ [ -z Newton ]
+ [ false = false ]
ifcmds=Newton netmask + broadcast + up
+ /sbin/ifconfig hme0 inet Newton netmask + broadcast + up
ifconfig: setifflags: SIOCSLIFFLAGS: hme0: Cannot assign requested address
+ return 1
+ [ 1 != 0 ]
i4s_fail= hme0
+ echo hme0\c
hme0+ shift
+ [ 0 -gt 0 ]
+ echo .
.
+ [ -n hme0 ]
+ warn_failed_ifs configure IPv4 hme0
+ echo Failed to configure IPv4 interface(s): hme0
+ [ -n ]
+ echo /etc/dhcp.*[0-9]
interface_names=/etc/dhcp.*[0-9]
+ [ /etc/dhcp.*[0-9] != /etc/dhcp.*[0-9] ]
+ shcat /etc/nodename
hostname=Newton
+ [ none = rarp -o -z Newton ]
+ [ -n ]
+ [ -n ]
+ [ -f /etc/defaultrouter ]
+ read router rubbish
+ /sbin/route -n add default -gateway 172.25.244.1
add net default: gateway 172.25.244.1: Network is unreachable
+ read router rubbish
+ [ -z hme0 ]
+ /sbin/ifconfig -a4u
+ [ -n lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 823
2 index 1
inet 127.0.0.1 netmask ff000000 ]
+ /sbin/ifconfig -a4u
+ read intf addr rest
+ [ lo0: = inet ]
+ read intf addr rest
+ [ inet = inet ]
+ [ 127.0.0.1 != 127.0.0.1 ]
+ read intf addr rest
I can configure the interface fine by hand with the IP addr.
'ifconfig hme0 inet Newton netmask + broadcast +' runs without error (add 'up'
and you'll get an error though.) but it configures hme0 with an address of
127.0.0.1, not 172.25.244.38 from the hosts file.
/etc/nsswitch.conf has 'hosts: files dns' (and originally I had 'dns files')
/etc/hosts has an entry for 'Newton', and ''Newton' is not mentioned on the
loopback entry. (I thought of that already.) Here is /etc/hosts:
# ident "@(#)hosts 1.6 05/06/10 SMI"
#
# Internet host table
#
127.0.0.1 localhost loghost
172.25.244.38 Newton Newton.Foo.Bar.COM
172.25.244.39 Einstein Einstein.Foo.Bar.COM
I checked the /etc/net/*/hosts files, and all claim they are no longer used.
So what's changed? What magic piece am I missing? Ideas?
This always used to work.
-Kyle
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]