Sun Microsystems 10GBE XFP manual To Configure Static VLANs, 2Ethernet Tag Header Format

Page 88
FIGURE 8-2

Tagging an Ethernet frame requires the addition of a tag header to the frame. The header is inserted immediately following the destination MAC address and the Source MAC address. The tag header consists of two bytes of Ethernet Tag Protocol identifier (TPID, 0x8100) and two bytes of Tag Control Information (TCI).

shows the Ethernet Tag Header format.

 

 

 

 

 

 

 

 

Octet

 

 

 

TPID (0x8100

 

1

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

3 bits

1

12 bytes

 

3

 

 

 

 

bit

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

User_

 

priority

 

 

 

 

 

 

 

CFI

VID

 

 

FIGURE 8-2Ethernet Tag Header Format

By default, a single VLAN is configured for every port. This groups all ports into the same broadcast domain, just as if there were no VLANs at all, VLAN tagging for the switch port is turned off.

Note – If you configure a VLAN virtual device for an adapter, all traffic sent or received by that adapter must be in VLAN-tagged format.

To Configure Static VLANs

1.Create one hostname.nxgenumber file for each VLAN that will be configured for each adapter on the server.

Use the following naming format, which includes both the VID and the physical point of attachment (PPA):

VLAN logical PPA = 1000 * VID + Device PPA nxge123000 = 1000*123 + nxge

This format limits the maximum number of PPAs (instances) you can configure to 1000 in the /etc/path_to_inst file.

For example, on a server with the Sun x8 Express Dual 10 Gigabit Ethernet Fiber XFP Low Profile Adapter having an instance of 0, belonging to a member of two VLANs, with VID 123 and 224, you would use nxge123000 and nxge224000, respectively, as the two VLAN PPAs.

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

Image 88
Contents Sun Dual 10GbE XFP PCI Express Card User’s Guide Please Recycle Contents Network Configuration Configuring the nxge Device Driver ParametersConfiguring Link Aggregation Configuring the Jumbo Frames FeatureConfiguring VLANs Diagnostic Software SpecificationsIndex 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 ConventionsDocumentation, Support, and Training Related DocumentationThird-Party Web Sites Sun Welcomes Your Comments Page Components Product OverviewProduct 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 PlatformUncompress the gzipped tar file Unpack the tar fileFor Sparc systems, change to the following directory For x86 systemsSelect the packages you want to install # /usr/sbin/pkgadd -dVerify that the nxge driver is installed on the system To discover the driver packages run the pkginfo commandTo remove the driver packages run the pkgrm command To Remove the Driver from a Solaris PlatformLogin to your system Downloading and Installing the Driver on a Linux Platform# ifconfig -a grep eth # modprobe nxge # ethtool -i eth4 driver nxge version To Remove the Driver From a Linux Platform# 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 Verifying the Hardware Installation To Verify the Hardware InstallationConnect the Ethernet cables Ok show-netsOk cd /pci@7c0/pci@0/pci@8/network@0,1 Ok .propertiesOk boot -r Rebooting the SystemOk device-end Network Configuration Configuring the Network Host Files# ifconfig nxge0 plumb ip-addressup # grep nxge /etc/pathtoinst# cat /etc/hosts Edit the hosts file in the diskless client’s root directory To Set Up a 10-Gigabit Ethernet Port on a Diskless ClientExport/root/client-name Network Configuration # grep client-name /etc/bootparams Find the root directory of the client systemProceed with the Solaris Operating System installation Ok boot /pci@7c0/pci@0/pci@8/network@0Shut down and halt the client system # 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 Parameters Using the ndd Utility Setting nxge Driver Parameters on a Solaris PlatformNoninteractive and Interactive Modes To Specify Device Instances for the ndd Utility To Specify Parameter Values Using the ndd UtilityTo modify a parameter value, use the -setoption # ndd /dev/nxge1 name to get/set ? Setting Parameters Using the nxge.conf FileMan prtconf To Set Driver Parameters Using an nxge.conf File Following parameters can be set usingLocate the path names and the associated instance numbers 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 = Tuning for Maximum Performance on a Solaris Platform Reboot the system# reboot -r Save the nxge.conf fileSet ipipsqueuefanout=1 set ipsqueuesoftring=1 To Improve Performance on an AMD CPU Based Sun PlatformSet 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 classoptipv4udpTuning for Maximum Performance on a Linux Platform # /usr/local/bin/nxgeconfig eth4 set classoptipv4tcp 0xfe0Net.ipv4.tcpsack = Net.core.netdevmaxbacklog =Set up the sysctl utility # sysctl -p /etc/sysctlnxge.confChecking Jumbo Frames Configurations Configuring the Jumbo Frames FeatureJumbo Frames Overview To Show the Driver Statistics in a Solaris Environment # kstat nxge1 grep rdcpacketsEnabling Jumbo Frames in a Solaris Environment # kstat Nxge38001To Check Layer 2 Configuration Boot -r# ifconfig nxge mtu Set the maximum MTU for maximum performanceTo Check Layer 3 Configuration To Enable Jumbo Frames in a Linux EnvironmentEnsure that the nxge software is installed Enabling Jumbo Frames in a Linux Environment# ifconfig ethx mtu # ifconfig eth4To Show the Driver Statistics in a Linux Environment Set the MTU for maximum performanceConfiguring the Jumbo Frames Feature Sun Dual 10GbE XFP PCI Express Card User’s Guide January Configuring Link Aggregation in a Solaris Environment Configuring Link AggregationOverview of Link Aggregation To Configure Link Aggregation in a Solaris Environment Use the dladm show-aggr-scommand to display statistics # ifconfig aggr33 plumb# ifconfig aggr33 192.168.1.1/24 broadcast + up # dladm show-aggr -sConfiguring Link Aggregation in a Linux Environment To Configure Bonding for Multiple nxge InterfacesLoad the bonding driver # 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 FormatConfiguring VLANs in a Linux Environment To Configure VLANs in a Linux Environment# ifconfig -a Ensure that the nxge module is loadedConfigure the nxge Vlan eth2 in this example # /sbin/vconfig add eth2# ifconfig eth2.5 xxx.xxx.xx.xxx up 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