http://defect.opensolaris.org/bz/show_bug.cgi?id=13416
Summary: "dhcp,static" ipv4 address not working
Classification: Development
Product: nwam
Version: nwam1_129
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: critical
Priority: P1
Component: ON daemon
AssignedTo: nwam-dev at opensolaris.org
ReportedBy: Anurag.Maskey at Sun.COM
QAContact: nwam-dev at opensolaris.org
--- Comment #0 from Anurag S. Maskey <Anurag.Maskey at Sun.COM> 2009-12-16
18:42:04 UTC ---
If an IP NCU has dhcp and static IPv4 address setting, it is not working
correctly. I haven't been able to pinpoint what's wrong. Having just a DHCP
v4address configured works correctly. Having just a static v4 address works
correctly. It the combination of the two that doesn't work.
nwamcfg:ncp:User> list ncu ce0
ncu:ce0
type link
class phys
parent "User"
activation-mode manual
enabled true
ncu:ce0
type interface
class ip
parent "User"
enabled true
ip-version ipv4
ipv4-addrsrc dhcp,static
ipv4-addr "10.8.57.133/24"
ipv6-addrsrc dhcp,autoconf
When this User NCP is enabled:
bash-4.0# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 1049
inet 0.0.0.0 netmask ff000000
ether 0:3:ba:94:4c:f0
ce0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 1049
inet 10.8.57.133 netmask ffffff00 broadcast 10.8.57.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252
index 1
inet6 ::1/128
"netstat -D" reports nothing.
bash-4.0# nwamadm list -x
TYPE PROFILE STATE AUXILIARY STATE
ncp Automatic disabled disabled by administrator
ncp User online active
ncu:phys ce0 online interface/link is up
[... hangs for while here ...]
ncu:ip ce0 offline* waiting for IP address to be set
loc Automatic offline conditions for activation are unmet
loc NoNet online active
pstack on the nwamd process shows the event handler thread stuck on dad_wait().
bash-4.0# pstack `pgrep nwamd`
5840: /lib/inet/nwamd
----------------- lwp# 1 / thread# 1 --------------------
ff2c8388 pollsys (ffbff3f0, 1, ffbfef38, 0)
ff271938 poll (ffbff3f0, 1, 1388, 0, 5, 140) + 80
fe651e2c dad_wait (9bc48, e, ffbfefec, 1388, ffbff3f0, ffbfefe0) + fc
fe652018 icfg_set_flags (9bc48, 0, e, 80786800, 1000842, 10) + 110
00026c68 add_ip_address (ade08, 119e48, 0, ffffffff, 315d4, 10) + 290
0002777c nwamd_configure_interface_addresses (10a008, 0, 2, 119e48, 1, 31800)
+ 7c
00021624 nwamd_ncu_state_machine (10a098, 87908, b7108, 10a090, 1, 10a008) +
1b8
00023b70 nwamd_ncu_handle_state_event (4, 87908, 1, 2fc00, b7108, 1) + 1fc
0001d838 nwamd_event_handler (130, 45000, 1, 1, 5f5e100, 5f5e100) + 1b0
000204cc main (45800, 45000, ffbffe8c, 10, 45000, 45000) + 21c
00019338 _start (0, 0, 0, 0, 0, 0) + 108
----------------- lwp# 2 / thread# 2 --------------------
[....]
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.