29.1 Configuring LAN Adapters

   

The first step toward the configuration of a LAN adapter is to list the available adapters. Some of the adapters may not have their device drivers installed with the standard HP-UX installation. These adapters are not visible until you install related device drivers for them. The lsdev command can be used to list configured drivers for the LAN adapters as follows .

 #  lsdev -C lan  Character     Block       Driver          Class        52          -1         lan2            lan       140          -1         fcgsc_lan       lan       169          -1         btlan3          lan       170          -1         btlan4          lan       172          -1         fddi3           lan       173          -1         btlan1          lan       236          -1         maclan          lan # 

The command shows the major number for the driver and the driver name . Each adapter has some parameters associated with it, such as data transfer speed and maximum transfer unit (MTU). You can modify some of these parameters using HP-UX commands.

LAN Adapter-Naming Convention

Names for LAN adapters follow a convention where the name of each adapter consists of two parts . The first part is the name and the second part is a number showing the physical point of attachment (PPA). The combination of these two is called the NamePPA. Usually this combination starts with lan or snap followed by a PPA number. Any operation on an adapter is performed through this name. Names starting with lan are used for Ethernet encapsulation, while those starting with snap are used for IEEE 802.3 encapsulation. Common device names are lan0 , lan1 , and so on.

Detecting LAN Adapters

You have already used the ioscan command to list disk and tape drives . All LAN adapters fall into the lan class of devices. The following command lists all installed devices of class lan .

 #  ioscan -funC lan  Class     I  H/W Path  Driver      S/W State H/W Type  Description =================================================================== lan       0  10/4/8    btlan1      CLAIMED   INTERFACE HP HP-PB 100   Base TX card lan       1  10/4/16   btlan1      CLAIMED   INTERFACE HP HP-PB 100   Base TX card lan       2  10/12/6   lan2        CLAIMED   INTERFACE Built-in LAN                       /dev/diag/lan2  /dev/ether2 # 

The command shows that there are three LAN adapters installed in the system. You can see the instance number, hardware path, and driver name for each of these adapters. A CLAIMED in the S/W State column shows that the software driver is successfully bound with the adapter. The INTERFACE in the H/W Type column shows this type of hardware is an interface adapter. The last column shows a small description of the interface card. The last line shows device file names for lan2 .

In addition to the ioscan command, a more-specific command named lanscan can be used to list LAN adapters. This command shows additional information about each adapter. Output of this command is shown here.

 #  lanscan  Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI Path     Address        In# State NamePPA        ID  Type      Support Mjr# 10/4/16  0x080009D41DBB 1   UP    lan1 snap1     1   ETHER     Yes     119 10/4/8   0x080009D481F6 0   UP    lan0 snap0     2   ETHER     Yes     119 10/12/6  0x080009F02610 2   UP    lan2 snap2     3   ETHER     Yes     119 # 

In the output of the lanscan command, columns that show additional information are as follows.

Station Address This column shows a 48-bit Ethernet address. This is represented in hexadecimal notation. Each LAN adapter has a unique Ethernet address. This address is also called MAC address or physical address.
NamePPA A single adapter can support more than one protocol. The combination of name and PPA is shown under this column. A name starting with lan is used for Ethernet encapsulation, while a name starting with snap is used for IEEE 802.3 encapsulation.
NM ID Network Management ID. This is used with the lanadmin command for diagnosis and for changing network parameters.
MAC Type Shows what type of MAC layer is used with this adapter.
HP-DLPI Support Shows whether the device will work with an HP Data Link Provider Interface.

Use of the -v option with the command shows the extended station address and supported encapsulation methods as shown next . The Extended Station Address is used for interfaces that need more than 48 bits of physical address. The LLC Encapsulation Methods lists supported encapsulation methods on this interface adapter.

 #  lanscan -v  --------------------------------------------------------------------------- Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI Path     Address        In# State NamePPA        ID  Type      Support Mjr# 10/4/16  0x080009D41DBB 1   UP    lan1 snap1     1   ETHER     Yes     119 Extended Station                           LLC Encapsulation Address                                    Methods 0x080009D41DBB                             IEEE HPEXTIEEE SNAP ETHER NOVELL Driver Specific Information btlan1 --------------------------------------------------------------------------- Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI Path     Address        In# State NamePPA        ID  Type      Support Mjr# 10/4/8   0x080009D481F6 0   UP    lan0 snap0     2   ETHER     Yes     119 Extended Station                           LLC Encapsulation Address                                    Methods 0x080009D481F6                             IEEE HPEXTIEEE SNAP ETHER NOVELL Driver Specific Information btlan1 --------------------------------------------------------------------------- Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI Path     Address        In# State NamePPA        ID  Type      Support Mjr# 10/12/6  0x080009F02610 2   UP    lan2 snap2     3   ETHER     Yes     119 Extended Station                           LLC Encapsulation Address                                    Methods 0x080009F02610                             IEEE HPEXTIEEE SNAP ETHER NOVELL Driver Specific Information lan2 --------------------------------------------------------------------------- # 

   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net