|
|
# svcs physical
If NWAM is running, you should see:
STATE STIME FMRI disabled 15:18:18 svc:/network/physical:default online 16:44:23 svc:/network/physical:nwam
If you see
STATE STIME FMRI online 15:18:18 svc:/network/physical:default disabled 16:44:23 svc:/network/physical:nwam
NWAM is not enabled, so doing the following will fix this:
# svcadm disable network/physical:default # svcadm enable network/physical:nwam
# ifconfig -a
If you see only
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128
you likely need drivers or need to update /etc/driver_aliases for the devices you have. The laptop community is a great resource for troubleshooting these sorts of issues.
# dladm show-link
Now to determine if the wireless device can see any WLANs, run
# dladm scan-wifi
If the scan is picking up WLANs, we know wireless is working, so there may be an NWAM-specific problem.
# dladm show-wifi LINK STATUS ESSID SEC STRENGTH MODE SPEED wpi0 connected foo wep good g 36Mb
...and that there are no responses coming from the DHCP server:
# ifconfig wpi0 dhcp status Interface State Sent Recv Declined Flags wpi0 SELECTING 5 0 0
To recover, you must delete the incorrect key, and restart the nwam service. It will then walk you through the process of choosing a WLAN and entering the key again.
Use the dladm command to delete the incorrect key. The name of the key will be in the format "nwam-<essid>-<bssid>". You can use dladm to see the names of all stored keys, as well:
# dladm show-secobj OBJECT CLASS nwam-foo-0.11.24.b.84.b1 wep nwam-bar-12.17.a6.c0.c5.0 wep # dladm delete-secobj nwam-foo-0.11.24.b.84.b1 #
After deleting the incorrect key, restart the nwam service:
# svcadm restart nwam
wired_if0 dhcp .. wireless_if0 dhcp
Changing the order is easy, just move the wireless_if0 entry/entries above the wired. If you wish to assign a static address, replace "dhcp" with "static", followed by the static address and an optional prefix length, e.g. "static 192.168.1.4/24".
daemon.debug /var/tmp/nwam.log
followed by
# touch /var/tmp/nwam.log # svcadm refresh system-log # svcadm restart system-log
This tells syslog to dump daemon messages in /var/tmp/nwam.log. Now, enable debugging in NWAM:
# svccfg -s nwam setprop nwamd/debug = true # svcadm refresh nwam
To restart and try and reproduce the problem, it may help to run
# svcadm restart nwam
When contacting nwam-discuss about problems, the debug log will be helpful in diagnosing the issue.
Terms of Use
|
Privacy
|
Trademarks
|
Copyright Policy
|
Site Guidelines
|
Site Map
|
Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2012, Oracle Corporation and/or its affiliates.