Setting 100 Full Duplex
If you want all Fast Ethernet LAN interfaces to run at 100 Full Duplex, this would cause some immediate problems for
instl_adm
Edit the file:
vi /tmp/cfg.tmp
Add the following clause:
( lan[].driver == "btlan" )
{
}
Add this configuration clause to [WVI]INSTALLFS:
instl_adm
You can then review the current contents of the configuration in the install file system with instl_adm
( lan[].driver == "btlan" )
{
}
env_vars +=
Setting Mixed interface types
In more complex environments, particularly those with mixed interface types, it is possible to be more complex in setting _hp_lanadmin_args. In this example, a default is set for _hp_lanadmin_args and a specific setting is defined for Gigabit Ethernet interfaces:
( lan[].driver == "btlan" lan[].driver == "gelan" )
{
( lan.driver == "igelan" )
{
}
}
This ensures that if the driver used to control the LAN interface being used is btlan or gelan it is changed to 100 Full Duplex, and if the driver is igelan the interface is set to 1000 Full Duplex.
Alternatively, if you want all Fast and Gigabit Ethernet interfaces to set to 100 Full Duplex you use the following:
( lan[].driver == "btlan" lan[].driver ~ "gelan" )
{
}
The ~ (tilde) operator performs an extended regular expression match. You must exercise care with extended regular expressions to prevent false matches. For more information regarding regular expressions, see regexp(5).
The grep command can be used from the command line to test extended regular expressions against different input. For more information, see grep(1).
Managing speed and duplexing of LAN interfaces executing network boots 109