lanadmin_vlan.1m (2010 09)

l
lanadmin_vlan(1M) lanadmin_vlan(1M)
(TO BE OBSOLETED)
Let’s modify the properties tos , tos_override and pri_override for VPPA 5000. The following command
can be used to change tos to 64 from 100, tos_override to
IP_HEADER from CONF_TOS, and pri_override
to
CONF_PRI from IP_HEADER.
# lanadmin -V modify tos 64 tos_override IP_HEADER pri_override CONF_PRI 5000
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 regard-
ing 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
Interface 5000 is being used by ’ifconfig’
Process ID of application ’ifconfig’ is 8631
Interface 5000 is being used by ’ifconfig’
Process ID of application ’ifconfig’ is 8631
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
6 Hewlett-Packard Company 6 HP-UX 11i Version 3: September 2010