Oracle Solaris 11 Express:Network Automagic Phase

作者: Maclean Liu , post on December 15th, 2010 , English Version
【本站文章除注明转载外,均为本站原创编译】
转载请注明:文章转载自: Oracle Clinic – Maclean Liu的个人技术博客 [http://www.oracledatabase12g.com/]
本文标题: Oracle Solaris 11 Express:Network Automagic Phase
本文永久地址: http://www.oracledatabase12g.com/archives/oracle-solaris-11-expressnetwork-automagic-phase.html

Software Components: SMF Services

  • svc:/network/netcfg:default
    • starts/stops configuration repository daemon, netcfgd
  • svc:/network/physical:nwam
    • method script: /lib/svc/method/net-nwam
    • starts/stops profile management daemon, nwamd
    • saves/restores “legacy” (non-nwam) location data
  • svc:/network/location:default
    • activates the selected location
    • applies configuration
    • services with location-managed configuration have ‘restart_on refresh’ dependency on location service
    • some services explicitly refreshed by location service

Software Components: Daemons

  • Configuration repository daemon: /lib/inet/netcfgd
    • controls access to the nwam configuration repository
    • consumers make requests via libnwam
    • library makes requests via daemon’s door server
    • daemon performs authentication and file i/o
  • Profile management daemon: /lib/inet/nwamd
    • based on active NCP, determines which NCUs should be enabled
    • brings links and interfaces up, tears down as needed
    • determines which location should be active and pings location service when change needed
    • fields status requests and configuration change notifications via door server

Software Components: CLI

  • nwamadm(1M)
    • ‘list’ subcommand displays status of each profile
    • ‘enable/disable’ subcommands allow manual enable and disable of specific profiles
    • basic interfaces for wireless network selection
    • event monitoring: displays status events from nwamd
  • nwamcfg(1M)
    • supports viewing and listing of profiles
    • interactive shell interface, much like zonecfg(1M)
  • man pages include many examples
  • nwamcfg man page includes definitions of all profile properties

Software Components: GUI

  • GNOME panel applet: /usr/lib/nwam-manager
    • panel icon gives current high-level status
    • mouse-over displays active profiles and NCUs
    • if using wireless, menu includes available wlans, which can be selected to initiate connection
  • GNOME app: /usr/lib/nwam-manager-properties
    • launched by clicking on the panel applet
    • also launched upon relevant selections on applet menu
      • Network Preferences…
      • Network Locations…
      • Network Profile…
      • Network Modifier Preferences…
      • used to display and modify profiles of all types

Scenarios: Stuart’s Use Case

Stuart is a professor who has an IBM notebook (T43p) that comes with XP and an IBM (now Lenovo) application called Access Connections. It scans adapters for networks with set up profiles and connects as appropriate. For example, he has a DHCP entry using the built-in gigabit ethernet, an 802.11g entry using WPA for home, an 802.11a entry using WEP for work, an 802.11g entry without encryption for the general university network (requires a VPN to do anything of use), and so on. Works nicely and fairly automatically. It even allows control of default printers, web browser home page, internet connection sharing, and so on for each separate profile. If he leaves work and bring home the notebook, it connects to the 802.11g home profile. When he goes back to work and the built-in gigabit is available via the cable plugged into a docking station, the DHCP profile is used.

Troubleshooting

  • Check for error/warning messages
    • location and nwam service logs
      • /var/svc/log/network-physical:nwam.log
      • /var/svc/log/network-location:default.log
    • nwamd uses syslog
      • check /var/adm/messages for high-level error messages
      • enable debugging and capture daemon.debug level messages for copious output
      • debugging controlled by nwam service property ‘nwamd/debug’; defaults to false

Troubleshooting: Common gotchas

  • First boot after upgrade: timing can be problematic
    • we’ve shaken out a lot of bugs here, but there could be more!
  • Issues with ipfilter service
    • when NoNet location is applied, network traffic is locked down with ipfilter rules
    • if ipfilter service goes into maintenance with those rules in place, can then be cleared without removing rules. Check ‘ipfstat -io’ output to verify rules have been removed
  • Manual configuration changes vs. NWAM
    • When nwam is enabled, it does its best to maintain the configuration described in the active profile
    • If manual changes conflict, nwamd will undo them!


© 2010, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.

相关文章 | Related posts:

  1. Solaris 11 Express Installation
  2. Solaris 11 Express pkg
  3. Oracle Solaris 11 Express Features
  4. Solaris 11 Express ZFS
  5. Know about Oracle Network Security
  6. Network Interface No Longer Operational?
  7. Streams Propagation Tuning with Network Parameters
  8. How To Calculate The Required Network Bandwidth Transfer Of Archivelogs In Dataguard Environments
  9. Oracle Clusterware and Private Network Considerations
  10. SQL*Net PERFORMANCE TUNING UTILIZING UNDERLYING NETWORK PROTOCOL

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>