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

v
VLAN(7) VLAN(7)
You can either specify a virtual PPA (VPPA) number greater than the minimum allowed VPPA number
(5000) or allow the system to assign a VPPA number.
Suppose you want to create a VLAN with a VPPA of 6050 and a vlanid of
4 on PPA 0, you can use the fol-
lowing command:
# lanadmin -V create vlanid 4 vppa 6050 0
Upon successful creation, the following message is displayed:
Successfully configured.
lan6050: vlanid 4 name UNNAMED pri 0 tos 0
tos_override IP_HEADER pri_override CONF_PRI ppa 0
The message shows that you have successfully created VLAN 6050 on the system. If you do not assign a
name to a VLAN, a standard string, UNNAMED
, is displayed as the name.
To create a VLAN on PPA 1, while letting the system generate the VPPA, you would use the following com-
mand to create a VLAN with vlanid 75, priority 3, ToS 100, name honey, ToS override value
CONF_TOS
and priority override value IP_HEADER :
# lanadmin -V create vlanid 75 pri 3 tos 100 name honey
tos_override CONF_TOS pri_override IP_HEADER 1
Upon successful creation, the following message is displayed:
Successfully configured.
lan5000: vlanid 75 name honey pri 3 tos 100
tos_override CONF_TOS pri_override IP_HEADER ppa 1
The system has allotted the VPPA 5000 and successfully created a VLAN with the specified properties.
Let us create one more VLAN on interface 1 with different properties.
# lanadmin -V create vlanid 76 pri 2 tos 200 name bee tos_override
ETHER_HEADER pri_override IP_HEADER 1
Upon successful creation, the following message is displayed:
Successfully configured.
lan5001: vlanid 76 name bee pri 2 tos 200
tos_override ETHER_HEADER pri_override IP_HEADER ppa 1
Let us take a look at the lanscan, lanadmin -V scan, and lanscan -v snapshots of the system
after successful creation of three VLANs: VLAN 6050 on PPA 0 and VLAN 5000 and 5001 on PPA 1.
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/4/0/0 0x001083FF9951 0 UP lan0 snap0 1 ETHER Yes 119
VLAN6050 0x001083FF9951 6050 UP lan6050 snap6050 14 ETHER Yes 119
1/4/0/0 0x006023456789 1 DOWN lan1 snap1 2 ETHER Yes 119
VLAN5000 0x006023456789 5000 DOWN lan5000 snap5000 15 ETHER Yes 119
VLAN5001 0x006023456789 5001 DOWN lan5001 snap5001 16 ETHER Yes 119
There are a few things to be noted from the above output:
VPPAs have
VLANx as their Hardware Path where x is a unique number.
The VPPA has the same MAC address as the PPA on which it is created.
The VPPA has the same Hardware State as the PPA on which it is created.
The VPPA has a PPA associated with it.
In the lanscan output, VPPA information is shown immediately after the PPA on which it was
created. For example, information about VLAN6050 is displayed after lan0 information. Information
about VLAN5000 and VLAN5001 is displayed after lan1 information because VLAN5000 and
VLAN5001 are associated with lan1.
The other properties which are not visible from the snapshot above but are common between the VPPA and
the PPA on which it is created are Station Address, Speed and MTU setting. You can verify this by using
the lanadmin commands to find out Station Address, Speed and MTU, respectively:
HP-UX 11i Version 2: December 2007 Update 3 Hewlett-Packard Company 223