Changing network parameters

Whenever possible, use the smitty command to change network parameters.

To select a particular device type, use the smitty commodev command. Then, select the adapter type from the list that comes up. The following is an example of the smitty commodev command to change the network parameters for an Ethernet adapter:
                                   Change/Show Characteristics of an Ethernet Adapter

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Ethernet Adapter                                    ent2
  Description                                         10/100/1000 Base-TX PCI-X Adapter (14106902)
  Status                                              Available
  Location                                            1V-08
  Receive descriptor queue size                      [1024]                                                          +#
  Transmit descriptor queue size                     [512]                                                           +#
  Software transmit queue size                       [8192]                                                          +#
  Transmit jumbo frames                               no                                                             +
  Enable hardware transmit TCP resegmentation         yes                                                            +
  Enable hardware transmit and receive checksum       yes                                                            +
  Media Speed                                         Auto_Negotiation                                               +
  Enable ALTERNATE ETHERNET address                   no                                                             +
  ALTERNATE ETHERNET address                         [0x000000000000]                                                +
  Apply change to DATABASE only                       no                                                             +

F1=Help                       F2=Refresh                    F3=Cancel                     F4=List
Esc+5=Reset                   Esc+6=Command                 Esc+7=Edit                    Esc+8=Image
Esc+9=Shell                   Esc+0=Exit                    Enter=Do

To change any of the parameter values, do the following:

  1. Detach the interface by running the following command:
    # ifconfig en0 detach

    where en0 represents the adapter name.

  2. Use SMIT to display the adapter settings. Select Devices -> Communications -> adapter type -> Change/Show...
  3. Move the cursor to the field you want to change, and press F4 to see the minimum and maximum ranges for the field (or the specific set of sizes that are supported).
  4. Select the appropriate size, and press Enter to update the ODM database.
  5. Reattach the adapter by running the following command:
    # ifconfig en0 hosthame up
An alternative method to change these parameter values is to run the following command:
# chdev -l [ifname] -a [attribute-name]=newvalue
For example, to change the above tx_que_size on en0 to 128, use the following sequence of commands. Note that this driver only supports four different sizes, so it is better to use the SMIT command to see these values.
# ifconfig en0 detach
# chdev -l ent0 -a tx_que_size=128
# ifconfig en0 hostname up