Oracle Audio Technologies SunDual 10GbE XFP manual Configuring VLANs in a Linux Environment

Page 75

2.Use the ifconfig(1M) to configure a VLAN virtual device, for example:

#ifconfig nxge123000 plumb up

#ifconfig nxge224000 plumb up

The output of ifconfig -aon a system having VLAN devices nxge123000 and nxge224000:

#ifconfig -a

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000

hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 129.144.131.91 netmask ffffff00 broadcast 129.144.131.255 ether 8:0:20:a4:4f:b8

nxge123000: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 inet 199.199.123.3 netmask ffffff00 broadcast 199.199.123.255

ether 8:0:20:a4:4f:b8

nxge224000: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4 inet 199.199.224.3 netmask ffffff00 broadcast 199.199.224.225

ether 8:0:20:a4:4f:b8

3.On the switch, set VLAN tagging and set VLAN ports to coincide with the VLANs you’ve set up on the server.

Using the examples in Step 2, you would set up VLAN ports 123 and 224 on the switch.

Refer to the documentation that came with your switch for specific instructions for setting VLAN tagging and ports.

Configuring VLANs in a Linux

Environment

To Configure VLANs in a Linux Environment

1.Ensure that the nxge module is loaded:

#modprobe nxge

Chapter 8 Configuring VLANs

65

Image 75
Contents Sun Dual 10GbE XFP PCI Express Card Please Recycle Contents Configuring the nxge Device Driver Parameters Network ConfigurationConfiguring the Jumbo Frames Feature Configuring Link AggregationConfiguring VLANs Specifications Diagnostic SoftwareIndex Using Unix Commands Using This DocumentationShell Prompts Related Documentation Documentation, Support, and TrainingDocumentation Feedback Sun Dual 10GbE XFP PCI Express Card User’s Guide May Product Overview ComponentsProduct Description 1shows the adapter Hardware and Software RequirementsFeatures EMC Declaration of ConformityDate Sun Dual 10GbE XFP PCI Express Card User’s Guide May To Download the Driver on a Solaris Platform Installing and Setting Up the DriverFor x86 systems Uncompress the gzipped tar fileUnpack the tar file For Sparc systems, change to the following directoryTo remove the driver packages run the pkgrm command Select the packages you want to installVerify that the nxge driver is installed on the system To discover the driver packages run the pkginfo commandDownloading 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 Installing the Adapter Installing the AdapterTo Install the Adapter Installing the Adapter Sun Dual 10GbE XFP PCI Express Card User’s Guide May Install the optical transceivers Installing an Optical TransceiverTo Install an Optical Transceiver Installing the Adapter Ok show-nets Verifying the Hardware InstallationTo Verify the Hardware Installation Connect the Ethernet cablesOk .properties Ok cd /pci@7c0/pci@0/pci@8/network@0,1Rebooting the System Ok boot -rOk device-end Configuring the Network Host Files Network Configuration# grep nxge /etc/pathtoinst # ifconfig nxge0 plumb ip-addressup# 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 Find the root directory of the client system # grep client-name /etc/bootparams# shutdown -i0 -g0 -y Proceed with the Solaris Operating System installationOk boot /pci@7c0/pci@0/pci@8/network@0 Shut down and halt the client system# dladm show-dev To Boot Over the Network on Solaris x86 and Linux SystemsRefer the boot-device-order image Image pxe-mac-addr Press the F12 key to install the OS from the networkNxge Hardware and Software Overview Configuring the nxge Device Driver ParametersSetting 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 Set the parameters for the nxge devices To Set Driver Parameters Using an nxge.conf FileFollowing parameters can be set using Locate the path names and the associated instance numbersSun Dual 10GbE XFP PCI Express Card User’s Guide May Configuring the nxge Device Driver Parameters Class-opt-ipv4-tcp = 100 class-opt-ipv4-udp = Save the nxge.conf file Tuning for Maximum Performance on a Solaris PlatformReboot the system # reboot -rTo Improve Performance on an AMD CPU Based Sun Platform Set ipipsqueuefanout=1 set ipsqueuesoftring=1Set ddimsixalloclimit=1 Configuring the nxge Device Driver Parameters To Set Parameters Using the ethtool Utility Setting Parameters on a Linux PlatformConfiguring the nxge Device Driver Parameters Following are some common parameters that can be changed # ethtool -k eth4 # ethtool -C eth4 rx-usecs # ethtool -c eth4# /usr/local/bin/nxgeconfig eth4 get classoptipv4udp # /usr/local/bin/nxgeconfig eth4 getNet.core.netdevmaxbacklog = Tuning for Maximum Performance on a Linux Platform# /usr/local/bin/nxgeconfig eth4 set classoptipv4tcp 0xfe0 Net.ipv4.tcpsack =# sysctl -p /etc/sysctlnxge.conf Set up the sysctl utilityConfiguring the Jumbo Frames Feature Checking Jumbo Frames ConfigurationsJumbo Frames Overview To Show the Driver Statistics in a Solaris Environment # kstat nxge1 grep rdcpackets# kstat Nxge38001 To Check Layer 2 Configuration Enabling Jumbo Frames in a Solaris EnvironmentSet the maximum MTU for maximum performance Enabling Jumbo Frames in a Linux Environment To Check Layer 3 ConfigurationTo Enable Jumbo Frames in a Linux Environment Ensure that the nxge software is installedTo Show the Driver Statistics in a Linux Environment # ifconfig eth4Sun Dual 10GbE XFP PCI Express Card User’s Guide May Overview of Link Aggregation Configuring Link AggregationTo Configure Link Aggregation in a Solaris Environment Configuring Link Aggregation in a Solaris Environment# dladm show-aggr -s Use the dladm show-aggr-scommand to display statistics# ifconfig aggr33 plumb # ifconfig aggr33 192.168.1.1/24 broadcast + upLoad the bonding driver Configuring Link Aggregation in a Linux EnvironmentTo Configure Bonding for Multiple nxge Interfaces Configure bond0 interfaceOverview of VLANs Configuring VLANs 1shows an example network that uses VLANs Configuring VLANs in a Solaris Environment To Configure Static VLANs Ensure that the nxge module is loaded Configuring VLANs in a Linux EnvironmentTo Configure VLANs in a Linux Environment # ifconfig -aInsert the Vlan module Configure the nxge Vlan eth2 in this example# /sbin/vconfig add eth2 # ifconfig eth2.5 xxx.xxx.xx.xxx upConnectors SpecificationsTable A-1XFP Connector Characteristics Performance SpecificationsPower Requirements Physical CharacteristicsSun Dual 10GbE XFP PCI Express Card User’s Guide May SunVTS Diagnostic Software Diagnostic SoftwareUpdating SunVTS to Recognize the Adapter To Update SunVTS to Recognize the AdapterTo Use the netlbtest Using the SunVTS netlbtestSun Dual 10GbE XFP PCI Express Card User’s Guide May Index SymbolsSun Dual 10GbE XFP PCI Express Card User’s Guide May