Sun Microsystems X1150A manual Configuring VLANs

Page 89

The Main Server is a high-use server that needs to be accessed from all VLANs and IP subnets. The server has an Sun GigaSwift Ethernet adapter installed. All three IP subnets are accessed via the single physical adapter interface. The server is attached to one of the SunSwitch’s Gigabit Ethernet ports, which is configured for VLANs 1, 2, and 3. Both the adapter and the connected SunSwitch port have tagging turned on. Because of the tagging VLAN capabilities of both devices, the sever is able to communicate on all three IP subnets in this network, but continues to maintain broadcast separation between all of them.

The Accounting Server is available to VLAN 3 only. It is isolated from all traffic on VLANs 1 and 2. The switch port connected to the server has tagging turned off.

Clients 1 and 2 are attached to a shared media hub that is then connected to the switch. They belong to VLAN 2 only, and are logically in the same IP subnet as the Main Server and Client 5. The switch port connected to this segment has tagging turned off.

Client 3 is a member of VLAN 1, and can communicate only with the Main Server and Client 5. Tagging is not enabled on Client 3’s switch port.

Client 4 is a member of VLAN 3, and can communicate only with the servers. Tagging is not enabled on Client 4’s switch port.

Client 5 is a member of both VLANs 1 and 2, and has a Sun GigaSwift Ethernet adapter installed. It is connected to switch port 10. Both the adapter and the switch port are configured for VLANs 1 and 2 and have tagging enabled.

VLAN tagging is only required to be enabled on switch ports that create trunk links to other VLAN-aware Ethernet switches, or on ports connected to tag-capable end- stations, such as servers or workstations with VLAN-aware adapters.

Configuring VLANs

VLANs can be created according to various criteria, but each VLAN must be assigned a VLAN tag or VLAN ID (VID). The VID is a 12-bit identifier between 1 and 4094 that identifies a unique VLAN. For each network interface (ce0, ce1, ce2 and so on), 4094 possible VLAN IDs can be selected. Only 512 unique IDs can be used simultaneously. Because IP subnets are commonly used, it is best to use IP subnets when setting up a VLAN network interface. This means that each VID assigned to a VLAN interface of a physical network interface will belong to different subnets.

Chapter 5 Configuring VLANs 65

