HP-UX Reference (11i v2 04/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)
v
vlan(7) vlan(7)
To create a VLAN on PPA 1, while letting the system generate the VPPA, you would use the following
command to create a VLAN with lanid 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 3 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 VLAN0 is displayed after lan0 information. Information
about VLAN1 and VLAN2 is displayed after lan1 information because VLAN1 and VLAN2 are asso-
ciated 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 Speed and MTU setting. You can verify this by using the
lanad-
min commands to find out Speed and MTU, respectively:
lanadmin -a vppa
lanadmin -s vppa
lanadmin -m vppa
Now let’s explore the outputs of
lanadmin -V scan and lanscan -p.
#lanadmin -V scan
VLAN Physical VLAN Pri Pri ToS ToS NAME
Interface Interface ID Override Override
Name Level Level
lan6050 lan0 4 0 CONF_PRI 0 IP_HEADER UNNAMED
lan5000 lan1 75 3 IP_HEADER 100 CONF_TOS honey
lan5001 lan1 76 2 IP_HEADER 200 ETHER_HEADER bee
Section 7−−206 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: September 2004