Setting parameters using the ndd utility, To specify device instances for the ndd utility, Noninteractive and interactive modes – Sun Microsystems GigaSwift Ethernet Adapter User Manual

Page 69: Setting parameters using the, To specify device instances for the

Advertising
background image

Chapter 4

Configuring Driver Parameters

47

To set parameters so they remain in effect after you reboot the system, create a

/platform/sun4u/kernel/drv/ce.conf

file and add parameter values to this

file when you need to set a particular parameter for a device in the system.

Setting Parameters Using the

ndd

Utility

Use the

ndd

utility to configure parameters that are valid until you reboot the

system. The

ndd

utility supports any networking driver that implements the Data

Link Provider Interface (DLPI).

The following sections describe how you can use the

ce

driver and the

ndd

utility to

modify (with the

-set

option) or display (without the

-set

option) the parameters

for each

ce

device.

To Specify Device Instances for the

ndd

Utility

Before you use the

ndd

utility to get or set a parameter for a

ce

device, you must

specify the device instance for the utility.

1. Check the

/etc/path_to_inst

file to identify the instance associated with a

particular device.

In this example, the Gigabit Ethernet instance is from the installed adapter. The
instance number is in bold italics for clarity.

2. Use the instance number to select the device.

The device remains selected until you change the selection.

Noninteractive and Interactive Modes

You can use the

ndd

utility in two modes:

Noninteractive

Interactive

# grep ce /etc/path_to_inst

"/pci@8,600000/network@1" 0 "ce"

# ndd -set /dev/

ce-instance-number

Advertising