HP-UX VLAN Administrator's Guide, February 2007
4 Editing the vlanconf File to Configure and Administer
HP-UX VLANs
This chapter provides an overview of how to administer HP-UX VLAN interfaces by editing the
configuration file for VLANs , /etc/rc.config.d/vlanconf, using a text editor such as vi.
Changes made by editing the vlanconf file do not take effect until the system is rebooted.
Sample /etc/rc.config.d/vlanconf File
The following example displays the format of the /etc/rc.config.d/vlanconf file.
# vlanconf: configuration values to create VLAN Virtual Interface.
# This file will maintain the VLAN information across
# reboot, and will be modified by HP SMH. User can also
# edit the file.
#
# VLAN_PHY_INTERFACE : Physical interface name, see nwmgr(1m)
# output. This value must be specified.
#
# VLAN_ID : Unique VLAN id for VLAN. VLAN id is a
# positive integer value which can range
# from 0 to 4094. This value must be specified.
#
# VLAN_PRI_OVERRIDE : The priority value to choose for outbound packets.
# It tells the system what priority to choose, when
# tagging the packets with VLAN information.
# Allowed priority override levels are:
#
# CONF_PRI - User specified priority, taken from
# VLAN_PRIORITY[] will be used
# (default if not specified).
# IP_HEADER - Valid only for IP packets. IP header ToS
# will be converted to 802.1p priority. For
# non-IP packets override level of CONF_PRI
# will be used.
# CONF_TOS - User specified ToS, taken from VLAN_TOS[]
# will be converted to 802.1p priority.
# Default value of CONF_PRI will be taken if not
# specified.
#
# VLAN_TOS_OVERRIDE : ToS value to be used for inbound IP packets.
# Allowed ToS override levels are:
#
# IP_HEADER - ToS value in the IP header will be used
# (default if not specified).
# ETHER_HEADER - Ether header 802.1p priority will be
# converted to ToS value.
# CONF_TOS - ToS specified by the user, taken from
# VLAN_TOS[] will be used.
# CONF_PRI - 802.1p priority given in VLAN_PRIORITY[]
# will be converted to ToS value.
# Default value of IP_HEADER will be used if not
# specified.
#
# VLAN_PRIORITY : Priority is a positive integer value which can
# range from 0 to 7. Default value of 0 will be
# taken if not specified. VLAN_PRIORITY[] will be
# used only when the VLAN_PRI_OVERRIDE[] or
# VLAN_TOS_OVERRIDE[] values are set to CONF_PRI.
#
# VLAN_TOS : TOS is a positive integer value that ranges
# from 0 to 255. Default value of 0 will be used
# if not specified. VLAN_TOS[] will be used only
# when the VLAN_PRI_OVERRIDE[] or VLAN_TOS_OVERRIDE[]
# values are set to CONF_TOS.
#
# VLAN_NAME : Name of the VLAN. Its a simple string, which
# consists of alphanumeric characters. No special
# characters allowed. This value optional.
#
# VLAN_VPPA : User requested VPPA for the VLAN Virtual Interface
# that will be created by the information given
# above. This value is optional If not specified
# system will assign a VPPA.
#
# For each VLAN configuration, add a set of variable assignments
# like the ones below, changing the index to "[0]", "[1]" et cetera.
#
#############################################################################
#############################################################################
# The VLAN_INIT_ARGS are reserved by HP. They are NOT user changable.
VLAN_INIT_ARGS="VLAN_PHY_INTERFACE VLAN_ID VLAN_PRI_OVERRIDE VLAN_TOS_OVERRIDE VLAN_PRIORITY VLAN_TOS VLAN_NAME VLAN_VPPA"
#
# Sample Entry
#
# VLAN_PHY_INTERFACE[0]=
# VLAN_ID[0]=
# VLAN_PRI_OVERRIDE[0]=
# VLAN_TOS_OVERRIDE[0]=
# VLAN_PRIORITY[0]=
# VLAN_TOS[0]=
# VLAN_NAME[0]=""
Sample /etc/rc.config.d/vlanconf File 47