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

v
VLAN(7) VLAN(7)
Successfully modified lan5000.
Old value: tos 100 tos_override CONF_TOS pri_override IP_HEADER
New value: tos 64 tos_override IP_HEADER pri_override CONF_PRI
Let’s take a look at the lanadmin -V scan
, lanadmin -V info, and lanscan -v snapshot of
the system after successful modification of two VPPAs: VPPA 6050 on PPA 0 and VPPA 5000 on PPA 1.
The
lanscan snapshot will remain the same as before the modification; however you can see differences
in the lanscan -v and lanadmin -V scan
snapshots before and after modification.
# lanadmin -V scan
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
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 was to configure an IP address, the
lanadmin -p command out-
put would look like:
# lanadmin -p 5000
ifconfig
ifconfig
Since the
ifconfig command was used to configure an IP address, the command 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 inter-
face. 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,
226 Hewlett-Packard Company 6 HP-UX 11i Version 2: December 2007 Update