Image 89
Contents Sun GigaSwift Ethernet Adapter Installation User’s Guide Please Recycle FCC Class a Notice Regulatory Compliance StatementsICES-003 Class a Notice Avis NMB-003, Classe a Bsmi Class a Notice Page European Union Declaration of ConformityPage Declaration of Conformity Page Contents Configuring Driver Parameters Network ConfigurationSpecifications Configuring VLANsDiagnostic Software and Troubleshooting Issues IndexPage Figures Page Tables Performance Sepcifications How This Book Is Organized PrefaceTypographic Conventions Using Unix CommandsRelated Documentation Accessing Sun Documentation OnlineShell Prompts Sun Welcomes Your Comments Hardware Overview Product OverviewSun GigaSwift Ethernet MMF Adapter Link is in Full Duplex modeLED Displays 1Front Panel Display LEDs for the MMF Adapter2Sun GigaSwift Ethernet UTP Adapter Sun GigaSwift Ethernet UTP Adapter2Front Panel Display LEDs for the UTP Adapter Patch Requirements Hardware and Software RequirementsKey Protocols and Interfaces Product FeaturesDiagnostic Support Page Become superuser Installing the Driver Software1Files and Directories on the CD-ROM Menu similar to the following displays Select the packages you want to install# showrev -p grep Verifying PatchesPatch version should be -07 or greater Patch version should be -05 or greater Patch version should be -13 or greaterSave the filler panel screw for Step Installing the Adapter Without Dynamic ReconfigurationTo Install the Adapter 1Connecting the Fiber Optic Cable 2Cat-5 Twisted-Pair Cable To Verify the InstallationOk cd /pci@1f,0/pci@1/network@4 List the network devices on your systemOk show-nets Ok .properties View the.properties file for a list of device propertiesOk setenv local-mac-address? true Setting the local-mac-addressPropertyPhy-typewill have its value assigned as follows Ok boot -r Rebooting the SystemOk setenv boot-device /pci@1f,2000/pci@1/network@4 To Install an Adapter in a Dynamic Reconfiguration System Installing the Adapter With Dynamic ReconfigurationStates and conditions should be # cfgadm# cfgadm -c disconnect sysctrl03 # cfgadm -v -c configure sysctrl#slot## cfgadm -c disconnect sysctrl#slot# Reconfigure the devices on the adapter Configure the adapter and slot# drvconfig devlinks disks ports tapes Connect the adapter and slotPage Use the ifconfig command to setup the adapter’s ce interface Configuring the Network Host Files# ifconfig ce0 plumb ipaddress up Export/root/clientname To Set Up a GigaSwift Ethernet Port on a Diskless Client# cat /etc/hosts Edit the hosts in the diskless client’s root directory Network Configuration # cd /cdrom/cdrom0/GigaSwiftEthernet/Packages # ls SUNWce # grep clientname /etc/bootparamsFind the root directory of the client system # shutdown -i0 -g0 -y Use the shutdown command to display the OpenBoot ok promptShut down and halt the client system # pkginfo grep SUNWce Proceed with the Solaris operating environment installationOk boot /pci@1f,4000/network@4speed=100,duplex=full Ok boot device-pathspeed=s,duplex=d,link-clock=c,promiscuous Booting Over the GigaSwift Ethernet Network2link-clockCapabilities for Link Up 1Device Link Parameters# boot netspeed=1000,duplex=auto,link-clock=auto # boot netspeed=100,duplex=full# boot netspeed=1000,duplex=full,link-clock=master Page GigaSwift Ethernet Device Driver Parameters Configuring Driver Parameters1ce Driver Parameter, Status, and Descriptions Driver Parameter Values and DefinitionsOperational Mode Parameters Operational Mode ParametersFlow Control Parameters 2Operational Mode Parameters3Read-Write Flow Control Keyword Descriptions 3provides flow control keywords and describes their functionInterpacket Gap Parameters 4Forced Mode ParameterGigabit Link Clock Mastership Controls 5Parameters Defining enable-ipg0and ipg0 7RX Blanking Register for Alias Read Interrupt Parameters7describes the receive interrupt blanking values 8RX Random Early Detecting 8-Bit Vectors Random Early Drop Parameters9PCI Bus Interface Parameters PCI Bus Interface ParametersSetting Parameters Using the ndd Utility Setting ce Driver ParametersUse the instance number to select the device To Specify Device Instances for the ndd UtilityDevice remains selected until you change the selection # ndd -set /dev/ce instance instance#Ndd utility then prompts you for the name of the parameter To modify a parameter value, use the -setoption# ndd -set /dev/ce parameter value # ndd /dev/ce parameterSetting the Autonegotiation Mode # ndd -set /dev/ce adv-autoneg-cap Setting Parameters Using the ce.conf FileSet the adv-autoneg-capparameter to # grep ce /etc/pathtoinst To Set Driver Parameters Using a ce.conf FileSecond line in the previous example Third line in the previous example Usability Enhancements to the DriverSave the ce.conf file # ndd -set /dev/hme instanceThen you had to get the link status GigaSwift Ethernet Driver Operating Statistics# ndd -get /dev/hme link-status # kstat cen grep linkup10Read-Only ce Device Capabilities 11Read-Only Link Partner Capabilities Reporting the Link Partner Capabilities11describes the read-only link partner capabilities 12Transmit and Receive Parameters 12describes the netstat -k transmit and receive parameters12Transmit and Receive Parameters # kstat Ce0 Code Example 4-1Output from kstat Command# netstat -k ce0 # kstat ce0 # kstat ce0 # kstat ce0 grep lp Use the kstat command to discover link partner capabilities# kstat ce0 grep link Use the kstat command to discover link settingsPage An Overview of VLANs Configuring VLANs1shows an example network that uses VLANs Configuring VLANs Vlan logical PPA = 1000 * VID + Device PPA To Configure Static VLANs# ifconfig -a # ifconfig ce123000 plumb up # ifconfig ce224000 plumb upPage Table A-1SC Connector Link Characteristics Ieee P802.3z ConnectorsTable A-3Performance Sepcifications Performance SpecificationsTable A-2Cat-5 Connector Link Characteristics Table A-5Power Requirements Physical CharacteristicsPower Requirements Page SunVTS Diagnostic Software Diagnostic Software Troubleshooting IssuesRunning the Ethernet FCode Self-Test Diagnostic Using the OpenBoot Prom FCode Self- TestReset the system Shut down the systemOk test /pci@1f,0/pci@1/network@4 Ok setenv diag-switch? falseType show-netsto display the list of devices Set the auto-boot?configuration parameter to true Troubleshooting IssuesReset and reboot the system Ok setenv auto-boot? trueAdv-pause-cap Type the following to apply and save your changesTable B-1Troubleshooting the GigaSwift Ethernet Adapter Failure to Configure GigaSwift Ethernet InstanceNon-Specific Issues Reboot system Problem with DR Attach on Sun Enterprise PlatformsAdd the following lines to the /etc/system file Set drdetachsafelist1=ce set hswpsuspendsafelist1=cePage Index Symbols