HP-UX VLAN Administrator's Guide, February 2007
3 Using nwmgr to Configure and Administer HP-UX VLANs
As of this release, a new command, nwmgr, is provided for managing all LAN-based network
interfaces. The nwmgr command offers a superset of the functionality provided by the lanscan,
lanadmin, and linkloop commands, which are deprecated in this release and will be obsoleted
in a future HP-UX release.
Changes made using nwmgr are effective immediately and you can make the changes persist
across reboots by using the --saved option, which saves changes to the
/etc/rc.config.d/vlanconf file.
This chapter provides an overview of how to use the nwmgr command to administer HP-UX
VLANs. It addresses the following topics:
• “nwmgr Syntax” (page 39)
• “Adding a VLAN Interface” (page 41)
• “Displaying Interfaces” (page 41)
• “Modifying a VLAN Interface” (page 42)
• “Deleting a VLAN Interface” (page 43)
• “Other Examples” (page 44)
For a complete description of the functionality available for administering HP-UX VLAN
subsystems using nwmgr , see nwmgr_vlan(1M) and nwmgr(1M).
nwmgr Syntax
The following example shows using the output of the nwmgr -h -S vlan -v command to
display the verbose level of information for general help on the HP-UX VLAN subsystem:
# nwmgr -h -S vlan -v
View subsystem help.
nwmgr -h -S vlan [-v]
View help for individual operations.
nwmgr {-a | -d | -g | -s | -r | --diag} -h -S vlan [-v]
Add a VLAN interface.
nwmgr -a -S vlan -c [lan<VPPA>] -A vlanid=<vlanid>,ppa=<PPA>
[,attr=value]... [--sc]
Set the attributes of the VLAN interface.
nwmgr -s -c lan<VPPA> -A attr1=value1... [--sc]
Save all the attributes of the VLAN interface to the configuration file.
nwmgr -s -c lan<VPPA> -A all --sa --fr cu [--sc]
Save all the attributes of all the VLAN interfaces to the configuration file.
nwmgr -s -S vlan -A all --sa --fr cu [--sc]
View the list of VLAN interfaces on the system.
nwmgr [-g] -S vlan
View the details of the VLAN interface.
nwmgr [-g] -c lan<VPPA>
View the individual or all the attributes of the VLAN interface.
nwmgr [-g] -c lan<VPPA> -A attr1... [--sc][-v]
View the statistics of the VLAN interface.
nwmgr [-g] -c lan<VPPA> --st [mib] [--sc]
Delete the VLAN interface.
nwmgr -d -c lan<VPPA> [--sc]
Delete the VLAN interface from the configuration file.
nwmgr -d -c lan<VPPA> --sa [--sc]
Delete all the VLAN interfaces from the configuration file.
nwmgr -d -S vlan --sa [--sc]
View the usage information of the VLAN interface.
nwmgr --cra -c lan<VPPA> [--sc]
Reset the VLAN interface.
nwmgr -r -c lan<VPPA> [--st][--sc]
Reset the statistics of the VLAN interface.
nwmgr -r -c lan<VPPA> --st [--sc]
Diagnose the link connectivity of the VLAN interface.
nwmgr Syntax 39