User's Guide
server="10.0.0.2"
netmask[]="255.255.255.0"
route_gateway[0]="10.0.1.1"
route_destination[0]="default"
disable_dhcp=true
( lla[0/0/0/0] == "080009654321" ) {
ip_addr[0/0/0/0]="10.0.1.45"
}
( lla[2/0/2] == "080009654123" ) {
ip_addr[2/0/2]="10.0.1.46"
}
( lla[1/0/0/0] == "080009654213" ) {
ip_addr[1/0/0/0]="10.0.1.47"
}
...
( lla[0/0/0/0] == "08000A654321" ) {
ip_addr[0/0/0/0]="10.0.2.45"
}
( lla[2/0/2] == "08000A654123" ) {
ip_addr[2/0/2]="10.0.2.46"
}
( lla[1/0/0/0] == "08000A654213" ) {
ip_addr[1/0/0/0]="10.0.2.47"
}
You will want to use unifdef on this file so that you can maintain it in one file but also be able to
create separate files to apply to LIFs (because you want to be able to set IP addresses automatically
on the systems you boot). First, though, you need to insert some other things into the file.
The unifdef command recognizes the following C preprocessor directives:
#ifdef
#ifndef
#if
#else
#endif
With these directives, you can change the configuration file as follows:
server="10.0.0.2"
netmask[]="255.255.255.0"
route_gateway[0]="10.0.1.1"
route_destination[0]="default"
disable_dhcp=true
#ifdef LAN_SEGMENT_1
( lla[0/0/0/0] == "080009654321" ) {
ip_addr[0/0/0/0]="10.0.1.45"
}
( lla[2/0/2] == "080009654123" ) {
ip_addr[2/0/2]="10.0.1.46"
}
( lla[1/0/0/0] == "080009654213" ) {
ip_addr[1/0/0/0]="10.0.1.47"
}
...
#endif
154