HP-UX Reference (11i v2 04/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

v
vlan(7) vlan(7)
lan5000 lan1 75 3 CONF_PRI 64 IP_HEADER honey
lan5001 lan1 76 2 IP_HEADER 64 ETHER_HEADER bee
You can alternatively use the
lanadmin -V info vppa command to get information about a specific
VPPA. Let’s say you are interested in VPPA 6050. The following command will get information regarding
VPPA 6050.
#lanadmin -V info 6050
VLAN Physical VLAN Pri Pri ToS ToS NAME
Interface Interface ID Override Override
Name Level Level
lan6050 lan0 100 7 CONF_PRI 0 IP_HEADER candy
Deleting a VLAN
Before deleting a VLAN, ensure that there are no applications or upper layer protocols active on the
VLAN by running:
#lanadmin -p VPPA
This command displays the applications and commands that are presently using the interface. For exam-
ple, if the only thing done to lan5000 is configure an IP address, the
lanadmin -p command output
would look like:
#lanadmin -p 5000
ifconfig
ifconfig
Since
ifconfig command is used to configure an IP address the same is displayed. There are two
entries because when an IPv4 address is configured using ifconfig, it configures both IP and ARP on
the interface.
To remove the IP and ARP streams, do:
#ifconfig lan5000 unplumb
The lanadmin -p 5000 output will not show any entries now, which means the interface can be
deleted. To delete this VLAN, use the delete option as follows:
#lanadmin -V delete 5000
The lanadmin -p PPA command always displays the commands that use or are configured on the
interface. Lets take another example, to delete the interface lan5001
#lanadmin -p 5001
ifconfig
ifconfig
mib2agt
scopeux
In addition to IP and ARP being configured on the interface, two applications,
mib2agt and scopeux,
are using the interface. These applications are started during system bootup via the startup scripts
/sbin/rc2.d/S565SnmpMib2 and /sbin/rc2.d/S810mwa
, respectively. To stop these utilities,
run the stop sequence of the scripts. To delete the lan5001 interface, type the following commands:
#ifconfig lan5001 unplumb
#/sbin/rc2.d/S565SnmpMib2 stop
#/sbin/rc2.d/S810mwa stop
Now,
lanadmin -p 5001 will not display anything, and the interface can be deleted.
Once the interface is deleted, you can restart the script by issuing the start sequence:
#/sbin/rc2.d/S565SnmpMib2 start
#/sbin/rc2.d/S810mwa start
NOTE: The start and stop sequence of the startup scripts will affect all the interfaces on the system, and
they must be restarted once the delete operation is completed.
HP-UX 11i Version 2: September 2004 6 Hewlett-Packard Company Section 7209