Sun Microsystems 10GBE XFP manual # grep nxge /etc/pathtoinst, # ifconfig nxge0 plumb ip-addressup

Page 42

1.At the command line, use the grep command to search the /etc/path_to_inst file for nxge interfaces.

#grep nxge /etc/path_to_inst

#"/pci@7c0/pci@0/pci@9/network@0" 0 "nxge"

#"/pci@7c0/pci@0/pci@9/network@0,1" 1 "nxge"

#

In this example, the device instance is from a Sun x8 Express Dual 10 Gigabit Ethernet Fiber XFP Low Profile Adapter installed in slot 1.

Be sure to write down your device path and instance, which in the example is "/pci@7c0/pci@0/pci@9/network@0" 0. Your device path and instance will be similar. You need this information to make changes to the nxge.conf file. See “Setting Parameters Using the nxge.conf File” on page 38.

2. Use the ifconfig command to set up the adapter’s nxge interface.

Use the ifconfig command to assign an IP address to the network interface. Type the following at the command line, replacing ip-addresswith the adapter’s IP address:

#ifconfig nxge0 plumb ip-addressup

Refer to the ifconfig(1M) man page and the Solaris documentation for more information.

If you want a setup that remains the same after you reboot, create an /etc/hostname.nxgenumber file, where number is the instance number of the nxge interface you plan to use.

To use the adapter’s nxge interface in the Step 1 example, create an /etc/hostname.nxge0 file, where 0 is the number of the nxge interface. If the instance number were 1, the filename would be

/etc/hostname.nxge1.

Do not create an /etc/hostname.nxgenumber file for a Sun x8 Express Dual 10 Gigabit Ethernet Fiber XFP Low Profile Adapter interface you plan to leave unused.

The /etc/hostname.nxgenumber file must contain the host name for the appropriate nxge interface.

The host name must have an IP address listed in the /etc/hosts file.

24 Sun Dual 10GbE XFP PCI Express Card User’s Guide • January 2009

