HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

n
nwmgr_vlan(1M) nwmgr_vlan(1M)
Delete a VLAN Interface
nwmgr -d -c lanVPPA [
--sc]
nwmgr --delete --class_instance lan
VPPA [
--script]
This command deletes the VLAN interface if it is not in use.
Caution: HP strongly advises you first run the Critical Resource Analysis (with the
--cra option)
to check usage information before deleting a VLAN interface.
Delete a VLAN Interface from the Configuration File
nwmgr -d -S vlan -c lanVPPA
--sa [--sc]
nwmgr --delete --subsystem vlan --class_instance lan
VPPA
--saved [--script]
This command deletes the entries for the specified VLAN interface from the configuration file
/etc/rc.config.d/vlanconf
, so that the VLAN interface will not be created during reboot.
Delete All the VLAN Interfaces from the Configuration File
nwmgr -d -S vlan --sa [--sc
]
nwmgr --delete --subsystem vlan --saved [--script]
This command deletes the entries of all VLAN interfaces from the configuration file
/etc/rc.config.d/vlanconf
, so that no VLAN interfaces will be created during reboot.
Set the Attributes of the VLAN Interface on the System
nwmgr -s -c lanVPPA -A attr1=value1... [--sc]
nwmgr --set --class_instance lan
VPPA -attribute attr1=value1... [--script]
Attributes that can be set are:
vlanid=vlanid
pri=priority
tos=ToS_value
name=name
tos_override= level
pri_override= level
Save VLAN Interface Attributes to the Configuration File
nwmgr -s -c lanVPPA -A all --sa --fr cu [--sc]
nwmgr --set --class_instance lan
VPPA --attribute all --saved --from
current
[--script]
This command saves the current attribute values of the specified VLAN interface to the configuration
file, /etc/rc.config.d/vlanconf
, so that the interface configuration is preserved across
boots.
You cannot save individual attributes to the configuration file. All attributes must be saved together.
New entries will be created if they do not already exist in the configuration file for the specified inter-
face. If there are entries with the same VLAN ID or VLAN name for the related interface, the exist-
ing entries will be deleted and a new entry will be created. If there are entries with the same VPPA,
the existing entries will be deleted and a new entry will be created.
Save the Attributes of all VLAN interfaces to the Configuration File
nwmgr -s -S vlan -A all --sa --fr cu [--sc]
nwmgr --set --subsystem vlan --attribute all --saved --from current
[--script]
This command saves the attribute values of all the VLAN interfaces on the system to the
configuration file, /etc/rc.config.d/vlanconf, so that the interface configuration is
preserved across boots.
You cannot save individual attributes to the configuration file. All attributes must be saved together.
All the existing entries in the configuration file will be deleted and new entries will be added for the
VLAN interfaces on the system.
HP-UX 11i Version 3: February 2007 4 Hewlett-Packard Company 109