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 Ignite-UX because of the duplex mismatches created. To correct the mismatches, you would add the following code to the install file system to extract, update, and replace the current configuration in the install file system:

instl_adm -d > /tmp/cfg.tmp

Edit the file:

vi /tmp/cfg.tmp

Add the following clause:

( lan[].driver == "btlan" )

{

_hp_lanadmin_args="-X 100FD"

}

Add this configuration clause to [WVI]INSTALLFS:

instl_adm -f /tmp/cfg.tmp

You can then review the current contents of the configuration in the install file system with instl_adm -d. The output is similar to this example:

( lan[].driver == "btlan" )

{

_hp_lanadmin_args="-X 100FD"

}

env_vars += "TZ=EST-10EDT"

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" )

{

_hp_lanadmin_args="-X 100FD" } else {

( lan.driver == "igelan" )

{

_hp_lanadmin_args="-X 1000FD"

}

}

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" )

{

_hp_lanadmin_args="-X 100FD"

}

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