Defining a VIPA

From LinuxVM
Jump to: navigation, search

Contributed by Mark Perry to the Linux-390 mailing list http://www2.marist.edu/htbin/wlvtype?LINUX-VM.74004


In order to load the dummy module in the SLES /etc/sysconfig/kernel script I have modified the following line:
MODULES_LOADED_ON_BOOT="vmcp dummy"

On SLES 10, I simply define in /etc/sysconfig/network a file named ifcfg-dummy0 as follows:

BOOTPROTO="none"
UNIQUE=""
STARTMODE="onboot"
MTU="8992"
IPADDR="10.101.4.216"
NETMASK="255.255.255.255"
NETWORK="10.101.4.216"
BROADCAST="0.0.0.0"

The dummy device is then brought up during runlevel 3.

To handle the qethconf in each OSA interface definition file ifcfg-xxxxxxx I add the line:

POST_UP_SCRIPT="setvipa"

Then in /etc/sysconfig/network/scripts I have added a script named setvipa as follows:

#!/bin/bash
#
# This script is called via ifup when it
# processes an ifcfg--*  script that contains:
#     POST_UP_SCRIPT="setvipa"
#
# First obtain interface name
INT=$2
#
# Now read in the dummy0 VIPA details
. /etc/sysconfig/network/ifcfg-dummy0
#
# Copy the IP address for dummy0
VIPA=${IPADDR}
#
# Set the VIPA address into the OSA interface
/sbin/qethconf vipa add ${VIPA} ${INT}