Professional Documents
Culture Documents
HP - LAN Administration
HP - LAN Administration
HP-UX 11i v2
Manufacturing Part Number : B2355-90796
E0903
Uni ted States
Copyri ght 2003 Hewl ett-Packard Devel opment Company L.P. Al l ri ghts reserved.
ii
Legal Notices
The i nformati on i n thi s document i s subject to change wi thout noti ce.
Hewlett-Packard makes no warranty of any kind with regard to this manual, including, but
not limited to, the implied warranties of merchantability and tness for a particular purpose.
Hewl ett-Packard shal l not be hel d l i abl e for errors contai ned herei n or di rect, i ndi rect,
speci al , i nci dental or consequenti al damages i n connecti on wi th the furni shi ng, performance,
or use of thi s materi al .
Warranty
A copy of the speci c warranty terms appl i cabl e to your Hewl ett- Packard product and
repl acement parts can be obtai ned from your l ocal Sal es and Servi ce Ofce.
U.S. Government License
Propri etary computer software. Val i d l i cense from HP requi red for possessi on, use or copyi ng.
Consi stent wi th FAR 12.211 and 12.212, Commerci al Computer Software, Computer Software
Documentati on, and Techni cal Data for Commerci al I tems are l i censed to the U.S.
Government under vendor's standard commerci al l i cense.
Copyright Notice
Copyri ght 1997-2003 Hewl ett-Packard Devel opment Company L.P. Al l ri ghts reserved.
Reproducti on, adaptati on, or transl ati on of thi s document wi thout pri or wri tten permi ssi on i s
prohi bi ted, except as al l owed under the copyri ght l aws.
Trademark Notices
UNI X i s a regi stered trademark i n the Uni ted States and other countri es, l i censed
excl usi vel y through The Open Group.
I ntel and I tani um are regi stered trademarks of I ntel Corporati on.
Contents
iii
About This Document
New for the HP-UX 11i v2 Release
1. Installing HP-UX LAN
Overvi ew. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Checki ng LAN I nstal l ati on Prerequi si tes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Loadi ng LAN Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
I nstal l i ng LAN Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2. Conguring HP-UX LAN Using SAM
Overvi ew of Congurati on Usi ng SAM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Conguri ng the Network I nterface Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Conguri ng Network Connecti vi ty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Veri fyi ng the I nstal l ati on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Reconguri ng I P Addresses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3. Manually Installing and Conguring HP-UX LAN
Creati ng a New Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Veri fyi ng LAN Devi ce Fi l es . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Edi ti ng Dri ver Congurati on Fi l es . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Edi ti ng LAN Congurati on Fi l es . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Modi fyi ng the Hewl ett-Packard Stati on Address (opti onal ). . . . . . . . . . . . . . . . . . . . 24
Edi ti ng /etc/rc.cong.d/netconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Executi ng the Network Congurati on Scri pt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Creati ng the /etc/hosts Fi l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Network and System Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Acti vati ng Opti onal Network Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Modi fyi ng the /etc/servi ces Fi l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Creati ng the /etc/networks Fi l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Modi fyi ng the /etc/protocol s Fi l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4. Troubleshooting HP-UX LAN
Troubl eshooti ng Overvi ew. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Troubl eshooti ng Q & A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
LAN I nterface Card Stati sti cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
RFC 1213 MI B I I STATI STI CS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
RFC 1284 Ethernet-Li ke I nterface Stati sti cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Contents
iv
100Base-T Checkl i st . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Di agnosti c Fl owcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Fl owchart 1: Congurati on Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Fl owchart 2: Congurati on Test conti nued . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Fl owchart 3: Congurati on Test conti nued . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Fl owchart 4: Network Level Loopback Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Fl owchart 5: Network Level Loopback Test conti nued. . . . . . . . . . . . . . . . . . . . . . . . 67
Fl owchart 6: Transport Level Loopback Test (usi ng I nternet Servi ces) . . . . . . . . . . 69
Fl owchart 7: Li nk Level Loopback Test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Fl owchart 8: LAN Connecti ons Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Fl owchart 9: Gateway Remote Loopback Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Fl owchart 10: Gateway Remote Loopback Test conti nued . . . . . . . . . . . . . . . . . . . . . 78
Fl owchart 11: Subnet Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
5. LAN Resources
HP-UX Man Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Loggi ng and Traci ng Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Contacti ng Your HP Representati ve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
6. Network Addressing
Overvi ew of Network Addressi ng Schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Networki ng Termi nol ogy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Routes and Protocol s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Network I nterface Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Routi ng Tabl e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
ARP Cache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Network Addresses and Node Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
I nternet Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
I nternet Address Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Assi gni ng an I nternet Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Subnet Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Sel ecti ng a Subnet Addressi ng Scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Fi xed-Length Subnet Addressi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Conguri ng Gateways on Fi xed-Length Subnets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Contents
v
Expl i ci t Routi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Dynami c Routi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Proxy ARP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Vari abl e-Length Subnet Addressi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Assi gni ng Vari abl e-Length Subnet Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Conguri ng Gateways on Vari abl e-Length Subnets . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Expl i ci t Routi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Dynami c Routi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Proxy ARP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Conguri ng Gateways on Supernets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
I P Mul ti cast Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
I P Mul ti cast Addresses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Ethernet Mul ti cast Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Mul ti cast Routi ng . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Vi rtual I P (VI P) Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
CI DR - Cl assl ess I nter-Domai n Routi ng. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
7. LAN Device and Interface Terminology
I nterfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
RARP Congurati on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Setti ng Up a RARP Cl i ent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Setti ng Up a RARP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Contents
vi
vii
About This Document
Thi s document descri bes how to i nstal l , congure, and troubl eshoot HP-UX 11i v2 LAN
transport software.
The document pri nti ng date and part number i ndi cate the documents current edi ti on. The
pri nti ng date wi l l change when a new edi ti on i s pri nted. Mi nor changes may be made at
repri nt wi thout changi ng the pri nti ng date. The document part number wi l l change when
extensi ve changes are made.
Document updates may be i ssued between edi ti ons to correct errors or document product
changes. To ensure that you recei ve the updated or new edi ti ons, you shoul d subscri be to the
appropri ate product support servi ce. See your HP sal es representati ve for detai l s.
The l atest versi on of thi s document can be found onl i ne at docs.hp.com, under the
Networki ng and Communi cati ons topi c, under HP-UX LAN. Speci cal l y, thi s i s at:
docs.hp.com/hpux/netcom/index.html#HP-UX%20LAN.
Intended Audience
Thi s document i s i ntended for system and network admi ni strators responsi bl e for i nstal l i ng,
conguri ng, and managi ng HP-UX 11i v2 LAN transport software. Admi ni strators are
expected to have knowl edge of Transmi ssi on Control Protocol /I nternet Protocol (TCP/I P)
networki ng concepts and network congurati on. As wel l , i t i s hel pful to have a worki ng
knowl edge of operati ng system concepts, commands, and congurati on.
Thi s document i s not a tutori al .
New and Changed Documentation in This Edition
Thi s gui de i s for the HP-UX 11i v2 rel ease onl y. I t has been updated from I nstalling and
Administering LAN/ 9000 Software (Edition 10). Overal l , thi s document has onl y had mi nor
modi cati ons to reect changes speci c to HP-UX 11i v2.
viii
Publishing History
Whats in This Document
Thi s manual provi des i nformati on for i nstal l i ng and admi ni steri ng the HP-UX LAN product.
The HP-UX LAN product al l ows HP computers to connect to an I EEE 802.3 or Ethernet Local
Area Network. An HP-UX LAN network can be further extended vi a bri dges and routers i nto
a Wi de Area Network.
Thi s manual al so i ncl udes some i nformati on that may be useful for conguri ng other HP-UX
l i nk products, such as 10/100Base-T PCI . Speci cal l y, thi s i nformati on i ncl udes:
Manual congurati on of l i nks
Network addressi ng
LAN devi ce and i nterface termi nol ogy
The i nformati on i n thi s manual i s i ntended for network managers or operators who i nstal l
and admi ni ster HP-UX LAN on TCP/I P networks. I t i s assumed the reader i s experi enced
wi th HP-UX and i s fami l i ar wi th the basi cs of l ocal and wi de area networki ng.
The manual i s organi zed as fol l ows:
Chapter 1 Installing HP-UX LAN descri bes how to i nstal l HP-UX LAN software.
Chapter 2 Conguring HP-UX LAN Using SAM descri bes the steps to congure
HP-UX LAN software automati cal l y usi ng the System Admi ni strati on
Manager (SAM).
Chapter 3 Manually Installing and Conguring HP-UX LAN descri bes the steps
to bui l d the kernel , create devi ce l es, and manual l y congure HP-UX LAN
usi ng the vi edi tor.
Table1 Publishing History Details
Document
Manufacturing
Part Number
Operating
Systems
Supported
Publication
Date
B2355-90796 11i v2 Jul y 2003
B2355-90748 11i v1.6, 11i
v1, 11.0, 10.x
March 2002
ix
Chapter 4 Troubleshooting HP-UX LAN provi des owcharts to hel p di agnose
HP-UX LAN software and hardware probl ems. Thi s chapter al so descri bes
LAN card status val ues and stati sti cs returned by lanadmin.
Chapter 5 LAN Resources provi des references to other useful tool s for i nstal l i ng,
conguri ng, and mai ntai ni ng HP-UX LAN software.
Chapter 6 Network Addressing denes networki ng terms and expl ai ns network
i nterface names, network addresses, names and subnets. The i nformati on i n
thi s chapter i s appl i cabl e to conguri ng other HP-UX l i nk products on
TCP/I P networks.
Chapter 7 LAN Device and Interface Terminology denes terms used by the I /O
system to i denti fy LAN cards and devi ce l es.
IMPORTANT HP-UX 11i v2, by defaul t, supports I Pv6 transport. Thi s gui de does not i ncl ude
I Pv6 transport i nformati on. Refer to HP-UX I Pv6 Transport Administrators
Guide and HP-UX I Pv6 Porting Guide for I Pv6 transport i nformati on on
HP-UX 11i v2.
NOTE Thi s manual does not contai n the procedures for addi ng and repl aci ng PCI
cards usi ng OLA/R. OLA/R stands for On Li ne Addi ti on and Repl acement. Thi s
refers to the abi l i ty of a PCI I /O card to be repl aced (removed and/or added) to
an HP-UX computer system desi gned to support thi s feature wi thout the need
for compl etel y shutti ng down, then rebooti ng the system or affecti ng other
system components.
I f you want to uti l i ze the OLA/R feature that your system provi des, refer to the
I nterface Card OL* Support Guide.
HP-UX Release Name and Release Identier
Each HP-UX 11i rel ease has an associ ated rel ease name and rel ease i denti er. The uname(1)
command wi th the -r opti on returns the rel ease i denti er. Thi s tabl e shows the rel eases
avai l abl e for HP-UX 11i .
Table2 HP-UX 11i Releases
Release
Identier
Release Name
SupportedProcessor
Architecture
B.11.23 HP-UX 11i v2 I ntel I tani um
x
Related Documents
HP Documentation
Addi ti onal i nformati on about HP-UX LAN can be found wi thi n docs.hp.comi n the networking
and communications col l ecti on under HP-UX LAN at:
http://www.docs.hp.com/hpux/netcom/index.html#HP-UX%20LAN
Addi ti onal i nformati on about HP-UX I Pv6 transport software can be found wi thi n
docs.hp.com i n the networking and communications col l ecti on under I Pv6 at:
http://www.docs.hp.com/hpux/netcom/index.html#IPv6
Related RFCs
Thi s secti on provi des a l i st of the protocol s and standards on whi ch the HP-UX LAN products
are based. The I ETF (I nternet Engi neeri ng Task Force) RFCs l i sted bel ow can be l ocated at:
http://www.ietf.org/rfc.html.
B.11.22 HP-UX 11i v1.6 I ntel I tani um
B.11.20 HP-UX 11i v1.5 I ntel I tani um
B.11.11 HP-UX 11i v1 PA-RI SC
Table3 LAN Protocols and Standards
For Information
on:
Read:
Subnetti ng RFC 950, RFC 1122
Cl assl ess I nter-
Domai n Routi ng
RFC1519
Requi rements for I P
Versi on 4 Routers
RFC 1812
Table2 HP-UX 11i Releases (Continued)
Release
Identier
Release Name
SupportedProcessor
Architecture
xi
Vari abl e Length
Subnet Tabl e
RFC 1878
Protocol s: Address
Resol uti on Protocol
(ARP)
RFC 826
Domai n
Requi rements
RFC 920
Domai n Name
Server
RFC 1034, 1035, 1535
I nternet Control
Message Protocol
(I CMP)
RFC 792
I nternet Protocol
(I P)
MI L-STD 1777; RFC 791
Standard for the
Format of ARPA
I nternet Text
Messages
RFC 822
Transmi ssi on
Control Protocol
(TCP)
MI L-STD 1788; RFC 793, 813, 814, 816, 817,
179, 889, 896, 1122, 1323, 2018, 2414, 2581,
2582
I P Mul ti cast RFC 1112
Path MTU Di scovery RFC 1191
Wi ndow Scal i ng RFC 1323
Reverse Address
Resol uti on Protocol
(RARP)
RFC 903
Table3 LAN Protocols and Standards (Continued)
For Information
on:
Read:
xii
HP Welcomes Your Comments
HP wel comes your comments concerni ng thi s document. We are trul y commi tted to provi di ng
documentati on that meets your needs.
Pl ease send comments to: neti nfo_feedback@cup.hp.com
Pl ease i ncl ude document ti tl e, manufacturi ng part number, and any comment, error found, or
suggesti on for i mprovement you have concerni ng thi s document. Al so, pl ease tel l us what you
l i ke, so we can i ncorporate i t i nto other documents.
DRAFT COPY
xiii
New for the HP-UX 11i v2 Release
The HP-UX 11i v2 rel ease has the fol l owi ng transport (I P, TCP, and UDP) changes:
Transport support for I Pv6
I Pv6 i s the next generati on I nternet Protocol . I Pv6 requi res support from hosts and
routers. HP-UX 11i v2 I Pv6 transport software provi des host support for I Pv6.
Wi th onl y a few congurati on steps, an I Pv6 i nterface can be enabl ed, and you can use the
functi onal features of I Pv6 and I Pv6-enhanced components for HP-UX 11i v2.
NOTE The fol l owi ng software currentl y offers I Pv6 support: Transport, I nternet
Servi ces, DCE, DLPI , FDDI , SAM-NNC, Li bc, Commands, Desktop (CDE),
X11R6-based appl i cati ons, EMS, Onl i ne Di agnosti cs, SNMP, nettl , I PSec,
Kerberos Cl i ent, Servi ce Guard, Gl ance, HP-UX Secure Shel l , Apache and
JVM. Refer to product-speci c documentati on for more i nformati on.
I f you are not pl anni ng to use I Pv6 software, there i s no i mpact to you. Even though the
software i s i ncl uded, other than a few new l es and man pages, there are no acti ons
requi red to not use I Pv6.
To l earn more about I Pv6 transport on HP-UX 11i v2, refer to the fol l owi ng
documentati on, al l avai l abl e at:http://docs.hp.com/hpux/netcom/i ndex.html #I Pv6
HP-UX I Pv6 Transport Administrators Guide
HP-UX I Pv6 Porting Guide
I Pv6 Support secti on of HP-UX 11i Version 2 Release Notes
NOTE Thi s Gui de onl y covers I Pv4 rel ated transport i nformati on. I t does not cover
I Pv6 rel ated transport i nformati on.
Transport Support for HP-UX 11i v2 DLPI enhancements
An OOP (Opti ons negoti ati ons and Out-of-Packet) header has been added to the front of al l
I P packets for both i nbound packets from DLPI l ayer and outbound packets to DLPI l ayer.
Thi s change supports the HP-UX 11i v2 DLPI enhancements to the Streams I nterface to
provi de a ri cher feature set for network stack feature opti ons.
DRAFT COPY
xiv
Enhancements to CKO (Check-sum Ofoad) i nterfaces between transport and DLPI .
Thi s change makes the CKO i nterfaces more general wi th respect to the types of
checksum ofoad hardware that HP wi l l support, and adds sufci ent exi bi l i ty to the
i nterface that supports checksum ofoad for future transport protocol s. Thi s change
i ncorporates the DLPI OOP header to carry the type of checksum ofoad and the ofoaded
checksum i tsel f.
The transport i nternal kernel header l e, net/cko.h has been modi ed to support thi s
enhancement. Kernel I P Stream modul es that previ ousl y used opti ons for fastpath
negoti ati on features or l ooked i nto network data packets i n previ ous versi ons must make
changes and recompi l e for HP-UX 11i v2.
Chapter 1 1
1 Installing HP-UX LAN
Thi s chapter descri bes the manual procedures to l oad HP-UX LAN software and to i nstal l
LAN hardware onto your system.
Installing HP-UX LANDRAFT COPY
Overview
Chapter 1 2
Overview
Thi s chapter contai ns the fol l owi ng secti ons:
Step 1: Checki ng LAN I nstal l ati on Prerequi si tes
Step 2: Loadi ng LAN Software
Step 3: I nstal l i ng LAN Hardware
IMPORTANT I f you have a system wi th HP-UX LAN pre-i nstal l ed on i t, you may ski p thi s
chapter and go di rectl y to chapter 2. Execute the command lanscan to
determi ne i f the HP-UX LAN software and hardware have been pre-i nstal l ed.
I f, i n addi ti on, you have a precongured system, you may al so ski p chapter 2,
Conguri ng LAN Usi ng SAM.
I f you are unfami l i ar wi th HP-UX LAN products or networki ng concepts, HP recommends
that you read the NetworkingOverviewmanual , as wel l as Chapter 6, Network Addressi ng,
and Chapter 7, LAN Devi ce and I nterface Termi nol ogy, of thi s gui de before begi nni ng
HP-UX LAN i nstal l ati on.
DRAFT COPY Installing HP-UX LAN
Checking LAN Installation Prerequisites
Chapter 1 3
Checking LAN Installation Prerequisites
Pri or to l oadi ng the HP-UX LAN product onto your system, check that you have met the
fol l owi ng hardware and software prerequi si tes:
Check that /usr/bin, /usr/sbin, and /sbin are i n your PATH usi ng the command:
echo $PATH
The operati ng system shoul d have been upgraded to HP-UX 11i v2 software. To obtai n
thi s i nformati on, execute the command:
uname -a
Pri or to i nstal l i ng HP-UX LAN, HP recommends that you create a network map or update
the exi sti ng map of your network. Refer to chapter 6 for a sampl e LAN network map and
sampl e worksheet.
You have the appropri ate cabl i ng for your LAN card.
You have the i nstal l ati on and servi ce manual for your network card.
You have an I P address, subnet mask (opti onal ), and host name al i as for your new LAN
card.
You have superuser capabi l i ty.
Installing HP-UX LANDRAFT COPY
Loading LAN Software
Chapter 1 4
Loading LAN Software
Fol l ow the steps bel ow to l oad the HP-UX LAN software usi ng the HP-UX swinstall
program.
1. Log i n as root.
2. Check that /usr/bin, /usr/sbin, and /sbin are i n your PATH.
3. I nsert the software medi a i nto the appropri ate dri ve.
4. Run the swinstall program usi ng the command:
swinstall
Thi s opens the Software Sel ecti on Wi ndow and Speci fy Source Wi ndow.
5. Change the Source Host Name i f necessary, enter the mount poi nt of the dri ve i n the
Source Depot Path el d, and acti vate the OK button to return to the Software Sel ecti on
Wi ndow. Acti vate the Hel p button for more i nformati on.
The Software Sel ecti on Wi ndow now contai ns a l i st of avai l abl e software to i nstal l .
6. Hi ghl i ght the Networki ng software.
7. Choose Mark for Install from the Acti ons menu to choose the product to be i nstal l ed.
8. Choose Install from the Acti ons menu to begi n product i nstal l ati on and open the
I nstal l Anal ysi s Wi ndow.
9. Acti vate the OK button i n the I nstal l Anal ysi s Wi ndow when the Status el d di spl ays a
Ready message.
10. Acti vate the Yes button at the Conrmati on Wi ndow to conrm that you want to i nstal l
the software.
Vi ew the I nstal l Wi ndow to read processi ng data whi l e the software i s bei ng i nstal l ed,
unti l the Status el d i ndi cates Ready and the Note Wi ndow opens.
swinstall l oads the l eset, runs the control scri pts for the l eset, and bui l ds the kernel .
11. Acti vate the OK button on the Note Wi ndow to reboot the system.
The user i nterface di sappears and the system reboots.
12. When the system reboots, check the swinstall l og l e i n /var/adm/sw to make sure that
the i nstal l ati on was successful .
For addi ti onal i nformati on on the HP-UX swinstall program, refer to HP-UX 11i Version 2
I nstallation and Update Guide.
DRAFT COPY Installing HP-UX LAN
Installing LAN Hardware
Chapter 1 5
Installing LAN Hardware
Fol l ow the steps bel ow to prepare the system for i nstal l ati on of your network i nterface
hardware.
1. At the HP-UX prompt, execute the command:
shutdown -h
Wai t for the system to respond wi th a message i ndi cati ng that the system has been
hal ted.
2. Observe anti stati c precauti ons by fol l owi ng the gui del i nes as descri bed i n the i nstal l ati on
i nstructi ons i n the hardware manual or the Anti stati c Precauti ons Note.
3. I nstal l your network i nterface card by referri ng to your hardware i nstal l ati on and servi ce
manual .
CAUTION HP recommends not rearrangi ng any network i nterface cards i nstal l ed i n
your system. I f you move any exi sti ng network i nterface card i n the system,
you may need to recongure the I P address. See Reconguri ng I P
Addresses secti on i n the next chapter.
4. Power up the system to compl ete the process. The network i nterface card wi l l run a
sel f-test automati cal l y. Any error messages wi l l appear on the termi nal di spl ay or system
consol e.
5. Proceed to chapter 2, Conguri ng HP-UX LAN Usi ng SAM.
Installing HP-UX LANDRAFT COPY
Installing LAN Hardware
Chapter 1 6
Chapter 2 7
2 Conguring HP-UX LAN Using SAM
Thi s chapter descri bes how to congure LAN usi ng SAM, the System Admi ni strati on
Manager. I t contai ns the fol l owi ng secti ons:
Overvi ew of Congurati on Usi ng SAM
Conguring HP-UX LAN Using SAMDRAFT COPY
Chapter 2 8
Step 1: Conguri ng the Network I nterface Card
Step 2: Conguri ng Network Connecti vi ty
Step 3: Veri fyi ng the I nstal l ati on
Step 4: Reconguri ng I P Addresses
DRAFT COPY Conguring HP-UX LAN Using SAM
Overview of Conguration Using SAM
Chapter 2 9
Overview of Conguration Using SAM
Once you have i nstal l ed hardware and software, you can use SAM to automati cal l y congure
networki ng.
SAM stands for System Admi ni strati on Manager, a menu-dri ven uti l i ty for system
admi ni strati on tasks, i ncl udi ng congurati on of networki ng software. SAM has two user
i nterfaces, an X-Wi ndows system i nterface and a text termi nal i nterface. The pri mary
components and functi onal i ty of SAM are the same for both i nterfaces. The di fferences are the
screen appearance and the navi gati on methods.
You can access the SAM on-l i ne hel p system usi ng the fol l owi ng methods:
Choose an i tem from the Hel p menu (l ocated i n the menu bar) for i nformati on about the
current SAM screen, keyboard navi gati on wi thi n SAM, and the versi on of SAM on your
system.
Acti vate the HELP button from a di al og or message box for i nformati on about the
attri butes and tasks you can perform from the currentl y di spl ayed wi ndow.
Press the F1 key for context-sensi ti ve i nformati on for the object at the l ocati on of the
cursor.
Usi ng SAM to congure HP-UX LAN can be di vi ded i nto two procedures:
1. Conguri ng the Network I nterface Card.
2. Conguri ng Network Connecti vi ty.
Fol l ow Step 1 to add the I P address, any al i as names, and, i f the LAN card i s on a subnetwork,
enter the subnet mask for your card. Thi s procedure wi l l automati cal l y i ni ti al i ze the LAN l i nk
and attach your node to the l ocal area network (LAN). Fol l ow Step 2 to add remote system
names and remote system I P addresses for network connecti vi ty, and al so to speci fy defaul t
gateway i nformati on.
Conguring HP-UX LAN Using SAMDRAFT COPY
Conguring the Network Interface Card
Chapter 2 10
Conguring the Network Interface Card
NOTE Make sure the LAN card and dri ver are i nstal l ed i n the system before you use
SAM to congure the software.
Log i n as root and do the fol l owi ng:
1. At the HP-UX prompt, type: sam
2. Sel ect the Networking and Communications i tem of the SAM mai n wi ndow.
3. Sel ect the Network Interface Cards i tem of the Networking and Communications
wi ndow.
4. Doubl e-cl i ck the LAN card that you want to congure from the object l i st.
5. Veri fy that the hardware path i s correct for your LAN card (by compari ng the hardware
path on the Congure LAN Card wi ndow wi th the hardware path from the output of the
commands ioscan -fdbtlan and lanscan -v).
6. I f you are conguri ng the rst l ogi cal i nterface for a card type (al so cal l ed the i ni ti al
i nterface), hi ghl i ght the card and choose Configure from the Acti ons menu to open the
Configure LAN Card wi ndow.
I f you are addi ng l ogi cal i nterfaces to a card type, choose Add IP Logical Interface
from the Acti ons menu to open the Configure LAN Card wi ndow.
a. Enter the i nformati on about the LAN card. To do so, press the Tab key to move
through the data entry el ds.
NOTE SAM di spl ays the Card Name, Hardware (H/W) Path, and Stati on
Address el ds wi th the appropri ate val ues. These el ds cannot be
modi ed.
b. Choose the Card Type of your LAN card. The defaul t i s Ethernet. SNAP802.3 can be
sel ected.
NOTE The Enabl e DHCP button speci es that the system i s a Dynami c Host
Congurati on Protocol (DHCP) cl i ent. I f you acti vate thi s button, the I P
parameters for thi s system wi l l be set usi ng DHCP.
DRAFT COPY Conguring HP-UX LAN Using SAM
Conguring the Network Interface Card
Chapter 2 11
c. Enter the I nternet address for your LAN card.
Upon exi ti ng the I nternet Address el d, SAM checks to make sure that the I P address
you entered i s correctl y formatted and i s not currentl y i n use.
d. Speci fy whether your LAN card wi l l be on a subnetwork or supernet.
The Subnet Mask el d can contai n a xed-l ength subnet mask, a vari abl e-l ength
subnet mask, or a supernet mask. Enter the appropri ate type of mask for your
network addressi ng scheme.
Refer to the Network Addressi ng chapter for more i nformati on regardi ng network
addressi ng schemes.
e. Opti onal l y, enter comments about your LAN card.
f. Choose Add Host Name Aliases. You must compl ete thi s step i f you have more than
one LAN card i nstal l ed i n your system.
g. Add, modi fy, or remove al i as host names for your l ogi cal i nterface.
h. Acti vate the OK button to perform the task and return to the Configure LAN Card
wi ndow.
i . Opti onal l y acti vate the Advanced Options button. Thi s wi l l al l ow you to modi fy the
Stati on Address and congure an I nternet Broadcast Address. The Maxi mum
Transmi ssi on Uni t (MTU) el d i s di spl ay onl y.
7. Acti vate the OK button at the Configure LAN Card wi ndow to enabl e your LAN card.
I f the software i s correctl y congured, SAM di spl ays the Network I nterface Cards object
l i st wi th the status Enabl ed for your LAN card; otherwi se, SAM di spl ays an error
message.
8. Choose Exit from the Fi l e menu.
9. At the Networking and Communications wi ndow, choose Exit SAM from the Fi l e menu.
NOTE I f you have moved or removed any LAN cards from the system, HP
recommends that you veri fy the I P address of every card i n the backpl ane
before l eavi ng SAM.
10. I P accesses LAN devi ces through a si ngl e Data Li nk Provi der I nterface (DLPI ) devi ce l e
/dev/dlpi. The /dev/dlpi l e i s created automati cal l y duri ng i nstal l ati on. Veri fy that
the /dev/dlpi l e has been created correctl y by executi ng the HP-UX command:
ls -al /dev/dlpi
The output appears somethi ng l i ke the fol l owi ng:
Conguring HP-UX LAN Using SAMDRAFT COPY
Conguring the Network Interface Card
Chapter 2 12
crw-rw-rw- 1 bin bin 72 0x000077 Dec 4 11:14 /dev/dlpi
The major number, shown i n the fth col umn, must be 72 (deci mal ) and the mi nor
number, shown i n the si xth col umn, must be 77 (hexadeci mal ). I f the major numbers or
mi nor numbers are not correct, del ete the devi ce l e and recreate i t wi th the correct
numbers usi ng the mknod command. For exampl e:
mknod /dev/dlpi c 72 0x77
Conti nue to the next secti on, Conguri ng Network Connecti vi ty i f you want to congure
your system for network connecti vi ty. Otherwi se, conti nue to Veri fyi ng the I nstal l ati on.
DRAFT COPY Conguring HP-UX LAN Using SAM
Conguring Network Connectivity
Chapter 2 13
Conguring Network Connectivity
Your system may not be abl e to communi cate wi th other systems (for exampl e, PCs,
workstati ons, servers, etc.) unti l you congure system-to-system connecti ons. You can use
SAM to do thi s automati cal l y by compl eti ng the fol l owi ng steps:
1. At the HP-UX prompt, type: sam
2. Doubl e-cl i ck on the Networking and Communications i tem of the SAM mai n wi ndow.
3. Doubl e-cl i ck on Hosts. Doubl e-cl i ck on the Local Hosts File i tem.
SAM di spl ays the remote system names and I P addresses that are al ready congured.
4. Choose Add from the Acti ons menu to open the Add Host to File wi ndow.
Use the SAM on-l i ne hel p system for i nformati on about addi ng remote host connecti ons.
a. Enter the I nternet Address for the remote system.
Upon exi ti ng the I nternet Address el d, SAM checks to make sure you have entered a
val i d I P address. SAM al so determi nes i f a gateway i s requi red for the connecti on (see
step 4f).
b. Enter the remote host name.
Upon exi ti ng the Remote Host Name el d, SAM checks to make sure that connecti vi ty
has not al ready been congured for thi s system. I f i t has, SAM di spl ays an error
message.
c. Opti onal l y, choose Configure Aliases to open the Configure Aliases wi ndow for
remote systems.
d. Add, modi fy, or remove al i as names for the remote system.
e. Acti vate the OK button to perform the task and return to the Add Host to File
wi ndow.
f. Proceed to step 5 i f a gateway i s not requi red for thi s remote connecti on.
SAM di spl ays el ds for enteri ng gateway i nformati on i f a gateway i s requi red for thi s
remote system connecti on. Use the SAM on-l i ne hel p system for i nformati on about
gateways.
5. Acti vate the OK button to enabl e your system to communi cate wi th thi s system and
return to the Internet Addresses wi ndow.
SAM updates the object l i st to i ncl ude the remote system you congured.
Conguring HP-UX LAN Using SAMDRAFT COPY
Conguring Network Connectivity
Chapter 2 14
NOTE You can modi fy or remove remote systems and modi fy defaul t gateways by
hi ghl i ghti ng the Remote System Name from the object l i st and choosi ng
Modi fy, Remove, or Modi fy Defaul t Gateway from the Acti ons menu.
6. Choose Exit from the Fi l e menu.
7. Then Exi t SAM from the Fi l e menu agai n.
8. Veri fy remote system congurati on.
a. Vi ew the l i st of remote systems you can communi cate wi th usi ng a symbol i c name by
typi ng the fol l owi ng command at the HP-UX prompt (note that thi s l e may be l arge):
more /etc/hosts
b. Vi ew the congured desti nati ons reached through gateways and the gateways used to
reach those desti nati ons by typi ng the fol l owi ng command at the HP-UX prompt:
netstat -r
To veri fy that you can communi cate wi th a remote system usi ng the HP-UX LAN product,
conti nue to Veri fyi ng the I nstal l ati on.
DRAFT COPY Conguring HP-UX LAN Using SAM
Verifying the Installation
Chapter 2 15
Verifying the Installation
Once your HP-UX LAN software i s i nstal l ed, ful l y congured and runni ng, you shoul d execute
the fol l owi ng commands to veri fy LAN hardware and software i nstal l ati on. See the man
pages for compl ete descri pti ons of the commands l i sted bel ow.
1. Check the state of al l LAN hardware. To do so execute the lanscan command and veri fy
that the Hardware State i s UP.
2. Check the state of the network i nterface. To do so execute ifconfig on the i nterface you
wi sh to veri fy. The exampl e bel ow wi l l provi de i nformati on about the lan0 i nterface.
ifconfig lan0
3. Veri fy l i nk l evel l oopback connecti vi ty usi ng the linkloop command wi th the PPA and
stati on address of the i nterface you want to test. You can obtai n the stati on address
(typi cal l y 0x080009######) and PPA from the lanscan command output. The exampl e
bel ow wi l l test the connecti vi ty of the LAN card wi th PPA 4 and stati on address
0x080009266C3F.
linkloop -i 4 0x080009266C3F
4. Veri fy that the /dev/lan and /dev/snap l es have been created and symbol i cal l y l i nked
to the /dev/dlpi l e.
ls -l /dev/lan
ls -l /dev/snap
5. To check that the your system can communi cate wi th other systems, enter the ping
command at the HP-UX prompt. I n thi s exampl e, 191.2.1.2 i s the I P address of the remote
system. Enter [Ctrl]-C to stop ping.
ping 191.2.1.2
HP-UX LAN i nstal l ati on i s veri ed i f the steps above are successful . For i nformati on on
troubl eshooti ng HP-UX LAN congurati on and operati on, refer to the secti onDi agnosti c
Fl owcharts i n Chapter 4, Troubl eshooti ng HP-UX LAN.
Conguring HP-UX LAN Using SAMDRAFT COPY
Reconguring IP Addresses
Chapter 2 16
Reconguring IP Addresses
I f you have rearranged any network i nterface cards i n the system you may need to recongure
the I P addresses. Fol l ow the steps bel ow:
1. At the HP-UX prompt, type: sam
2. At the mai n menu sel ect the Networking and Communications i tem.
3. Sel ect the Network Interface Cards i tem.
4. Veri fy the I P addresses of al l the adapters i n the system by revi ewi ng the Card Name,
Hardware Path, and I nternet Address di spl ayed i n the Network I nterface Cards wi ndow.
5. For adapters wi th i ncorrect I P addresses, fol l ow the steps bel ow:
a. Sel ect the adapter you wi sh to modi fy.
b. Sel ect Modify from the Acti ons menu.
c. Modi fy the I nternet Address and sel ect ok.
Chapter 3 17
3 Manually Installing and Conguring
HP-UX LAN
Thi s chapter provi des i nformati on on manual l y conguri ng HP-UX LAN software. Manual l y
conguri ng HP-UX LAN i nvol ves the fol l owi ng steps:
Manually Installing and Conguring HP-UX LANDRAFT COPY
Chapter 3 18
Creati ng a New Kernel
Veri fyi ng LAN Devi ce Fi l es
Edi ti ng Dri ver Congurati on Fi l es
Edi ti ng LAN Congurati on Fi l es
Creati ng the /etc/hosts Fi l e
Acti vati ng Opti onal Network Features
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Creating a New Kernel
Chapter 3 19
Creating a New Kernel
Before attempti ng thi s procedure, fami l i ari ze yoursel f wi th the system recongurati on
i nformati on i n the mk_kernel(1M) man page and HP-UX system l i terature.
Refer to the System Admi ni strati on manual for your system for compl ete i nstructi ons on how
to create a kernel . The steps bel ow contai n a general outl i ne of kernel congurati on steps wi th
some i nformati on for the HP-UX LAN dri vers and parameter setti ngs contai ned wi thi n that
framework.
I f the kernel was not created wi th the LAN dri ver i n i t duri ng the swinstall procedure, you
can create i t manual l y. To determi ne whether the LAN dri ver i s i n the kernel , check the
/stand/system l e for the lanX keyword (where X=2 or 3). To determi ne whether the LAN
dri ver i s i nstal l ed, execute what /stand/vmunix and check for references to LAN i n the
output.
I f you used some other l e to create the kernel previ ousl y, copy that l e to /stand/system
before fol l owi ng the steps bel ow.
1. Ensure that you have superuser capabi l i ti es.
2. Change to the /stand di rectory.
3. Make a backup copy of your current congurati on descri pti on l e (whi ch i s commonl y
system or build/system).
4. Edi t the system l e to add dri vers and/or change system parameters. (Refer to your
speci c Ethernet LAN documentati on, as appropri ate for your congurati on, for compl ete
i nformati on.)
a. Veri fy or add the appropri ate keywords:
Some exampl es of keywords are:
btl an (PCI 10/100BT adapters)
gel an (Gi gabi t Ethernet add-on adapters)
i gel an (Next Generati on Core I O 10/100/1000 cards)
I f the keyword does not exi st i n the /stand/system l e, add the appropri ate l i nes to
the l e.
Manually Installing and Conguring HP-UX LANDRAFT COPY
Creating a New Kernel
Chapter 3 20
b. Dependi ng on whi ch l esets you have l oaded, you may al so need to add the fol l owi ng
keywords to the system l e:
5. Make a copy of the exi sti ng kernel (defaul t name vmunix).
6. Regenerate the kernel wi th mk_kernel, usi ng the edi ted system l e as i nput. mk_kernel
creates the new hp-ux kernel (the defaul t i s /stand/build/vmunix_test).
mk_kernel
I n thi s exampl e a new kernel i s created i n the bui l d di rectory cal l ed vmunix_test.
mk_kernel -s /stand/system -o /stand/vmunix
Thi s second exampl e automati cal l y moves the kernel to the /stand di rectory and makes a
backup (/stand/vmunix_prev) i f the l e /stand/vmunix al ready exi sts.
7. I f you di d not use the -o opti on wi th the mk_kernel command, execute kmupdate and thi s
wi l l copy the new kernel to /stand/vmunix. (Or you can manual l y copy the new kernel to
/stand/vmunix.)
8. Reboot the new kernel . I f the new kernel fai l s to boot, boot the system from the backup
kernel and repeat the process of creati ng a new kernel . To do so, fol l ow the i nstructi ons i n
the Managing System and Workgroups: A Guide for HP-UX System Administrators
manual .
Table3-1 Keywords
Keyword Comments
hpstreams requi red for streams
dl pi requi red
ui pc requi red for TCP/I P
i net requi red for TCP/I P
nms requi red for TCP/I P
nfs_core
nfs_cl i ent
nfs_server
netdi ag1
tun requi red for PPP
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Creating a New Kernel
Chapter 3 21
9. Proceed to the next secti on Veri fyi ng LAN Devi ce Fi l es, i n thi s chapter to conti nue
conguri ng HP-UX LAN manual l y. To congure your system wi th the SAM uti l i ty,
proceed to Chapter 2, Conguri ng HP-UX LAN Usi ng SAM.
Manually Installing and Conguring HP-UX LANDRAFT COPY
Verifying LAN Device Files
Chapter 3 22
Verifying LAN Device Files
Al l I P access to LAN devi ces i s done through the l es /dev/lan and /dev/snap, whi ch are
symbol i cal l y l i nked to the Data Li nk Provi der I nterface (DLPI ) devi ce l e /dev/dlpi. The
/dev/dlpi l e i s automati cal l y created at i nstal l ati on ti me. Veri fy that the /dev/lan and
/dev/snap l es have been created and symbol i cal l y l i nked to /dev/dlpi by enteri ng:
ls -l /dev/snap output wi l l l ook somethi ng l i ke:
lrwxr-xr-x 1 root sys 9 Mar 15 11:59 /dev/snap -> /dev/dlpi
ls -l /dev/lan output wi l l l ook somethi ng l i ke:
crw-rw-rw- 1 root sys 72 0x000077 Mar 15 11:59 /dev/lan
ls -l /dev/dlpi output wi l l l ook somethi ng l i ke:
crw-rw-rw- 1 root sys 72 0x000077 Mar 15 11:59 /dev/dlpi
The major number, shown i n the fth col umn, must be 72 (deci mal ) and the mi nor number,
shown i n the si xth col umn, must be 77 (hexadeci mal ). I f the i nformati on di ffers si gni cantl y,
del ete the l e and recreate i t correctl y wi th the mknod command:
mknod /dev/dlpi c 72 0x77
or
insf -d dlpi
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Editing Driver Conguration Files
Chapter 3 23
Editing Driver Conguration Files
I f needed, edi t appropri ate congurati on l es. Refer to your speci c Ethernet LAN
documentati on, as appropri ate for your congurati on, for compl ete i nformati on.
Bel ow are some exampl es of software dri ver names, congurati on l es, and i ni t scri pts for
Fast Ethernet and Gi gabi t Ethernet cards/adapters.
Table3-2 Fast Ethernet Examples
Fast Ethernet
driver
name
conguration
le
init script
Core PCI
10/100BT cards
btl an hpbtl anconf hpbtl an
Table3-3 Gigabit Ethernet Examples
Gigabit Ethernet
driver
name
conguration
le
init script
Add-On
10/100/1000
Adapters
(A4926A, A4929A)
gel an hpgel anconf hpgel an
Core 10/100/1000
Cards
i gel an hpi gel anconf hpi gel an
Add-On
10/100/1000
Cards
(A6847A, A6825A)
i gel an hpi gel anconf hpi gel an
Manually Installing and Conguring HP-UX LANDRAFT COPY
Editing LAN Conguration Files
Chapter 3 24
Editing LAN Conguration Files
To congure and i ni ti al i ze LAN manual l y, you must edi t the /etc/rc.config.d/netconf l e
and execute the HP-UX LAN i ni ti al i zati on scri pt. To do so, you must be l ogged on as root.
The scri pt reads the i nformati on i n the edi ted netconf l e when the system reboots and
performs the fol l owi ng:
Congures the network i nterface wi th an I P address and opti onal subnet mask.
Congures the network routi ng tabl e i f your node i s a gateway or on a LAN wi th a
gateway.
NOTE You must i ni ti al i ze HP-UX LAN to use HP-UX NFS or HP-UX I nternet
Servi ces. Refer to Executi ng the Network Congurati on Scri pt secti on bel ow
for opti ons avai l abl e to make congurati on changes acti ve.
You may al so want to modi fy the defaul t stati on address. To modi fy the stati on address, you
must edi t the (dri ver speci c) congurati on l e i n the di rectory /etc/rc.config.d. Refer to
Tabl e 3-2 and Tabl e 3-3 for some exampl es, and to your speci c Ethernet LAN documentati on,
as appropri ate for your congurati on, for compl ete i nformati on.
Modifying the Hewlett-Packard Station Address (optional)
Thi s step i s opti onal and most customers do not need to modi fy the stati on address of thei r
Hewl ett-Packard LAN cards.
Modi fyi ng the stati on address of an acti ve card wi l l probabl y destroy exi sti ng connecti ons and
trafc resul ti ng i n data l oss. Modi fyi ng the stati on address can al so cause temporary
confusi on i n the network because al l nodes that were communi cati ng wi th the l ocal node wi l l
detect an error when usi ng the exi sti ng stati on address. The confusi on i s temporary and al l
nodes may eventual l y recover from the si tuati on. Probl ems caused by modi fyi ng a stati on
address duri ng a communi cati on sessi on are di fcul t to troubl eshoot.
Editing the Driver Conguration File in /etc/rc.cong.d/
Edi ti ng the dri ver congurati on l e (refer to Tabl e 3-2 and Tabl e 3-3 for some exampl es, and
to your speci c Ethernet LAN documentati on, as appropri ate for your congurati on, for
compl ete i nformati on) wi l l modi fy the stati on address each ti me the system reboots. The
modi ed stati on address i s not permanent. Each system reboot causes the preset stati on
address to be overwri tten when a val ue i s suppl i ed to the congurati on parameters.
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Editing LAN Conguration Files
Chapter 3 25
CAUTION Each HP LAN card has a preset stati on address, for exampl e 080009xxxxxx.
Thi s address must be modi ed wi th cauti on. Modi fyi ng the stati on address of
an acti ve card wi l l probabl y destroy exi sti ng connecti ons and trafc resul ti ng i n
data l oss.
The stati on address congurati on parameters have an i ndex val ue, [x], that groups the
stati on address parameters together. The i ndex val ue must be di fferent for each addi ti onal
i nterface.
Fol l owi ng i s a sampl e hpbtlanconf entry:
HP_BTLAN_INTERFACE_NAME[0]=lan1
HP_BTLAN_STATION_ADDRESS[0]=0x022345678901
Editing /etc/rc.cong.d/netconf
Edi ti ng the netconf l e al l ows you to i denti fy the network i nterface name, I P address, and
subnet mask of your LAN card, and add entri es to the network routi ng tabl e. As the netconf
l e has read-onl y permi ssi on, you must have superuser capabi l i ty to make modi cati ons to
thi s l e.
The steps to add the hostname, l oopback address, i nternet congurati on i nformati on and
routi ng congurati on i nformati on to the netconf l e are l i sted bel ow.
NOTE The netconf l e and the scri pt that i s executed are shel l programs; therefore,
shel l programmi ng rul es appl y.
1. Veri fy that the hostname and l oopback address are set. Upper l ayer software often
requi res l oopback. Be sure that l oopback i s al so enabl ed i n the netconf l e.
HOSTNAME=nameofyoursystem
LOOPBACK_ADDRESS=127.0.0.1
2. Add i nternet congurati on i nformati on.
I n thi s step you wi l l assi gn an I P address and subnet mask, and congure network
i nterface parameters. The i nternet congurati on parameters have an i ndex val ue, [x],
that groups the congurati on parameters together. Fol l owi ng i s a sampl e of the i nternet
congurati on i nformati on of the netconf l e entry:
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.6.1.1
SUBNET_MASK[0]=255.255.224.0
Manually Installing and Conguring HP-UX LANDRAFT COPY
Editing LAN Conguration Files
Chapter 3 26
BROADCAST_ADDRESS[0]=
INTERFACE_STATE[0]=
DHCP_ENABLE[0]=0
I f you have more than one i nterface to congure, you must have a compl ete set of i nternet
congurati on parameters for each i nterface. The i ndex val ue must be di fferent for each
addi ti onal i nterface. The network i nterface name i n lanscan corresponds to the
INTERFACE_NAME[x] i n the i nternet congurati on parameters.
You can congure mul ti pl e l ogi cal i nterfaces for a physi cal i nterface. You must congure
the i ni ti al i nterface for a card/encapsul ati on type before you can congure other l ogi cal
i nstances of the same card/encapsul ati on type. For exampl e, you must congure l an0:0 (or
l an0) before you congure l an0:1 and l an0:2. I n the netconf entry shown previ ousl y, l an0
i s equi val ent to l an0:0, the i ni ti al i nterface for l an0. The fol l owi ng i s a sampl e netconf
entry for a second l ogi cal i nterface on l an0:
INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=192.6.3.3
SUBNET_MASK[1]=255.255.224.0
BROADCAST_ADDRESS[1]=
INTERFACE_STATE[1]=
DHCP_ENABLE[1]=0
For more i nformati on about speci fyi ng i nterface names for mul ti pl e l ogi cal i nterfaces, see
chapter 6, Network Addressi ng.
3. Add routi ng congurati on i nformati on.
I f you i ntend to use your system as a gateway or to communi cate wi th gateways, add the
route desti nati on, gateway address, and hop count parameter i nformati on. The routi ng
congurati on parameters have an i ndex val ue, [x], that groups the routi ng parameters
together. Fol l owi ng i s a sampl e netconf entry:
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=192.6.1.2
ROUTE_COUNT[0]=1
ROUTE_MASK[0]=
ROUTE_ARGS[0]=
The i ndex val ue must be di fferent for each addi ti onal route.
Executing the Network Conguration Script
Once you have edi ted the netconf l e, you need to acti vate thi s congurati on. After addi ng
the LAN and routi ng congurati on i nformati on i nto the netconf l e, you can ei ther reboot
your system, execute the ifconfig, and route commands manual l y, or re-execute the
/sbin/init.d/net.init and /sbin/init.d/net scri pts. Thi s secti on di scusses each of these
opti ons.
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Editing LAN Conguration Files
Chapter 3 27
Option 1: Reboot your system. HP recommends that you reboot your system to acti vate any
changes you made i n your netconf l e. A reboot i s the cl eanest method for executi ng the
network scri pt because the reboot handl es any other network i ni ti al i zati on dependenci es.
Option 2: Execute the ifconfig and route commands at the HP-UX prompt. HP recogni zes
that system reboots are di srupti ve to end users. To del ay or schedul e the reboot, but sti l l make
your congurati on changes acti ve, you may execute the ifconfig and route commands wi th
the appropri ate val ues for your network. When you reboot, the val ues i n your netconf l e
wi l l be used. Refer to the lanscan(1M), ifconfig(1M), and route(1M) man pages for
i nformati on on command usage.
Option 3:
I f you made changes to the stati on address, execute the i ni t scri pt i n the di rectory /sbi n/i ni t.d/.
Refer to Tabl e 3-2 and Tabl e 3-3 for some exampl es, and to your speci c Ethernet LAN
documentati on, as appropri ate for your congurati on, for correct i ni t scri pt. For a 100BT PCI
card on an rx2600 system, heres an exampl e:
/sbin/init.d/btlan start
After executi ng the above command, execute the command:
/sbin/init.d/net start
These commands wi l l source the contents of the netconf and hpbtlanconf l es. Executi ng
these scri pts wi l l not necessari l y properl y re-i ni ti al i ze any other networki ng subsystems. For
exampl e, i f you are runni ng an I nternet Servi ce over the l i nk you have just congured
manual l y, the servi ce may not work wi th your new congurati on. The system boot sequence
i ni ti al i zes networki ng subsystems and products i n the correct order. I ni ti al i zi ng a speci c
subsystem al one may cause network probl ems.
Manually Installing and Conguring HP-UX LANDRAFT COPY
Creating the /etc/hosts File
Chapter 3 28
Creating the /etc/hosts File
You must edi t the /etc/hosts l e to add an I P address and hostname for the LAN card that
you are i nstal l i ng.
NOTE I f you are usi ng a nami ng servi ce (DNS or NI S), you wi l l need to modi fy the
/etc/hosts l e to add the I P address and host name to the appropri ate
databases on the name server system. Refer to I nternet Services
Administrators Guide and NFS Services Administrators Guide for more
i nformati on on nami ng servi ces.
The /etc/hosts l e associ ates I P host addresses wi th mnemoni c host names and al i as
names. I t contai ns the names of other nodes i n the network wi th whi ch your system can
communi cate. HP-UX LAN di agnosti cs netstat and ping use /etc/hosts. I f you i nstal l
HP-UX I nternet Servi ces or HP-UX NFS, those products al so use the /etc/hosts l e.
You can create an /etc/hosts l e three ways:
From scratch, enteri ng the known nodes i n the format shown bel ow.
By copyi ng the l e from another node.
By copyi ng the ofci al host database mai ntai ned at the Network I nformati on Control
Center (NI C) for ARPA I nternet networks, i f you are i nstal l i ng HP-UX I nternet Servi ces.
I f you copy an /etc/hosts l e from another host, you may need to update the l e by addi ng
unofci al al i ases or unknown hosts, i ncl udi ng your own host.
Network and System Names
A system i s known by several names, each wi th i ts own purpose:
System name: Used for cl uster congurati on and UUCP communi cati on.
Host nameand aliases: Used for most network communi cati on. Thi s mi ght be a ful l y qual i ed
domai n name i ncl udi ng the DNS domai n. For exampl e: turtle.bnio.nmt.edu
HP recommends that you try to keep these names as consi stent as possi bl e, wi thi n thei r
l i mi tati ons. Thi s wi l l hel p to mi ni mi ze confusi on.
The exampl es bel ow show how a system wi th the name, host3, mi ght be referenced i n the
/etc/hosts and other system and networki ng l es and commands:
System name i n I nstal l screen:
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Creating the /etc/hosts File
Chapter 3 29
host3
/etc/rc.config.d/netconf l e:
HOSTNAME=host3
/etc/hosts l e:
192.6.1.1 host3 host3.site2.region4
uname -S host3
hostname host3
NOTE When you rst i nstal l a system, the netconf HOSTNAME entry, the
/etc/hosts entry, the hostname, and uname -S are set for you automati cal l y.
/etc/hosts
Each node has a one l i ne entry i n the /etc/hosts l e. Each entry i n the l e takes the
fol l owi ng form:
Syntax
IP_address host_name [alias]...
Parameters
IP_address The I P address that uni quel y i denti es the node. IP_address must be i n
i nternet dot notati on. Refer to Chapter 6, Network Addressi ng, for more
i nformati on on I P addresses.
host_name Name of the node. Host names can contai n any pri ntabl e character except
spaces, newl i ne, or the comment character (#). Nami ng Conventi on: the rst
ni ne characters shoul d be uni que for each network host.
alias Common name or names for the node. An al i as i s a substi tute for
host_name. Al i as names are opti onal . Nami ng Conventi on: the rst ni ne
characters shoul d be uni que for each network host.
/etc/hosts Format
When creati ng the /etc/hosts l e, fol l ow these rul es:
Li nes cannot start wi th a bl ank or tab character.
Fi el ds can have any number of bl anks or tab characters separati ng them.
Manually Installing and Conguring HP-UX LANDRAFT COPY
Creating the /etc/hosts File
Chapter 3 30
Comments are al l owed and desi gnated by a pound si gn (#) precedi ng the comment text.
Trai l i ng bl ank and tab characters are al l owed.
Bl ank l i ne entri es are al l owed.
Onl y one host entry per l i ne i s al l owed.
/etc/hosts Permissions
HP recommends that the /etc/hosts l e be owned by user root and have 0x444
(-r--r--r--) access permi ssi on. For more i nformati on on /etc/hosts, refer to the hosts(4)
man page i n the HP-UX Reference Pages.
NOTE HP hi ghl y recommends that you l i mi t access to the /etc/hosts l e by setti ng
the permi ssi on to 0x444 (-r-r-r--) for read access onl y.
/etc/hosts Example
The fol l owi ng /etc/hosts entry contai ns an I P address, hostname, and al i as names
(host3.si te2.regi on4 and grace).
192.6.1.1 host3 host3.site2.region4 grace
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Activating Optional Network Features
Chapter 3 31
Activating Optional Network Features
To acti vate speci al network features, you may al so want to congure /etc/services,
/etc/networks, and /etc/protocols. Each of these steps i s opti onal .
NOTE I f you are usi ng NI S, modi cati ons to the /etc/services, /etc/networks and
/etc/protocols l es shoul d onl y be made on the NI S Master Server. Refer to
the NFS Services Administrators Guide for more i nformati on
Modifying the /etc/services File
The /etc/services l e associ ates port numbers wi th mnemoni c servi ce names and al i as
names. The /etc/services l e contai ns the names, protocol names, and port numbers of al l
servi ces known to your l ocal host. The netstat di agnosti c uses the /etc/services l e.
I f you i nstal l HP-UX I nternet Servi ces or HP-UX NFS, these products wi l l al so use the
/etc/services l e.
NOTE You can modi fy thi s l e i f you have speci al requi rements, but i t i s properl y
congured when you recei ve HP-UX LAN.
/etc/services
Each servi ce has a one l i ne entry i n the /etc/services l e. Each entry i n /etc/services l e
takes the fol l owi ng form:
Syntax
service_name port_num/protocol [alias]...
Parameters
service_name Name of the servi ce. Servi ce names can contai n any pri ntabl e character
except spaces, newl i ne, or the comment character (#).
port_num /protocol port_num i s the protocol port number assi gned to thi s servi ce. Al l
requests for thi s servi ce must use thi s port number. protocol i s the protocol
name, as l i sted i n /etc/protocols, that the servi ce uses.
Manually Installing and Conguring HP-UX LANDRAFT COPY
Activating Optional Network Features
Chapter 3 32
alias Common name or names for the servi ce. An al i as i s a substi tute for
service_name. Al i as names are opti onal .
/etc/services Format
Li nes cannot start wi th a bl ank or tab character.
Fi el ds can have any number of bl anks or tab characters separati ng them.
Comments are al l owed and desi gnated by a pound si gn (#) character precedi ng the
comment text.
Trai l i ng bl ank and tab characters are al l owed.
Bl ank l i ne entri es are al l owed.
Onl y one entry per l i ne i s al l owed.
/etc/services Permissions
The /etc/services l e shoul d be owned by user bin, group bin, and i t shoul d have 0x444
(-r--r--r--) access permi ssi on.
Refer to the /etc/services l e for exampl es of actual format and contents. For more
i nformati on on /etc/services, refer to the services(4) man page i n the HP-UX Reference
Pages.
/etc/services Example
The fol l owi ng /etc/services entry contai ns the servi ce name, port number, protocol name,
and al i as name for the shell servi ce.
shell 514/tcp cmd #remote command, no passwd used
Creating the /etc/networks File
The /etc/networks l e associ ates network addresses wi th mnemoni c names and al i as
names. The /etc/networks l e contai ns the name and address of known i nternet networks
wi th whi ch your host can communi cate. The HP-UX LAN di agnosti c netstat and the route
command use the /etc/networks l e. You must congure thi s l e for your host i f you want
route or netstat to use symbol i c network names i nstead of addresses.
You can create an /etc/networks l e two ways:
From scratch, enteri ng the known nodes i n the format shown bel ow.
By copyi ng the l e from another node.
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Activating Optional Network Features
Chapter 3 33
I f you copy an /etc/networks l e from another host, you may need to update the l e by
addi ng unofci al al i ases or unknown networks, i ncl udi ng your own network.
/etc/networks
Each network has a one l i ne entry i n the /etc/networks l e. Each entry i n /etc/networks
l e takes the fol l owi ng form:
Syntax
network_name network_address [alias]...
Parameters
network_name Name of the i nternet network. Network names can contai n any pri ntabl e
character except spaces, newl i ne, or the comment character (#).
network_address Network address that uni quel y i denti es the network. Thi s address can be
a subnet or supernet address. I t may al so contai n the netmask transl ati on.
network_address must be i n dot notati on. See Chapter 6 for detai l s on
network addresses.
alias Common name or names for the network. An al i as i s a substi tute for
network_name. Al i as names are opti onal .
/etc/networks Format
Li nes cannot start wi th a bl ank or tab character.
Fi el ds can have any number of bl anks or tab characters separati ng them.
Comments are al l owed and desi gnated by a pound si gn (#) character precedi ng the
comment text.
Trai l i ng bl ank and tab characters are al l owed.
Bl ank l i ne entri es are al l owed.
Onl y one entry per l i ne i s al l owed.
/etc/networks Permissions
The /etc/networks l e shoul d be owned by user bin, group bin, and i t shoul d have 0x444
(-r--r--r--)access permi ssi on.
For more i nformati on on /etc/networks, refer to the networks(4) man page i n the HP-UX
Reference Pages.
Manually Installing and Conguring HP-UX LANDRAFT COPY
Activating Optional Network Features
Chapter 3 34
/etc/networks Example
The fol l owi ng /etc/networks entry contai ns a network name, network address, and an al i as
name for the network neta.
neta 192.6.1 testlan
Modifying the /etc/protocols File
The /etc/protocols l e associ ates port numbers wi th mnemoni c names and al i as names.
The /etc/protocols l e contai ns the names and protocol numbers of al l protocol s known to
your l ocal host. The netstat di agnosti c uses the /etc/protocols l e. I f you i nstal l HP-UX
I nternet Servi ces or HP-UX NFS, those products wi l l al so use the /etc/protocols l e.
NOTE You can modi fy thi s l e i f you have speci al requi rements, but i t i s properl y
congured when you recei ve the HP-UX LAN software.
/etc/protocols
Each protocol has a one l i ne entry i n the /etc/protocols l e. Each entry i n /etc/protocols
l e takes the fol l owi ng form:
Syntax
protocol_name protocol_num [alias]...
Parameters
protocol_name Name of the protocol . Protocol names can contai n any pri ntabl e character
except spaces, newl i ne, or the comment character (#).
protocol_num Protocol number that i denti es thi s protocol .
alias Common name or names for the protocol . An al i as i s a substi tute for
protocol_name. Al i as names are opti onal .
/etc/protocols Format
Li nes cannot start wi th a bl ank or tab character.
Fi el ds can have any number of bl anks or tab characters separati ng them.
Comments are al l owed and desi gnated by a pound si gn (#) character precedi ng the
comment text.
Trai l i ng bl ank and tab characters are al l owed.
DRAFT COPY Manually Installing and Conguring HP-UX LAN
Activating Optional Network Features
Chapter 3 35
Bl ank l i ne entri es are al l owed.
Onl y one entry per l i ne i s al l owed.
/etc/protocols Permissions
The /etc/protocols l e shoul d be owned by user bin, group bin, and i t shoul d have 0x444
(-r--r--r--) access permi ssi on.
Refer to the /etc/protocols l e for exampl es of actual format and contents. For more
i nformati on on /etc/protocols, refer to the protocols(4) man page i n the HP-UX
Reference Pages.
/etc/protocols Example
The fol l owi ng /etc/protocols entry contai ns a protocol name, protocol number and an al i as
name.
tcp 6 TCP
Manually Installing and Conguring HP-UX LANDRAFT COPY
Activating Optional Network Features
Chapter 3 36
Chapter 4 37
4 Troubleshooting HP-UX LAN
Thi s chapter provi des gui del i nes for troubl eshooti ng H-UX LAN. I t contai ns the fol l owi ng
secti ons:
Troubl eshooti ng Overvi ew
Troubleshooting HP-UX LANDRAFT COPY
Chapter 4 38
Troubl eshooti ng Q and A
LAN I nterface Card Stati sti cs
100Base-T Checkl i st
Di agnosti c Fl owcharts
DRAFT COPY Troubleshooting HP-UX LAN
Troubleshooting Overview
Chapter 4 39
Troubleshooting Overview
Troubl eshooti ng LAN probl ems can be di fcul t because a vari ety of hardware and software
components may be i nvol ved and because the probl em i mpacti ng your system may ori gi nate
i n another part of the network.
The Troubl eshooti ng Q and A secti on i n thi s chapter provi de qui ck x sol uti ons to common
network probl ems by provi di ng answers to the most frequentl y asked troubl eshooti ng
questi ons. Look through the probl ems i denti ed to see i f your probl em ts i nto any of these
categori es. I f so, you may be abl e to qui ckl y i denti fy and recover from the probl em wi thout any
further i nvesti gati on.
I f, however, you are unabl e to i denti fy your probl em, proceed to the 100Base-T Checkl i st to
have a general vi ew of your system and i ts possi bl e probl ems. Then i f you are sti l l unabl e to
i denti fy your probl em, proceed to the troubl eshooti ng owcharts. The troubl eshooti ng
owcharts provi de a l ogi cal sequence of steps to fol l ow when troubl eshooti ng HP-UX LAN.
Usi ng the di agnosti c owcharts provi ded i n thi s chapter, i denti fy whether the probl em i s wi th
HP-UX LAN, any of the connectors, or i f i t i s i n some other part of the LAN network. Veri fy
your assumpti ons and, i t i f i s l i mi ted to HP-UX LAN software and hardware, correct the
probl em.
Troubleshooting HP-UX LANDRAFT COPY
Troubleshooting Q & A
Chapter 4 40
Troubleshooting Q & A
New system disrupts LAN: I tri ed to attach a new system to our si te LAN. To make the
i nstal l ati on process faster, I copi ed over an /etc/rc.config.d/netconf l e from another
system on the si te LAN and used i t on the new system. When I booted up the system, the si te
LAN went down.
Answer: You probabl y di dn't assi gn a new I P address and host name pri or to rebooti ng the
system. I f any two systems on the LAN have the same I P address and host name, the LAN
wi l l go down. Check the I P address i n the /etc/rc.config.d/netconf l e agai nst the I P
address of your system and other systems on your network map to be sure that no dupl i cate
I P addresses exi st on the LAN.
Rel ated Documentati on: Refer to the ifconfig(1M) man page.
Determining interface name: How do I determi ne the name of the i nterface to be
congured?
Answer: Use the lanscan command to determi ne the hardware path of the i nterface card that
you want to congure. Then use the val ue di spl ayed for the Net-I nterface Name PPA el d as
the i nterface name.
MultipleLAN interfaces, intermittent failures: I have been havi ng probl ems getti ng the
two LAN i nterfaces on my system to operate at the same ti me. Occasi onal l y the ethernet
cards stop communi cati ng wi th remote systems. When thi s happens, the remote system al so
cannot communi cate wi th the l ocal system.
Answer: Check that the two i nterfaces on your system do not have the same network number
or, i f you are subnetti ng, the same subnet address. I f both LAN i nterfaces have the same val ue
i n the network (subnet) address porti ons of the I P address, the cards may not be enabl ed
si mul taneousl y (al though they may both run separatel y.)
Rel ated Documentati on: Refer to Chapter 6, Network Addressi ng.
Newsystem, cant reach somesubnets: I recentl y tri ed to add a new system onto a subnet
on our si te LAN, and I am not abl e to communi cate successful l y wi th al l LANs on the
network.
Answer: Check the routi ng tabl e to make sure the route for the LAN you are tryi ng to
communi cate wi th has been properl y congured. Execute netstat -rvn on both ends. Veri fy
the subnet address, netmask and gateway.
Rel ated Documentati on: Refer to Assi gni ng Subnet Addresses i n Chapter 6.
Conguring address 127.0.0.1: I tri ed to add the I P address, 127.0.0.1, and the system
won't accept i t.
DRAFT COPY Troubleshooting HP-UX LAN
Troubleshooting Q & A
Chapter 4 41
Answer: Addresses wi th the format 127.n.n.n are reserved as l oopback addresses. Sel ect
another I P address. You can obtai n Cl ass C addresses that are uni que wi thi n the ARPANET
by contacti ng Government Systems, I nc.
Rel ated Documentati on: Refer to Assi gni ng an I nternet Address i n Chapter 6.
Displaying station address: How do I l ocate the stati on address of my LAN card?
Answer: Use the lanscan command to di spl ay the stati on addresses of al l LAN cards i n the
system:
lanscan
Rel ated Documentati on: Refer to the lanscan(1M) man page.
Resetting LAN card: How do I reset the LAN card?
Answer: Run the lanadmin di agnosti c by enteri ng the fol l owi ng sequence of commands, where
x i s the Physi cal Poi nt of Attachment (PPA) of the i nterface you want to reset. (Use the
lanscan command to determi ne the PPA of the i nterface on the system.)
lanadmin
lan
ppa
x
reset
quit
Rel ated Documentati on: Refer to the lanadmin(1M) man page.
Tracing: What's the best way to obtai n and format traci ng i nformati on when I am usi ng the
nettl uti l i ty?
Answer: HP el d engi neers recommend the fol l owi ng commands:
To begi n LAN and l oopback traci ng, execute:
nettl -tn pduin pduout -e ns_ls_driver -f filename
To end LAN traci ng, execute:
nettl -tf -e all
To format your enti re LAN trace (no l teri ng), execute:
netfmt -Nnl -f filename.TRC1 > fmt1
netfmt -Nnl -f filename.TRC0 > fmt0
The l e, filename.TRC0 i s the most recent trace l e. I f thi s l e does not contai n the trace
i nformati on you are l ooki ng for, check the filename.TRC1 l e.
To format your LAN trace usi ng a l ter l e, execute:
netfmt -c filterfile -N -f filename.TRC0 > fmt0
Troubleshooting HP-UX LANDRAFT COPY
Troubleshooting Q & A
Chapter 4 42
nettl appends TRC0 or TRC1 to the name you gi ve the raw trace l e.
Rel ated Documentati on: Refer to Chapter 5, LAN Resources.
Intermittent networking problems: I 'm experi enci ng i ntermi ttent networki ng probl ems
on my computer. What shoul d I check to ensure proper operati on of my networki ng software?
Answer: Upper l ayer software often requi res l oopback. Check /etc/rc.config.d/netconf to
be sure that the l oopback entry i s correct. The l i ne i n netconf l e shoul d read:
LOOPBACK_ADDRESS=127.0.0.1
Rel ated Documentati on: Refer to chapter 6, Network Addressi ng.
Performance: I 've noti ced a si gni cant drop i n system response ti me and performance. What
steps can I take to i mprove i t?
Answer: Performance may be affected by many di fferent factors. Someti mes removi ng pseudo
dri vers from the kernel for networki ng software that you may not be usi ng i mproves
performance. The probl ems may al so be i n the upper l ayer software (ftp or telnet).
Al so, i t i s possi bl e that too l i ttl e memory i s al l ocated to hol d fragmented messages i n the I P
l ayer. I P messages may be fragmented i nto smal l er parts when the message i s sent through
the system. The fragments must be hel d i n memory for some ti me so that the enti re message
can be reassembl ed because the fragments arri ve at the desti nati on at di fferent ti mes and
possi bl y out of order. Normal l y, fragmentati on reassembl y memory i s l i mi ted arbi trari l y so
that i ncompl ete messages do not consume al l of memory, whi ch coul d cri ppl e the system.
Duri ng stressful networki ng acti vi ty, some fragments mi ght never be del i vered because they
are typi cal l y dropped i n transi t, for exampl e, due to a col l i si on or resource l i mi tati ons on an
i ntermedi ate system. However, fragments mi ght al so not be del i vered (dropped) i f there i s
i nsufci ent fragmentati on reassembl y memory on the desti nati on system duri ng peri ods of
hi gh network acti vi ty. Thi s can degrade performance due to retransmi ssi ons of data. I f the
probl em i s due to a hi gh number of fragments dropped after ti me-out (see the output from the
command netstat -sp ip), you mi ght want to i ncrease the si ze of the fragmentati on
reassembl y memory by changi ng the ip_reass_mem_limit val ue usi ng the ndd command.
(The defaul t i s 2 MB for the system.) Enter the command /usr/bin/ndd -h to di spl ay ndd
parameters and thei r use.
Deferred transmissions/collisions: Why i s there a si gni cant i ncrease i n the number of
deferred transmi ssi ons and col l i si ons on my network?
Answer: On I EEE802.3/Ethernet networks, a col l i si on occurs when two or more stati ons try to
transmi t data si mul taneousl y. A deferred transmi ssi on occurs i f the network i s busy when a
stati on attempts to transmi t data. The number of col l i si ons and deferred transmi ssi ons on a
node i s di rectl y rel ated to the network l oad. As the network l oad i ncreases, the number of
col l i si ons and deferred transmi ssi ons al so i ncrease.
DRAFT COPY Troubleshooting HP-UX LAN
Troubleshooting Q & A
Chapter 4 43
When hi gh-performance systems are pl aced on a LAN wi th l ower-performance systems (HP or
non-HP systems), i t i s possi bl e for the hi gh-performance systems to use a hi gher percentage of
the LAN bandwi dth wi th network trafc i ntensi ve appl i cati ons. Hi gh-performance systems
generate network trafc at a 10Mbi ts/s l i nk rate, and l ower-performance systems cannot
match thi s rate. Heavi l y l oaded LAN networks can resul t i n l ower throughput performance on
l ower-performance systems.
I n general , the short term average l oad on an I EEE802.3/Ethernet LAN shoul d not exceed
more than 70% of the total bandwi dth of the LAN. When i t does exceed 70% of the total
bandwi dth, network performance begi ns to degrade due to an i ncrease i n col l i si ons and
deferred transmi ssi ons. When i t consi stentl y exceeds 70% of the total bandwi dth, you may
need to recongure the systems on your LAN. I f you noti ce throughput/performance
degradati on on your system, contact your l ocal HP Representati ve for addi ti onal assi stance
and consul tati on.
No such interface: After I booted my server, I found that networki ng fai l ed. I found the
fol l owi ng error i n the /var/adm/rc.log l e:
ifconfig lan0: no such interface
How do I resol ve thi s probl em?
Answer: Thi s probl em i s caused by the LAN dri ver software di sabl i ng the LAN card because i t
was not connected to the LAN, or the LAN was down. Use lanadmin to reset the LAN card
and run ifconfig to bri ng the card up.
No such interface: When I congure an i nterface, ifconfig returns the error no such
i nterface. What shoul d I do?
Answer: The numeri c porti on of the i nterface name i s i ncorrect. Run the lanscan command to
obtai n a l i st of i nterface names.
Plumbing error: When I congure an i nterface, ifconfig returns a Pl umbi ng error
message. What shoul d I l ook for?
Answer: The i nterface name speci ed i n the ifconfig run stri ng i s not dened i n the /dev
di rectory or i s not a streams dri ver. The network devi ce l es /dev/ip and /dev/tcp are not
dened.
Cant communicate outside local supernet: I recentl y tri ed to set up a supernet on my
LAN. The systems i n the supernet can communi cate wi th one another, but they cannot
communi cate wi th systems outsi de the supernet.
Answer: Check the routi ng tabl e on your system and the node you want to communi cate wi th.
I f the system you want to communi cate wi th does not support supernetti ng, you wi l l have to
congure a network route for each of the networks i n the supernet. I f the system you want to
communi cate wi th supports supernetti ng, you wi l l onl y need to add a network route for the
supernet.
Troubleshooting HP-UX LANDRAFT COPY
LAN Interface Card Statistics
Chapter 4 44
LAN Interface Card Statistics
Thi s secti on contai ns descri pti ons of the RFC 1213 MI B I I stati sti cs el ds for LAN i nterface
cards whi ch are di spl ayed on the screen wi th the display command i n lanadmin LAN
I nterface Test Mode. A descri pti on of each el d fol l ows the di spl ay.
LAN INTERFACE STATUS DISPLAY
Mon, May 19,2003 11:16:22
Network Management ID = 1
Description = lan0 HP PCI Core I/O 1000Base-T Release B.11.23.00.01
Type (value) = ethernet-csmacd (6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x80009266c3f
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 5917
Inbound Octets = 1862255299
Inbound Unicast Packets = 18765
Inbound Non-Unicast Packets = 7644729
Inbound Discards = 48847
Inbound Errors = 0
Inbound Unknown Protocols = 3877238
Outbound Octets = 1304687
Outbound Unicast Packets = 18721
Outbound Non-Unicast Packets = 19
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
Ethernet-like Statistics Group
Index = 0
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 0
Multiple Collision Frames = 0
Deferred Transmissions = 0
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0
DRAFT COPY Troubleshooting HP-UX LAN
LAN Interface Card Statistics
Chapter 4 45
RFC 1213 MIB II STATISTICS
Descri pti on A textual stri ng contai ni ng i nformati on about the i nterface. Thi s stri ng
i ncl udes the name of the manufacturer, the product name and the versi on of
the hardware i nterface.
Type (val ue) The type of i nterface, di sti ngui shed accordi ng to the physi cal /l i nk protocol (s)
i mmedi atel y bel ow the network l ayer i n the protocol stack. I t wi l l have one
of the fol l owi ng val ues:
Table4-1 Type(value)/Comments
other (1) None of the fol l owi ng
regul ar1822 (2)
hdh1822(3)
ddn-x25(4)
rfc877-x25(5)
ethernet-csmacd(6)
i so88023-csmacd(7)
i so88024-tokenBus(8)
i so88025-tokenRi ng(9)
i so88026-man(10)
starLan(11)
proteon-10Mbi t(12)
proteon-80Mbi t(13)
hyperchannel (14)
fddi (15)
l apb(16)
sdl c(17)
ds1(18) T-1
el (19) European equi val ent of T-1
Troubleshooting HP-UX LANDRAFT COPY
LAN Interface Card Statistics
Chapter 4 46
MTU Si ze The si ze of the l argest datagram whi ch can be sent/recei ved on the i nterface
speci ed i n octets.
Speed An esti mate of the current bandwi dth of the i nterface i n bi ts per second. For
i nterfaces whi ch do not vary i n bandwi dth or for those where no accurate
esti mates can be made, thi s object contai ns the nomi nal bandwi dth.
Stati on Address The i nterface address at the protocol l ayer i mmedi atel y bel ow the network
l ayer i n the protocol stack. For i nterfaces whi ch do not have such an
address, such as seri al l i ne, thi s object contai ns an octet stri ng of zero
l ength.
Admi ni strati on Status The desi red state of the i nterface I t wi l l have one of the fol l owi ng
val ues:
basi cI SDN(20)
pri maryI SDN(21) Propri etary seri al
proPoi ntToPoi ntSeri al (
22)
ppp(23)
softwareLoopback(24)
eon(25) CLNP over I P [11]
ethernet-3Mbi t(26)
nsi p(27) XNS over I P
sl i p(28) generi c SLI P
ul ta(29) ULTRA technol ogi es
ds3(30) T-3
si p(31) SMDS
frame-rel ay(32)
Table4-2 Administration Status
up(1) Ready to pass packets
down(2) Not operati ve
Table4-1 Type(value)/Comments (Continued)
DRAFT COPY Troubleshooting HP-UX LAN
LAN Interface Card Statistics
Chapter 4 47
Operati on Status The current operati onal state of the i nterface. I t wi l l have one of the
fol l owi ng val ues.
Last Change The val ue of SysUpTi me at the ti me the i nterface entered i ts current
operati onal state. I f the current state was entered pri or to the l ast
rei ni ti al i zati on of the l ocal network management subsystem, then thi s
object contai ns a zero val ue.
I nbound Octets The total number of octets recei ved on the i nterface, i ncl udi ng frami ng
characters.
I nbound Uni cast Packets The number of subnetwork-uni cast packets del i vered to a
hi gh-l ayer protocol .
I nbound Non-Uni cast Packets The number of non-uni cast (subnetwork-broadcast or
subnetwork-mul ti cast) packets del i vers to a hi gher-l ayer protocol .
I nbound Di scards The number of i nbound packets that were di scarded even though no errors
had been detected, to prevent thei r bei ng del i vered to a hi gher-l ayer
protocol . One possi bl e reason for di scardi ng such a packet coul d be to free up
buffer space.
I nbound Errors The number of i nbound packets that contai ned errors preventi ng them from
bei ng del i verabl e to a hi gher-l ayer protocol .
I nbound Unknown Protocol s The number of packets recei ved vi a the i nterface whi ch were
di scarded because of an unknown or unsupported protocol .
Outbound Octets The total number of octets transmi tted out of the i nterface, i ncl udi ng
frami ng characters.
Outbound Uni cast Packets The total number of packets that hi gher-l evel protocol s requested
be transmi tted to a subnetwork-uni cast address, i ncl udi ng those that were
di scarded or not sent.
testi ng(3) I n test mode
Table4-3 Operation Status
up(1) Ready to pass packets
down(2) Not operati ve
testi ng(3) I n test mode
Table4-2 Administration Status (Continued)
Troubleshooting HP-UX LANDRAFT COPY
LAN Interface Card Statistics
Chapter 4 48
Outbound Non-Uni cast Packets The total number of packets that hi gher-l evel protocol s
requested be transmi tted to a non-uni cast (a subnetwork-broadcast or
subnetwork-mul ti cast) address, i ncl udi ng those that were di scarded or not
sent.
Outbound Di scards The number of outbound packets that were di scarded even though no
errors had been detected to prevent thei r bei ng transmi tted. One possi bl e
reason for di scardi ng such a packet coul d be to free up buffer space.
Outbound Errors The number of outbound packets that coul d not be transmi tted because of
errors.
Outbound Queue Length The l ength of the output packet queue (i n packets)
RFC 1284 Ethernet-Like Interface Statistics
I ndex A val ue that uni quel y i denti es an i nterface to an Ethernet-l i ke medi um.
Al i gnment Errors A count of frames recei ved on a parti cul ar i nterface that are not an i ntegral
number of octets i n l ength and do not pass the FCS check.
FCS Errors A count of frames recei ved on a parti cul ar i nterface that are not an i ntegral
number of octets i n l ength and do not pass the FCS check.
Si ngl e Col l i si on Frames A count of successful l y transmi tted frames on a parti cul ar i nterface
for whi ch transmi ssi on i s i nhi bi ted by exactl y one col l i si on.
Mul ti pl e Col l i si on Frames A count of successful l y transmi tted frames on a parti cul ar
i nterface for whi ch transmi ssi on i s i nhi bi ted by more than one col l i si on.
Deferred Transmi ssi ons A count of frames for whi ch the rst transmi ssi on attempt on a
parti cul ar i nterface i s del ayed because the medi um i s busy. The count
represented by an i nstance of thi s object does not i ncl ude frames i nvol ved i n
col l i si ons.
Late Col l i si ons The number of ti mes that a col l i si on i s detected on a parti cul ar i nterface
l ater than 512 bi t-ti mes i nto the transmi ssi on of a packet.
Excessi ve Col l i si ons A coupl e of frames for whi ch transmi ssi on on a parti cul ar i nterface fai l s
due to excessi ve col l i si ons.
I nternal MAC Transmi t Errors A count of frames for whi ch transmi ssi on on a parti cul ar
i nterface fai l s due to an i nternal MAC subl ayer transmi t error.
Carri er Sense Errors The number of ti mes that the carri er sense condi ti on was l ost or never
asserted when attempti ng to transmi t a frame on a parti cul ar i nterface.
Frames Too Long Account of frames recei ved on a parti cul ar i nterface that exceed the
maxi mum permi tted frame si ze.
DRAFT COPY Troubleshooting HP-UX LAN
LAN Interface Card Statistics
Chapter 4 49
I nternal MAC Recei ve Errors A count of frames for whi ch recepti on on a parti cul ar i nterface
fai l s due to an i nternal MAC subl ayer recei ve error
Troubleshooting HP-UX LANDRAFT COPY
100Base-T Checklist
Chapter 4 50
100Base-T Checklist
I n case of troubl e wi th 100Base-T LAN l i nks, you can use the fol l owi ng procedures to
troubl eshoot your network probl ems:
Verify Cabling: make sure the connecti on i s secured, UTP Category 5 i s used, the card i s
wel l i nserted. Al so, assure the cabl e l ength i s not wi thi n 35 - 41 meters. Check the cabl e
runni ng from the HP adapter to the Swi tch, and the Swi tch port, i n case ei ther i s
defecti ve.
I f the cabl e l ength i s between 35 - 41 meters, (or 114 - 133 feet), then expand or reduce
the l ength so that the cabl e i s l ess than 35 meters or greater than 41 meters, keepi ng
wi thi n 100Base-T speci cati ons.
Have your si te techni ci an veri fy that the pai r assi gnments and col or codes of the RJ45
connector pi ns match the fol l owi ng recommended versi on:
Recei ve Si gnal : pi n 1 = Whi te and pi n 2 = Orange
Transmi t Si gnal : pi n 3 = Whi te and pi n 6 = Green
Doubl e-check your exi sti ng punch-down bl ocks i n your networki ng envi ronment.
Punch-down bl ocks may affect the characteri sti cs of the medi um and therefore the
probl em seen wi th the 35-41 meter l ength cabl e may vary i n l ength.
Some vi si bl e symptoms that mi ght occur when the cabl e l ength i s between 35 - 41
meters are:
Li nk Status i s Down: LED l i ght col or turns amber because card negoti ati ng wi th
swi tch defaul ts to 10Mb/s i nstead of 100Mb/s. Or the LED l i ghts are i ntermi ttent
between 10Mb/s and 100Mb/s. They bl i nk between 10Mb/s and 100Mb/s and keep
doi ng that.
There i s no trafc or there i s hi gh rate of packet l oss.
To veri fy i f the l i nk i s not yet establ i shed, format l og l e usi ng the fol l owi ng
command and syntax:
netfmt -LN -f /var/adm/nettt.LOG* > outfile
Once the nettl l og l e i s formatted, l ook for a stri ng such as ...10/100Base-T dri ver
detected bad cabl e connecti on between the adapter i n sl ot #and the hub or swi tch.
DRAFT COPY Troubleshooting HP-UX LAN
100Base-T Checklist
Chapter 4 51
Or use the command lanscan to get the name of the Net I nterface Name or ppa number
or nmi d number. Once you have the ppa number, for exampl e l an17, you can i ssue these
fol l owi ng commands one at a ti me:
lanadmin
lan
ppa
17
display
- Look for the val ue of Operation Status. I t shoul d say DOWN.
Ensure that the host system contai ns the correct patch l evel . To nd out whi ch versi on of
the dri ver i s currentl y i nstal l ed, execute the command:
what /stand/vmunix | grep btlan
Or use the command:
swlist -l product | grep 100
Thi s shoul d di spl ay an ASCI I stri ng that i ndi cates the Versi on and possi bl y Patch l evel of
the dri ver. Many probl ems have been resol ved wi th newer versi ons of the dri ver, whi ch
can be obtai ned from the l atest patches for the 100Base-Tcards al ong wi th any dependent
patches. Work wi th the HP Response Center to determi ne i f there i s a newer dri ver that
xes the symptoms of the probl em you are faci ng.
There are three types of patches that are recommended:
- Patches for software driver
- Patch(es) for lanadmin - current lanadmin provides the
lanadmin -x -X functionality.
- Patch(es) for SAM - all systems need an updated SAM patch because SAM can step on
the 100Base-T configuration file Duplex mode.
Di spl ay the cards current speed and dupl ex, i ssue the command:
lanadmin -x NMID/PPA (nmid/ppa comes from the lanscan command)
I f probl ems persi st, i f a swi tch i s used, manual l y set the swi tch port to the desi red speed
and dupl ex.
Manual l y set the card to the desi red speed:
- for 100Base-T hubs: 100 Half Duplex
- for 10Base-T hubs: 10 Half Duplex
Manual setti ng can be done temporarily wi th the command:
Troubleshooting HP-UX LANDRAFT COPY
100Base-T Checklist
Chapter 4 52
lanadmin -X speed/duplex nmid/ppa
Manual setti ng can be permanently set by modi fyi ng the congurati on l e i n
/etc/rc.config.d or by usi ng SAM (recommended way).
I f probl ems persi st: connect the card to a swi tch or hub that i s known to be good.
I f thi s connecti on works, contact the HP Response Center wi th the Swi tch/Hub
i nformati on. Thi s may be an I OP (I nteroperabi l i ty) probl em.
I f thi s connecti on fai l s, the card may be bad and may need to be repl aced.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 53
Diagnostic Flowcharts
Bel ow i s a summary of the types of network tests i n the di agnosti c owcharts. To di agnose
your probl em, rst check the connecti ons and congurati on on your system (Fl owcharts 1
through 5). I f thi s does not sol ve your probl em, use owcharts 6 through 11 to test/veri fy
connecti vi ty wi th a remote system.
1, 2 & 3 Congurati on Test
4 & 5 Network Level Loopback Test
6 Transport Level Loopback Test (usi ng I nternet Servi ces)
7 Li nk Level Loopback Test
8 LAN Connecti ons Test
9 &10 Gateway Remote Loopback Test
11 Subnet Test
Conguration Test: Veri es the congurati on of the network i nterface on a host usi ng the
lanscan, and ifconfig commands.
Network Level Loopback Test: Checks roundtri p communi cati on between Network Layers on
the source and target host usi ng the ping di agnosti c.
Transport Level Loopback Test: Checks roundtri p communi cati on between Transport Layers
on the source and target host usi ng I nternet Servi ces telnet and ftp commands.
Link Level Loopback Test: Checks roundtri p communi cati on between Li nk Level s on the
source and target host usi ng the linkloop di agnosti c.
LAN Connections Test: Checks the connecti ons between the LAN medi a and any component
between the LAN medi a and i ndi vi dual LAN cards.
Gateway Remote Loopback Test: Checks general network connecti ons through a gateway.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 54
Subnet Test: Veri es the correct use of subnets.
Figure4-1 Loopback Tests
The l oopback tests shown i n Fi gure 4-1 are used to i sol ate a network communi cati on probl em
that may be software- or hardware-rel ated. I n any case, you shoul d rst have checked that the
probl em i s not due to a recent congurati on change.
The network l evel l oopback test, ping, commonl y i s tri ed rst. I t i s fast, efci ent, and i t does
not requi re superuser pri vi l eges. I f the connecti on passes thi s test, you know the probl em i s at
OSI Layer 4 or above. Go on to the transport l evel l oopback test.
The Transport Level Loopback Test can be i mpl emented usi ng I nternet Servi ces. I n thi s case,
you use telnet and ftp to systemati cal l y focus on a probl em.
I f the network l evel l oopback test fai l ed, the probl em i s i n OSI Layer 3 or bel ow. I n thi s case,
conti nue wi th the l i nk l evel l oopback test, usi ng linkloop, to i sol ate a probl em to OSI Layer 2
or bel ow.
UDP
IP
LAN Driver
Network Interface Card
ARP
TCP
BSD Sockets
Virtual NFS Services
DLPI
Terminal Internet Services
1
2
3
6 & 7
5
4
ping
linkloop
lanadmin
ICMP
MAU
XTI
OSI Layer
telnet showmount
(NFS)
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 55
The netstat uti l i ty reports network and protocol stati sti cs regardi ng trafc and the l ocal
LAN i nterface. As shown i n Fi gure 4-2, there are many opti ons to netstat. The opti ons that
are most useful are those whi ch di spl ay i nformati on that i s not avai l abl e through other
commands such as ping and lanadmin, for exampl e, -a and -r opti ons. You can al so use the
lanadmin command to obtai n LAN dri ver stati sti cs. For more detai l ed i nformati on on these
di agnosti cs, refer to the netstat(1M) and lanadmin(1M) man pages.
Figure4-2 Networking Software Statistics
1
2
3
6 & 7
5
4
netstat -r
lanadmin
netstat -a
netstat -s
netstat -i
UDP
IP
LAN Driver
Network Interface Card
ARP
TCP
BSD Sockets
Virtual NFS Services
DLPI
Terminal Internet Services
ICMP
OSI Layer
XTI
MAU
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 56
Flowchart 1: Conguration Test
Figure4-3 Flowchart 1
1
A
B
C
no
yes
1
D
E
F
no
yes
no
2
Execute:
lanscan
All
interfaces
configured
?
Execute:
ioscan
bind
errors?
Correct
driver in
system
file?
Add correct
driver and regen
Call HP
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 57
Flowchart 1 Procedures
A. Execute: lanscan. Execute lanscan to di spl ay i nformati on about LAN cards
that are successful l y bound to the system. For exampl e, to check the cards
on /stand/vmunix, enter:
lanscan
B. All interfaces congured? lanscan i s successful i f the output shows
i nformati on about every card i n the hardware backpl ane.
C. Execute ioscan. Execute the ioscan command to check for bi nd errors.
D. bind errors? I f a bi nd error exi sts, check that the hardware has been
properl y i nstal l ed.
E. Correct driver in / stand/ system le? Refer to Creati ng a New Kernel for
HP-UX Systems i n Chapter 3 for a l i st of LAN dri vers.
F. Add correct driver and regen. Edi t the /stand/system l e to contai n the
correct dri ver for your system type.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 58
Flowchart 2: Conguration Test continued
Figure4-4 Flowchart 2
E
2
A
B C
yes
2
E
D
H I
no no
yes
no
yes
J
F
no
G
yes
no
yes
3
4
Execute
ifconfig <interface>
ifconfig
successful
?
Any
error message
returned?
Correct ifconfig
flag settings
Execute:
netstat -in
Interface
name
correct?
Correct
encapsulation
using ifconfig
Suspect
LAN card I/O
problem
?
Execute:
lanadmin
Problem
resolved
?
Call HP
Stop
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 59
Flowchart 2 Procedures
A. Execute: ifcong<interface>. Execute ifconfig on the i nterface you want to
test. For exampl e, to check LAN i nterface lan0, enter:
ifconfig lan0
B. ifcong successful? ifconfig i s successful i f the output shows the correct
I nternet address and the ags, typi cal l y: UP,BROADCAST,RUNNI NG.
C. Any error message returned? I f ifconfig i s not successful , and an error
message appears, go to Fl owchart 3. Fl owchart 3 shows common error
messages and what to do for each.
D. Correct ifcong ag settings. I f ifconfig returns an i ncorrect ag setti ng,
re-execute the command wi th the proper setti ng. For more i nformati on,
refer to the ifconfig(1M) man page. Start agai n wi th Fl owchart 2, as
necessary.
E. Execute: netstat -i. I f ifconfig i s successful , you know the network i nterface
has been congured correctl y. Usi ng netstat, you can return stati sti cs
whi ch show the i nterface i s operati onal . Enter:
netstat -in
netstat stati sti cs gi ve a qui ck check of key operati ng parameters. For
i nstance, i f the Opkts val ue does not change after attempti ng the l e
transfer, packets are not bei ng transmi tted. Si mi l arl y, i f the Ipkts val ue
does not change, packets are ei ther not bei ng recei ved by the l ocal node or
are not bei ng sent by the remote node, whi ch may not be recei vi ng your
transmi ssi ons.
F. I nterface name correct? Veri fy that the name for your i nterface i s what you
expect. See the ifconfig(1M) man page.
G. Correct encapsulation using ifcong. Use the ifconfig command to correct
the encapsul ati on method of your i nterface. For more i nformati on, refer to
the ifconfig(1M) man page. Go to E.
H. Suspect LAN card I / Oproblems?I f the stati sti cs i ndi cate possi bl e LAN card
probl ems, go to I , otherwi se go to Fl owchart 4.
I . Execute: lanadmin. Use lanadmin to ensure the LAN card i s operati onal . I f
the val ues of the Ierrs and Oerrs el ds i ncrease substanti al l y duri ng a l e
transfer attempt, thi s can i ndi cate transmi ssi on or recepti on probl ems.
Refer to LAN I nterface Card Stati sti cs i n thi s chapter for more
i nformati on.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 60
J. Problem resolved? I f you have found and corrected the LAN card probl em,
stop. I f not, cal l your HP representati ve for hel p. Be prepared to di scuss the
probl em as descri bed i n Contacti ng your HP Representati ve at the end of
thi s chapter.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 61
Flowchart 3: Conguration Test continued
Figure4-5 Flowchart 3
3
I
J
D
N E
C
A
B
yes
no
G
H
F
K
L
M
yes
no
2
1
2
2
ifconfig
not found
Bad system
call
No such
interface
Check for
plumbing error
Any other
error message
Restore ifconfig
from media
Reconfigure
HP-UX kernel
to include
HP-UX LAN
Execute:
lanscan
Execute:
/sbin/init.d/net
.init start
Call HP
Find correct
interface
name
Execute:
netstat -in
Call HP Is Hardware
State UP?
Ping
127.0.0.1?
Call HP
Execute:
lanadmin
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 62
Flowchart 3 Procedures
A. ifcongnot found. The command has been rel ocated on the system, del eted,
or /usr/sbin i s not i n your PATH.
B. Restore / etc/ ifcong from media. You can restore ifconfig from the l ast
good backup tape or your i nstal l /update tape. Go to Fl owchart 2.
C. Bad system call. Networki ng i s not congured i nto the HP-UX kernel .
D. Recongure HP-UX kernel to include HP-UX LAN software. Edi t the
/stand/system l e to i ncl ude HP-UX LAN software. Refer to chapter 3 for a
l i st of LAN dri vers.
E. No such interface name. The i nterface name passed to ifconfig does not
exi st on the system. Check spel l i ng and names of i nterfaces on the system
usi ng lanscan.
I f you have more than one LAN card, make sure the number of LAN cards
has been congured i nto the kernel and that an ifconfig command has
been executed for each.
F. Execute lanscan. Execute lanscan to di spl ay i nformati on about the LAN
cards i n your system.
G. Find correct interface name. Usi ng the correct i nterface name, start agai n
wi th Fl owchart 1.
H. I s Hardware State UP? Veri fy the state of the hardware wi th the output
from the lanscan command. I f the Hardware State i s up cal l your HP
representati ve for hel p. Otherwi se go to I .
I . Executelanadmin. Use the lanadmin command to reset the LAN card. Go to
Fl owchart 2.
J. Check for the plumbing error: Bad le number. I f you see thi s error, the
TCP/I P stack has not yet been i ni ti al i zed.
K. I nitialize the TCP/ I P stack. Execute the command
/sbin/init.d/net.init start.
L. Check thestatus of thenetwork. Use the command netstat -in. Make sure
that the l oopback i nterface lo0 appears i n the di spl ay.
M. Check the loopback interface. Use the command ping 127.0.0.1. I f you
cannot pi ng the l oopback i nterface, cal l HP. I f the pi ng i s successful , go to
Fl owchart 2.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 63
N. Any other error message. I f you recei ved an error message not l i sted on thi s
owchart, i nterpret the message and take the appropri ate acti on. I f you
need assi stance, cal l your HP representati ve. Be prepared to di scuss the
probl em as descri bed i n Contacti ng Your HP Representati ve i n Chapter 5,
LAN Resources.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 64
Flowchart 4: Network Level Loopback Test
Figure4-6 Flowchart 4
E
F
B C
G
I
A
D
H
J
4
yes
no
yes
yes
yes
yes
yes
no
no
no
no
no
4
4
4
5
Execute: ping
to remote host
ping
successful?
Network
unreachable
?
Local LAN
interface up
?
Call HP
Stop
Command
hangs?
Configure
interface up
Unknown
host?
Correct BIND, NIS,
or /etc/hosts
configuration
No route
to host?
Add route
table entry
Call HP
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 65
Flowchart 4 Procedures
A. Execute: pingtoremotehost. Usi ng ping, send a message to the remote host
wi th whi ch you are havi ng probl ems connecti ng. For exampl e, suppose the
remote host i s known as 192.6.20.2. Enter:
ping 192.6.20.2
NOTE HP recommends usi ng the I P address, rather than the hostname, as part of the
probl em may be an error i n the /etc/hosts l e or connecti vi ty wi th a name
server.
B. ping successful? A message i s pri nted on stdout for each ping packet
returned by the remote host. I f packets are bei ng returned, your system has
network l evel connecti vi ty to the remote host.
You may nd i t useful to note what percentage of the total packets are l ost,
i f any. Losi ng ten percent or more may i ndi cate the network or remote host
i s extremel y busy. I f, over a one-day peri od, ping reports a packet l oss that
you feel i s unacceptabl e, yet connecti vi ty remai ns, report thi s to your HP
representati ve.
You may al so nd i t useful to note the round-tri p transmi ssi on ti mes.
Peri odi cal l y hi gh transmi ssi on ti mes may i ndi cate that the network or
remote host i s extremel y busy. Consi stentl y hi gh transmi ssi on ti mes may
i ndi cate the l ocal host i s extremel y busy. Make sure that the network event
l oggi ng masks are not set to val ues whi ch can i mpai r system performance
(such as DEWRP).
C. Network unreachable? I f so, check the status of the l ocal LAN i nterface rst.
D. Local LAN interface up? Execute ifconfig on the l ocal i nterface to be sure
i t i s congured up.
E. Congure interface up. I f you nd the l ocal i nterface i s not up, execute
ifconfig wi th the appropri ate ags set. Start agai n wi th Fl owchart 4.
F. Command hangs? I f a message i s not returned after executi ng ping, go to
Fl owchart 5.
G. Unknown host? (Error= Unknown host hostname?) There i s a probl em wi th
the congurati on for the host i n the /etc/hosts l e or on the name server.
H. Correct BI ND, NI S or / etc/ hosts conguration. Add the mi ssi ng host name
and start agai n wi th Fl owchart 4.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 66
I . No route to host? (Error= Sendto: No route to host?) Use netstat -rn to
check the routi ng tabl e. I f there i s no route tabl e entry for the host, go to J.
Otherwi se, cal l your HP representati ve for hel p. Be prepared to di scuss the
probl em as descri bed i n Contacti ng Your HP Representati ve i n Chapter 5,
LAN Resources.
J. Add route table entry. Usi ng route, add a route tabl e entry for that host.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 67
Flowchart 5: Network Level Loopback Test continued
Figure4-7 Flowchart 5
F
D
no
5
A B C
I
H
E
G
yes
yes
yes
yes yes
no
no
no
no
4
4
4
Host entry
in ARP cache
?
Remote
host up?
LAN card
OK?
Call HP
Bring up
remote host
Replace or
reset LAN card
Entry
complete?
Use arp to
complete entry
ping local host
ping
successful?
Call HP
Note: This time ping from
remote host to local host
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 68
Flowchart 5 Procedures
A. Host entry in ARP cache? Usi ng arp, check that an entry exi sts for the
remote host i n your system's ARP cache. For exampl e, suppose the remote
host i s known as 192.6.20.2. Enter:
arp 192.6.20.2
B. Remote host up? I f there i s no ARP cache entry for the remote host, rst
check that the remote host i s up. I f not, the remote host has not broadcast
an ARP message, and that l i kel y i s why there i s no entry i n the ARP cache.
C. LAN card O.K.? Use lanadmin to ensure the remote LAN card i s
operati onal .
D. Replaceor reset LAN card. When the LAN card i s operati onal , use lanadmin
to reset. Refer to the lanadmin command descri pti on or sampl e output i n
thi s chapter.
E. Bring-up remotehost. Have the node manager of the remote host bri ng that
system up.
F. Entry complete? Perhaps there i s an ARP cache entry, but i t i s wrong or not
compl ete.
G. Use arp to complete entry. Usi ng arp, enter the correct Stati on Address. For
more i nformati on, refer to the arp(1M) man page.
H. pinglocal host. Usi ng ping, do an i nternal l oopback on your own system. I n
other words, ping your own I P address. Thi s wi l l determi ne i f the probl em i s
on your end.
I . ping successful? I f the i nternal l oopback i s successful , your system i s
operati ng properl y to the Network Layer (OSI Layer 3). I n addi ti on, you
know an ARP cache entry for the remote host exi sts on your system. I f thi s
i s true, the network i nterface or software on the remote host i s suspect.
Start agai n wi th Fl owchart 4, but thi s ti me ping from the remote host to
your system.
I f the ping was not successful , cal l your HP representati ve for hel p.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 69
Flowchart 6: Transport Level Loopback Test (usingInternet Services)
Figure4-8 Flowchart 6
6
B
A
yes
C
F
D
E
G
6
no
no
no
yes
yes
Execute: telnet
to remote host
Successful?
Stop
Execute: ftp
to remote host
Successful?
Call HP
Check for
network congestion
Call HP
TCP
configured on
local or remote
host?
Configure TCP
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 70
Flowchart 6 Procedures
A. Execute: telnet to remote host. Try to establ i sh a telnet connecti on to the
remote host.
B. Successful? I f your telnet attempt was successful , stop. The connecti on i s
okay through the Transport Layer (OSI Layer 4).
C. Execute: ftp to remote host. Unl i ke telnet, ftp does not go through a
pseudo-termi nal dri ver (pty) on your system. Thi s step tests to see i f the pty
i s why telnet fai l ed.
D. Successful?I f ftp i s successful , you l i kel y have a probl em wi th a pty on your
system. Contact your HP representati ve.
E. TCP congured on local or remote host? Nei ther telnet or ftp wi l l work i f
TCP i s not congured on ei ther si de of the connecti on. Check the
/etc/protocols l e on both hosts to be sure TCP i s i nstal l ed and
congured.
F. Congure TCP. I f necessary, i nstal l TCP on ei ther or both hosts.
G. Network congested? I f TCP i s i nstal l ed on both hosts, do a l e transfer to
another remote host on the network. Use netstat to check for l ost packets.
I f 10 percent or more packets are l ost, the network i s extremel y busy. I f you
cannot determi ne the cause, contact your HP representati ve for hel p.
I f both ftp and telnet fai l , the /etc/inetd.conf l e may be congured
i ncorrectl y or the inetd daemon may not be runni ng on the remote system.
I f the probl em i s not resol ved, more detai l ed di agnosti cs are requi red.
Agai n, contact your HP representati ve.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 71
Flowchart 7: Link Level Loopback Test
Figure4-9 Flowchart 7
7
B
A
no
yes
D
J
7
C
E
F G
H
I
K
yes yes
no
no
8
Execute: linkloop
on local interface
Successful?
Execute: linkloop
to remote host
linkloop
successful?
Stop
Loopback FAILED:
Address has bad
format
Loopback FAILED:
Not an individual
address
Loopback FAILED
Correct the link
address parameter
Choose a different
remote IEEE 802.3
host; re-execute
linkloop
Check remote host
connectivity to LAN
linkloop
successful?
Stop
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 72
Flowchart 7 Procedures
A. Execute: linkloop on local interface. Execute the linkloop command wi th
the stati on address of the l ocal i nterface. Execute lanscan to nd the l i nk
l evel address (stati on address) on the remote host or obtai n i t from your
network map. For more i nformati on, refer to the linkloop(1M) man page.
B. linkloop successful? I f not, your LAN card may not be operati onal . Go to
Fl owchart 8.
C. Execute: linkloop to remote host. Enter the l i nk l evel address (stati on
address) of the remote host.
D. linkloop successful? I f the test was successful , stop. Network connecti vi ty i s
okay through the Li nk Layer (OSI Layer 2). I f not successful , note whi ch
error was returned and conti nue wi th thi s owchart.
E. Loopback failed; Address has bad format. The l i nk l evel address i s not
correct. Go to H.
F. Loopback failed; Not an individual address. The l i nk l evel address i s not
correct. The second hexadeci mal di gi t i s odd. Thi s means i t i s a mul ti cast or
broadcast address, whi ch i s not al l owed. The address must be uni que to one
remote host. Go to H.
G. Loopback failed. The remote host di d not respond. Go to I .
H. Correct the link address parameter. Change the l i nk l evel address to an
al l owed val ue and go to C.
I . Choose a different I EEE 802.3 host; re-execute linkloop. Restart thi s
owchart usi ng a di fferent remote host. NOTE: Make sure the remote host
i s an HP Server and try agai n.
J. linkloop successful? I f the test was successful , stop. Network connecti vi ty i s
okay through the Li nk Layer (OSI Layer 2). I f not successful , go to K.
K. Check remote host's connectivity to LAN. Contact the node manager of the
remote host. Check that the host i s congured correctl y and that i ts network
i nterface i s up. I f necessary, use Fl owcharts 1 and 12 to veri fy congurati on
and connecti vi ty of the remote host.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 73
Flowchart 8: LAN Connections Test
Figure4-10 Flowchart 8
8
A
B
yes
no
G
C
D
E
H
I
F
J
K
ThinLAN
Thick Coax
Check: AUI
solidly connected to
LAN card
Thick or
thin cabling
?
Check: AUI
solidly connected to
MAU and LAN card
Check: ThinLAN
cable terminated
at both ends
Check: Backbone
cable terminated
at both ends
Check: BNC
T-connectors secure
Check: MAU tapped
securely into cable
Check: Splices
and taps
Check: Backbone
cable grounded
in only one place
Check: ThinLAN
cable grounded
in only one place
Problem
solved?
Stop
Call HP
RJ45
LED = ON
No
A1
A2
?
Card seated
securedly
RJ45:
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 74
Flowchart 8 Procedures
A. Thick or thin cabling? I f your network cabl i ng i s the thi cker coaxi al cabl i ng,
conti nue i n the di recti on marked Thi ck Coax. I f your network cabl i ng i s
the Thi nLAN cabl i ng, conti nue i n the di recti on marked Thi nLAN.
A1. RJ 45 Adapter? Veri fy LEDs. Network Acti vi ty and Li nk Status LED
di spl ays: Li nk Status LED i s l i t GREEN for a val i d l i nk. Network Acti vi ty
LED i s l i t AMBER col or for both 10 Mbps and 100Mbps. Someti me Li nk
Status LED i s not l i t up at 10 Mbps mode.
A2. Card seated securely? Check adapter i nstal l ati on, reset and reseat adapter.
Check for i ncorrect or faul ty network cabl e or connector. Ensure setti ngs for
swi tch and adapter are the same.
B. Check: AUI solidly connected to LAN card. Make sure the AUI cabl e i s
sol i dl y connected to the LAN card. I f the AUI cabl e i s not connected, turn off
the power to the computer before you connect i t.
C. Check: ThinLAN cable terminated at both ends. Make sure the backbone
cabl e i s termi nated at both ends.
D. Check: BNC T-connectors secure. Make sure each BNC T-connector i s
securel y attached to a BNC connector on the Thi nLAN cabl e and that no
i nterveni ng cabl e i s between the MAU and the T-connector.
E. Check: ThinLAN cable grounded in only one place. Make sure the Thi nLAN
cabl e i s grounded i n onl y one pl ace.
F. Problemsolved?I f so, stop. I f you sti l l have a probl em after worki ng through
thi s owchart, you may have a fai l ed LAN card, an i ncorrect jumper setti ng
on the LAN card, or a probl em wi th the transmi t or recei ve functi on of the
MAU. Contact your HP representati ve for hel p. Be prepared to di scuss the
probl em as descri bed i n Contacti ng Your HP Representati ve at the end of
thi s chapter.
G. Check: AUI solidly connected to MAU and LAN card. Make sure the AUI
cabl e i s sol i dl y connected to the MAU and the LAN card. I f the AUI cabl e i s
not connected, turn off the power to the computer before you connect i t.
H. Check: Backbone cable terminated at both ends. Make sure the backbone
cabl e i s termi nated at both ends.
I . Check: MAU tapped securely into cable. Make sure the MAU i s tapped
securel y i nto the backbone cabl e.
J. Check: Splices and Taps. Make sure al l spl i ces and taps are secure.
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 75
K. Check: Backbone cable grounded in only one place. Make sure the backbone
cabl e i s grounded i n onl y one pl ace.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 76
Flowchart 9: Gateway Remote Loopback Test
Figure4-11 Flowchart 9
9
A
yes
no
B
C
E
G
D
F
yes
yes
no
no
10 4
10
Execute: ping from
known good host
through gateway to
known good remote host
ping
successful
?
Stop
Execute:
netstat -rn
Add route entry
on local system
Direct
route to remote
or default route
to gateway?
Routing
table on remote
OK?
Correct
routing table
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 77
Flowchart 9 Procedures
A. Execute: pingfromknown good host through gatewaytoknown good host on
remote network. Thi s wi l l test gateway connecti vi ty to the remote network.
For more i nformati on on ping, refer to chapter 6.
B. pingsuccessful? I f the executi ng ping returned does not return successful l y,
the probl em may exi st i n the routi ng tabl e for the probl em host. Go to C.
C. Execute netstat -rn. To di spl ay gateway routi ng i nformati on i n numeri cal
form, execute:
netstat -rn
D. Direct routetoremoteor default routetogateway? I f the route exi sts, go to F.
I f not, go to E to add a new route.
E. Add route entry on local system. Use the route command to add a route
entry to the route tabl e on the l ocal system. Refer to the route(1M) man
page for a compl ete descri pti on of the command.
F. Routing table on remote OK? Check that the routi ng i nformati on on the
remote system i s OK.
G. Correct routingtable. I f the routi ng i nformati on i s i ncorrect, correct i t usi ng
the route command.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 78
Flowchart 10: Gateway Remote Loopback Test continued
Figure4-12 Flowchart 10
10
F G
yes
no
E
D
A
C
B
no
1 4
Examine
gateway
Other HP;
other vendors
HP-UX
Refer to networking
documentation
Execute: ifconfig
on gateway host
Network
interface up?
Configure
interface up
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 79
Flowchart 10 Procedures
A. Examinegateway. I f the gateway i s an HP-UX Server, go to D. I f i t i s not, go
to B.
B. Other HP; other vendors. Go to C.
C. Refer to networking documentation. Refer to the documentati on that came
wi th the gateway for addi ti onal di agnosti cs.
D. HP-UX. Go to E.
E. Execute: ifcong on gateway host. Execute ifconfig for al l network
i nterfaces on the gateway.
NOTE Running i s al ways di spl ayed by i fcong output. I t i ndi cates onl y that there i s
OS support for the i nterface.
F. Network interface up? I f the output from ifconfig does not i ncl ude the UP
parameter, the network i nterface i s down. Execute netstat -in to check
the status of the network i nterfaces. An asteri sk (*) next to the i nterface
i ndi cates that the i nterface i s down.
I f the network i nterface i s down, go to Fl owchart 2. I f the network i nterfaces
are UP, start agai n wi th Fl owchart 1. Usi ng Fl owchart 1, test al l network
i nterfaces on the gateway.
Use netstat -in to make sure that the congured encapsul ati on i s correct.
G. Congure interface up. Execute ifconfig on each i nterface to bri ng i t up.
Start agai n wi th Fl owchart 1. Usi ng Fl owchart 1, test al l network i nterfaces
on the gateway.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 80
Flowchart 11: Subnet Test
Figure4-13 Flowchart 11
A
I
11
D
H
G
E
J
K
no
no
no
yes
yes
yes
yes
F
11
11a
11a
11a
Host
portion all 0s
or all 1s?
Subnet mask
set to what you
expect?
Correct IP
address
All
hosts on
subnet using
same subnet
mask?
Correct
subnet mask
All
hosts on
network have
subnet mask
set?
Correct
subnet mask
Check route table on
source, destination
Stop
Correct
route tables
no
B
Correct IP
address
DRAFT COPY Troubleshooting HP-UX LAN
Diagnostic Flowcharts
Chapter 4 81
Flowchart 11 Procedures
A. Host Portion all 0's or all 1's? Execute ifconfig. I s the host porti on of the
I P address al l 0's or al l 1's? These val ues are reserved. Refer to chapter 6 for
detai l s on subnets. I f the host porti on of the I P address i s al l 0's or al l 1's, go
to B to correct the I P address. Otherwi se, go to C to exami ne the subnetwork
number.
B. Correct I P address. Correct the I P address and start agai n wi th Fl owchart
11.
D. Subnet mask set to what you expect? Check your network map and execute
ifconfig to determi ne the subnet mask for your node. Refer to Chapter 6
for detai l s on subnets. I f the subnet mask i s not what you expect, go to I .
Otherwi se, go to E.
E. All hosts on subnet using same subnet mask? Execute ifconfig for every
network i nterface on each node on the enti re network. I f al l nodes are usi ng
the same subnet mask, go to F. Otherwi se, go to J to correct the subnet
masks.
F. All hosts on network have subnet mask set? Execute ifconfig for every
network i nterface on each node on the enti re network. I f al l nodes have the
same subnet mask set, go to G. Otherwi se, go to K to set the correct subnet
masks.
G. Check route table on source, destination. Execute netstat -rv on the two
hosts. Go to H.
H. Correct the route tables (if necessary). I n general , speci fy a network, not a
host when addi ng to the route tabl e. Speci fyi ng a network as the desti nati on
enabl es you to add nodes to the remote desti nati on subnetwork wi thout
updati ng the route tabl es on the l ocal subnetwork every ti me you add a node
to the remote subnetwork.
I . Correct I P address. Set the subnet mask to the proper val ue. Go to D.
J. Correct subnet mask. To do so, execute ifconfig wi th the proper subnet
mask. Go to D.
K. Correct subnet mask. To do so, execute ifconfig wi th the proper subnet
mask. Go to D.
Troubleshooting HP-UX LANDRAFT COPY
Diagnostic Flowcharts
Chapter 4 82
Chapter 5 83
5 LAN Resources
I n addi ti on to thi s manual , use the fol l owi ng resources to mai ntai n and admi ni ster HP
HP-UX LAN software.
LAN ResourcesDRAFT COPY
HP-UX Man Pages
Chapter 5 84
HP-UX Man Pages
Whi l e i nstal l i ng, conguri ng, or troubl eshooti ng HP-UX LAN, you may need to refer to any of
the fol l owi ng onl i ne man pages (manual reference pages) for useful HP-UX operati ng system
or HP-UX LAN commands. To di spl ay a man page, type the fol l owi ng at the system prompt:
man <command name>
arp(1M) di spl ays and modi es the I nternet-to-Ethernet and I nternet-to-Fi bre Channel
address transl ati on tabl es used by the Address Resol uti on Protocol .
hosts(4) contai ns database that contai ns a si ngl e l i ne entry for each host name entry.
ifalias(1M) congures network i nterface to support mul ti pl e I P addresses at Network
Layer.
ifconfig(1M) assi gns an address to a network i nterface and congures parameters, such
as the netmask, broadcast address, and trai l er support.
ioscan(1M) scans system hardware, usabl e I /O system devi ces, or kernel I /O system data
structures as appropri ate, and l i sts the resul ts.
lanadmin(1M) resets or reports status of the LAN card.
lanconfig(1M) congures network i nterface parameters at Data-Li nk Layer.
lanscan(1M) di spl ays i nformati on about LAN adapters that are successful l y bound to the
system.
linkloop(1M) veri es network connecti vi ty through the Data Li nk Layer.
ndd(1M) di spl ays and modi es network dri ver parameters.
netfmt(1M) formats the nettl traci ng and l oggi ng bi nary l es.
netstat(1M) provi des network stati sti cs and i nformati on about network connecti ons.
nettladm(1M) captures and control s network traci ng and l oggi ng i nformati on.
nettl(1M) control s network traci ng and l oggi ng.
ping (1M) veri es network connecti vi ty through the Network Layer and reports
round-tri p ti me of communi cati ons between the l ocal and remote hosts.
route(1M) adds and del etes entri es to the network routi ng tabl e, al l owi ng your system to
communi cate through a gateway.
swinstall(1M) l oads software l esets onto 10.0 systems.
traceroute(1M) traces the network path between two poi nts at Network Layer.
DRAFT COPY LAN Resources
Logging and Tracing Messages
Chapter 5 85
Logging and Tracing Messages
HP-UX LAN comes wi th an onl i ne message catal og that reports LAN probl ems, probabl e
causes, and acti ons for you to take to correct the probl ems. Messages are sent ei ther to the
system consol e or l og l es based on the l oggi ng and traci ng congurati on. To vi ew the
probabl e cause and acti on text of the message, use the netfmt command wi th the -v opti on.
Bel ow i s an exampl e.
# netfmt -v -f /var/adm/nettl.LOG00
**********************LAN/9000 NETWORKING*********************
Timestamp : Tue Apr 04 PDT 1995 10:15:13.290279
Process ID : [ICS] Subsystem : NS_LS_DRIVER
User ID ( UID ) : -1 Log Class : ERROR
Device ID : 0 Path ID : 0
Connection ID : 0 Log Instance: 0
Location : 02004