Installing and Administering LAN/9000 Software
Chapter 6 147
Network Addressing
Subnet Addresses
Configuring Hosts on Fixed-Length Subnets Using the netconf
file
There are two ways to configure a subnet mask:
• Use SAM to configure the subnet mask.
• Use the ifconfig(1M) command. These changes will disappear,
however, when the system reboots.
To set a subnet mask, you may either include it in the SUBNET_MASK
variable in the netconf file or the ifconfig command. The netconf file
contains information you entered in SAM and this information is used to
start networking when the system reboots. If you configure your network
interfaces using SAM, SAM will enter the proper information in the
netconf file for you. The examples below are netconf examples for the
hosts in the example above after you have configured them in SAM:
Host A:
INTERFACE_NAME[0]=”lan0”
IP_ADDRESS[0]=”192.6.12.33”
SUBNET_MASK[0]=”255.255.255.224”
INTERFACE_NAME[1]=”lan1”
IP_ADDRESS[1]=”192.6.12.65”
SUBNET_MASK[1]=”255.255.255.224”
Host B:
INTERFACE_NAME[0]=”lan0”
IP_ADDRESS[0]=”192.6.12.36”
SUBNET_MASK[0]=”255.255.255.224”
INTERFACE_NAME[1]=”lan1”
IP_ADDRESS[1]=”192.6.12.130”
SUBNET_MASK[1]=”255.255.255.224”
Host C:
INTERFACE_NAME[0]=”lan0”
IP_ADDRESS[0]=”192.6.12.34”
SUBNET_MASK[0]=”255.255.255.224”
INTERFACE_NAME[1]=”lan0:1”
IP_ADDRESS[1]=”192.6.12.37”
SUBNET_MASK[1]=”255.255.255.224”
INTERFACE_NAME[2]=”lan1”
IP_ADDRESS[2]=”192.6.12.97”
SUBNET_MASK[2]=”255.255.255.224”