Image 42
Contents Sun Dual 10GbE XFP PCI Express Card User’s Guide Please Recycle Contents Network Configuration Configuring the nxge Device Driver ParametersConfiguring the Jumbo Frames Feature Configuring Link AggregationConfiguring VLANs Specifications Diagnostic SoftwareIndex Tables Page Figures Sun Dual 10GbE XFP PCI Express Card User’s Guide January Declaration of Conformity EMCXii Sun Dual 10GbE XFP PCI Express Card User’s Guide January Preface How This Document Is OrganizedUsing Unix Commands Shell Prompts Typographic ConventionsRelated Documentation Documentation, Support, and TrainingThird-Party Web Sites Sun Welcomes Your Comments Page Product Overview ComponentsProduct Description Hardware and Software Requirements Features Sun Dual 10GbE XFP PCI Express Card User’s Guide January Installing and Setting Up the Driver To Download the Driver on a Solaris PlatformFor Sparc systems, change to the following directory Uncompress the gzipped tar fileUnpack the tar file For x86 systemsSelect the packages you want to install # /usr/sbin/pkgadd -dTo remove the driver packages run the pkgrm command Verify that the nxge driver is installed on the systemTo discover the driver packages run the pkginfo command To Remove the Driver from a Solaris PlatformDownloading and Installing the Driver on a Linux Platform Login to your system# ifconfig -a grep eth # modprobe nxge To Remove the Driver From a Linux Platform # ethtool -i eth4 driver nxge version# rpm -e nxge-1.0-1 Sun Dual 10GbE XFP PCI Express Card User’s Guide January Installing the Adapter Installing the AdapterTo Install the Adapter Installing the Adapter Sun Dual 10GbE XFP PCI Express Card User’s Guide January Installing an Optical Transceiver Install the optical transceiversTo Install an Optical Transceiver Installing the Adapter Connect the Ethernet cables Verifying the Hardware InstallationTo Verify the Hardware Installation Ok show-netsOk cd /pci@7c0/pci@0/pci@8/network@0,1 Ok .propertiesRebooting the System Ok boot -rOk device-end Network Configuration Configuring the Network Host Files# ifconfig nxge0 plumb ip-addressup # grep nxge /etc/pathtoinst# cat /etc/hosts To Set Up a 10-Gigabit Ethernet Port on a Diskless Client Edit the hosts file in the diskless client’s root directoryExport/root/client-name Network Configuration # grep client-name /etc/bootparams Find the root directory of the client systemShut down and halt the client system Proceed with the Solaris Operating System installationOk boot /pci@7c0/pci@0/pci@8/network@0 # shutdown -i0 -g0 -y# dladm show-dev To Boot Over the Network on Solaris x86 and Linux Systems Refer the boot-device-order imageSystem should reboot after saving the boot configuration Press the F12 key to install the OS from the network Image pxe-mac-addrSun Dual 10GbE XFP PCI Express Card User’s Guide January Configuring the nxge Device Driver Parameters Nxge Hardware and Software OverviewSetting nxge Driver Parameters on a Solaris Platform Setting Parameters Using the ndd UtilityNoninteractive and Interactive Modes To Specify Parameter Values Using the ndd Utility To Specify Device Instances for the ndd UtilityTo modify a parameter value, use the -setoption Setting Parameters Using the nxge.conf File # ndd /dev/nxge1 name to get/set ?Man prtconf Locate the path names and the associated instance numbers To Set Driver Parameters Using an nxge.conf FileFollowing parameters can be set using Set the parameters for the nxge devicesSun Dual 10GbE XFP PCI Express Card User’s Guide January Configuring the nxge Device Driver Parameters Class-opt-ipv4-tcp = 100 class-opt-ipv4-udp = # reboot -r Tuning for Maximum Performance on a Solaris PlatformReboot the system Save the nxge.conf fileTo Improve Performance on an AMD CPU Based Sun Platform Set ipipsqueuefanout=1 set ipsqueuesoftring=1Set ddimsixalloclimit=1 Configuring the nxge Device Driver Parameters Setting Parameters on a Linux Platform To Set Parameters Using the ethtool UtilityConfiguring the nxge Device Driver Parameters Following are some common parameters that can be changed # ethtool -C eth4 rx-usecs # ethtool -c eth4 # ethtool -k eth4# /usr/local/bin/nxgeconfig eth4 get # /usr/local/bin/nxgeconfig eth4 get classoptipv4udpNet.ipv4.tcpsack = Tuning for Maximum Performance on a Linux Platform# /usr/local/bin/nxgeconfig eth4 set classoptipv4tcp 0xfe0 Net.core.netdevmaxbacklog =Set up the sysctl utility # sysctl -p /etc/sysctlnxge.confConfiguring the Jumbo Frames Feature Checking Jumbo Frames ConfigurationsJumbo Frames Overview To Show the Driver Statistics in a Solaris Environment # kstat nxge1 grep rdcpacketsEnabling Jumbo Frames in a Solaris Environment # kstat Nxge38001# ifconfig nxge mtu To Check Layer 2 ConfigurationBoot -r Set the maximum MTU for maximum performanceEnsure that the nxge software is installed To Check Layer 3 ConfigurationTo Enable Jumbo Frames in a Linux Environment Enabling Jumbo Frames in a Linux EnvironmentTo Show the Driver Statistics in a Linux Environment # ifconfig ethx mtu# ifconfig eth4 Set the MTU for maximum performanceConfiguring the Jumbo Frames Feature Sun Dual 10GbE XFP PCI Express Card User’s Guide January Configuring Link Aggregation Configuring Link Aggregation in a Solaris EnvironmentOverview of Link Aggregation To Configure Link Aggregation in a Solaris Environment # ifconfig aggr33 192.168.1.1/24 broadcast + up Use the dladm show-aggr-scommand to display statistics# ifconfig aggr33 plumb # dladm show-aggr -sLoad the bonding driver Configuring Link Aggregation in a Linux EnvironmentTo Configure Bonding for Multiple nxge Interfaces # dladm show-aggr -LConfigure bond0 interface Sun Dual 10GbE XFP PCI Express Card User’s Guide January Configuring VLANs Overview of VLANsVlan Configuring VLANs in a Solaris Environment To Configure Static VLANs 2Ethernet Tag Header Format# ifconfig -a Configuring VLANs in a Linux EnvironmentTo Configure VLANs in a Linux Environment Ensure that the nxge module is loaded# ifconfig eth2.5 xxx.xxx.xx.xxx up Configure the nxge Vlan eth2 in this example# /sbin/vconfig add eth2 Insert the Vlan moduleSpecifications ConnectorsPerformance Specifications Table A-1XFP Connector CharacteristicsPhysical Characteristics Power RequirementsSun Dual 10GbE XFP PCI Express Card User’s Guide January Diagnostic Software SunVTS Diagnostic SoftwareTo Update SunVTS to Recognize the Adapter Updating SunVTS to Recognize the AdapterUsing the SunVTS netlbtest To Use the netlbtestSun Dual 10GbE XFP PCI Express Card User’s Guide January Symbols IndexSun Dual 10GbE XFP PCI Express Card User’s Guide January