HP (Hewlett-Packard) HP-UX 11i v2 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of HP (Hewlett-Packard) HP-UX 11i v2, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of HP (Hewlett-Packard) HP-UX 11i v2 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of HP (Hewlett-Packard) HP-UX 11i v2. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of HP (Hewlett-Packard) HP-UX 11i v2 should contain:
- informations concerning technical data of HP (Hewlett-Packard) HP-UX 11i v2
- name of the manufacturer and a year of construction of the HP (Hewlett-Packard) HP-UX 11i v2 item
- rules of operation, control and maintenance of the HP (Hewlett-Packard) HP-UX 11i v2 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of HP (Hewlett-Packard) HP-UX 11i v2 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of HP (Hewlett-Packard) HP-UX 11i v2, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the HP (Hewlett-Packard) service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of HP (Hewlett-Packard) HP-UX 11i v2.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the HP (Hewlett-Packard) HP-UX 11i v2 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    HP-UX Routing Services Administrator’ s Guide HP-UX 11i v2 Edition 1 Manufacturing P art Number: B2355-90777 August 2003 U .S .A. © Copyright 2003 Hewlett-P ackard Development Company L.P . All Rights Reserved.[...]

  • Page 2

    2 Legal Notices The information in this document is subject to change without notice. Hewlett-P ackard makes no warranty of any kind with regard to this manual, including , but not limited to , the implied warranties of merchantability and fitness f or a particular purpose. Hewlett-P ackard shall not be held liable for errors contained herein or d[...]

  • Page 3

    3 © Copyright 1989-93 The Open Software F oundation, Inc . © Copyright 1986 Digital Equipment Corporation. © Copyright 1990 Motorola, Inc. © Copyright 1990, 1991, 1992 Cornell University © Copyright 1989-1991 The University of Maryland © Copyright 1988 Carnegie Mellon University T rademark Notices UNIX  is a registered trademark in the Uni[...]

  • Page 4

    4[...]

  • Page 5

    Contents 5 About This Document 1. Overview The mrouted Routing Daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Multicasting Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 DVMRP Protocol . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Page 6

    Contents 6 D: Major Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 E: Major Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Controlling RIP Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Page 7

    Contents 7 Tracing gated Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Operational User Interface for gated – gdc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 The gated Routing T able . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Page 8

    Contents 8[...]

  • Page 9

    9 About This Document This manual describes the various routing daemons supported in the HP-UX 11i v2 operating system.It is one of the five new manuals documenting the Internet Services suite of products. See “Related Documentation” on page 11 for a list of the other new Internet Services manuals . These manuals replace the manual Installing [...]

  • Page 10

    10 Publishing History T able 2 provides , for a particular document, the manufacturing part number , the respective operating systems, and the publication date . What Is in This Document HP-UX Routing Services Administrator’s Guide is divided into chapters , each of which contain information about configuring the routing services . T able 3 desc[...]

  • Page 11

    11 Related Documentation F or more information about the Internet Services suite of products , see the following books: • HP-UX Internet Services Administrator’s Guide Provides an overview of the Internet Services products and describes how to install and configure them on your HP-UX 11i v2 operating system. Y ou can access this manual at the [...]

  • Page 12

    12 Many sections of this manual refer to RFCs for more information about certain networking topics . These documents publicize Internet standards , new research concepts , and status memos about the Internet. Y ou can access the full range of RFC documents and more information about the Internet Engineering T ask F orce (IETF) at the following URL:[...]

  • Page 13

    13 a hot link to the manpage itself . From the HP-UX command line, you can enter “ man audit ” or “ man 5 audit ” to view the manpage. See man (1). Book Title The title of a book. On the W eb and on the Instant Information CD , it may be a hot link to the book itself . ComputerOut T ext displayed by the computer . Command A command name, qu[...]

  • Page 14

    14 • The version of HP-UX that you are using.[...]

  • Page 15

    Chapter 1 15 1 Overview A router is a device that has multiple network interfaces and that transfers Internet Protocol (IP) packets from one network or subnet to another within an internetwork. In many IP-related documents, this device is also referred to as a gatewa y . The term router is used in this[...]

  • Page 16

    Overview Chapter 1 16 manual. The router stores all the routing information in the form of a routing table. Routing tables contain the routes to reach a particular network, and also identify the router to which the datagram packet can be passed for this purpose. The routing tables must contain the latest routing information. Routing protocols perfo[...]

  • Page 17

    Overview The mrouted Routing Daemon Chapter 1 17 The mrouted Routing Daemon mrouted (pronounced “M route D”) is a routing daemon that forwards IP multicast datagrams, within an autonomous network, through routers that support IP multicast addressing. mrouted implements the Distance-V ector Multicast Routing Protocol (DVMRP). The ultimate destin[...]

  • Page 18

    Overview The mrouted Routing Daemon Chapter 1 18 of the multicast datagrams. Y ou can achieve this by using topological knowledge of the network to implement a multicast forwarding algorithm called Truncated Reverse P ath Broadcasting (TRPB). mrouted structures routing information in the form of a pruned broadcast delivery tree that contains routin[...]

  • Page 19

    Overview The mrouted Routing Daemon Chapter 1 19 In this figure, the mrouted router R1 receives a multicast packet from node M. Because R1 is configured as one end of a tunnel, R1 encapsulates the IP multicast packet in a standard unicast IP packet addressed to the mrouted router R2. The packet, now treated as a normal IP packet, is sent through [...]

  • Page 20

    Overview The mrouted Routing Daemon Chapter 1 20 Normally , IP multicast addresses are mapped to 802.3 or Ethernet multicast addresses. The IP multicasting addressing sc heme, similar to Ethernet’ s scheme, uses the datagram’s destination address to indicate multicast delivery . When an IP multicast address is mapped to an Ethernet multicast ad[...]

  • Page 21

    Overview The mrouted Routing Daemon Chapter 1 21 also defines IGMP message types that enable hosts to join and leave multicast groups, and that allow multicast routers to query one another for routing information.[...]

  • Page 22

    Overview The gated Routing Daemon Chapter 1 22 The gated Routing Daemon gated (pronounced “gate D”) is a routing daemon that updates routing tables in internetwork routers. Developed at Cornell University , gated handles the Routing Information Protocol (RIP), External Gatewa y Protocol (EGP), Border Gatewa y Protocol (BGP), Open Shortest Path [...]

  • Page 23

    Overview The gated Routing Daemon Chapter 1 23 • gated translates among several protocols, passing information within or between IP routing domains or autonomous systems. Autonomous system (AS) is used here to refer to a group of connected nodes and routers in the same administrative domain that exchange routing information via a common routing p[...]

  • Page 24

    Overview The gated Routing Daemon Chapter 1 24 Routing Protocols F or routing purposes , networks and gateways are logically grouped into autonomous system (AS). Companies and organizations that want to connect to the Internet and form an AS must obtain a unique AS number from the Internet Assigned Numbers Authority (IANA). An interior gatewa y pro[...]

  • Page 25

    Overview The gated Routing Daemon Chapter 1 25 • HELLO is designed to work with routers called Fuzzballs. Most installations use RIP or OSPF instead of HELLO . The HELLO protocol is no longer supported on HP-UX. Y ou can use RIP or OSPF instead, because they are internal routing protocols. NO TE Do not mix RIP and OSPF protocols within a single n[...]

  • Page 26

    Overview The gated Routing Daemon Chapter 1 26 gated supports the following exterior gatewa y protocols: • The External Gatewa y Protocol (EGP) permits a node on the NSFNET backbone to exchange information with other backbone nodes about reaching a destination. Y ou can use EGP to communicate routing information between autonomous systems. The EG[...]

  • Page 27

    Overview The gated Routing Daemon Chapter 1 27 packets . It is used instead of, or in addition to , a statically configured default router . Router discovery consists of two parts: a server part that runs on routers , and a client part that runs on hosts .[...]

  • Page 28

    Overview The gated Routing Daemon Chapter 1 28[...]

  • Page 29

    Chapter 2 29 2 Configuring mrouted This chapter describes how to configure mrouted and the various configuration commands in mrouted . It also provides information on starting and verifying the mrouted installation. A description of the mrouted routing tables is also provided, along with the various multicast[...]

  • Page 30

    Configuring mrouted Chapter 2 30 routing support tools. This chapter discusses the following topics: • “How to Configure mrouted” on page 31 • “Starting mrouted” on page 36 • “V erifying mrouted Operation” on page 37 • “Displaying mrouted Routing T ables” on page 38 • “Multicast Routing Support T ools” on page 41[...]

  • Page 31

    Configuring mrouted How to Configure mr outed Chapter 2 31 How to Configure mrouted When the mrouted daemon starts , it automatically reads the default configuration file /etc/mrouted.conf . Y ou can override the default configuration file by specifying an alternate file while invoking mrouted . See “Starting mrouted” on page 36 for mor[...]

  • Page 32

    Configuring mrouted How to Configure mr outed Chapter 2 32 Y ou can use the phyint command to disable multicast routing on the physical interface identified by the local IP address, local-addr (see Figure 2-1), or to associate a nondefault metric or threshold with the specified physical interface. Alternatively , you can replace the local IP ad[...]

  • Page 33

    Configuring mrouted How to Configure mr outed Chapter 2 33 NO TE A phyint command must precede a tunnel command. All the phyint and tunnel command options must be placed on a single line except for the boundary and altnet options , which can begin on a separate line. Figure 2-1 Multicast Network Example Configuration The metric is the cost, or o[...]

  • Page 34

    Configuring mrouted How to Configure mr outed Chapter 2 34 The TTL value of forwarded packets is only compared with the threshold value; it is not decremented by the threshold . An application that initiates the IP multicast datagram sets the TTL, and typically represents the number of subnets, or hops , the datagram has to traverse to reach its [...]

  • Page 35

    Configuring mrouted How to Configure mr outed Chapter 2 35 those leaf subnets do not contain members of the multicast destination group. Use only nonpruning mode for testing. The default mode for pruning is on . Y ou can use the name command to assign a name ( boundary-name ) to a boundary (a scoped-addr / mask-len pair) to simplify the configur[...]

  • Page 36

    Configuring mrouted Starting mrouted Chapter 2 36 Starting mrouted Y ou can start mrouted from the HP-UX prompt or from within a shell script by issuing the following command: /etc/mrouted [-p] [-c config_file ] [-d debug_level ] The -p option disables pruning by overriding the pruning on statement within the /etc/mrouted.conf configuration file[...]

  • Page 37

    Configuring mrouted V erifying mrouted Operation Chapter 2 37 V erifying mrouted Operation Y ou can use one or more of the following methods to verify mrouted operation: • Retrieve the virtual interface table and the multicast routing table to verify if appropriate virtual interfaces (vifs) are configured. See “Displaying mrouted Routing T ab[...]

  • Page 38

    Configuring mrouted Displaying mr outed Routing T ables Chapter 2 38 Displaying mrouted Routing T ables mrouted contains three routing tables: the virtual interface table , the multicast routing table , and the multicast routing cache table. The virtual interface table displays the following topological information for each virtual interface: • [...]

  • Page 39

    Configuring mrouted Displaying mr outed Routing T ables Chapter 2 39 The multicast routing table displays connectivity information for each subnet from which a multicast datagram can originate. The multicast routing cache table is a duplicate copy of the kernel forwarding cache table. It contains the status information for multicast destination gr[...]

  • Page 40

    Configuring mrouted Displaying mr outed Routing T ables Chapter 2 40 F or more information on signals , type man 1M mrouted at the HP-UX command prompt, and see the Signals section.[...]

  • Page 41

    Configuring mrouted Multicast Routing Support T ools Chapter 2 41 Multicast Routing Support T ools This section describes various multicast routing support tools. The mrinfo T ool mrinfo is a multicast routing tool that requests configuration information from mrouted and prints the information to the standard output. By default, mrouted prints co[...]

  • Page 42

    Configuring mrouted Multicast Routing Support T ools Chapter 2 42[...]

  • Page 43

    Chapter 3 43 3 Configuring gated gated handles multiple routing protocols. Y ou can configure the gated daemon to perform all or any combination of the supported protocols.[...]

  • Page 44

    Configuring gated Chapter 3 44 The HP-UX 11i v2 operating system supports gated 3.5.9. This chapter contains information about how to configure gated on various routing protocols . It also describes how to specify the tracing options and route preference in gated , and discusses certain troubleshooting measures . This chapter discusses the follow[...]

  • Page 45

    Configuring gated Configuration Overview Chapter 3 45 Configuration Overview Upon startup, gated reads the configuration file to decide how each protocol must be used to manage routing. By default, it uses the configuration file named /etc/gated.conf . Creating the configuration file is usually the responsibility of the system administrato[...]

  • Page 46

    Configuring gated Configuration Overview Chapter 3 46 If you do not want to use any of the gated 3.5.9 features added at HP-UX 10.30, and do not have any tracing configured in your gated 3.0 /etc/gated.conf configuration file, you can continue to use your 3.0 configuration file with gated 3.5.9. If you do have tracing configured in your gat[...]

  • Page 47

    Configuring gated Configuration Overview Chapter 3 47 3. Add statements for any additional configuration information. See “Customizing Routes” on page 90, “Specifying Tracing Options” on page 92, and “Specifying Route Preference” on page 94 for other configuration options. In particular , you may w ant to prevent gated from deleting[...]

  • Page 48

    Configuring gated Configuration Overview Chapter 3 48 NO TE Y ou can also use the command gdc checkconf to parse the /etc/gated.conf file for syntax errors. gdc issues a message to indicate the parsing errors. If there are any errors , the error output is saved to a file for further inspection. F or more details , type man 1M gdc at the HP-UX p[...]

  • Page 49

    Configuring gated Configuration Overview Chapter 3 49 1. Retain a copy of the gated 3.0 configuration file, because you cannot specify the same file for input and output while running the conv_config conversion tool. F or example, if you are using /etc/gated.conf for 3.0, type the following command: cp /etc/gated.conf /etc/gated.conf.30 2. Iss[...]

  • Page 50

    Configuring gated Configuring the RIP Protocol Chapter 3 50 Configuring the RIP Protocol RIP uses hopcount to determine the shortest path to a destination. Hopcount is the number of routers a packet must pass through to reach its destination. If a path is directly connected, it has the lowest hopcount of 1. If the path passes through a single ro[...]

  • Page 51

    Configuring gated Configuring the RIP Protocol Chapter 3 51 trustedgateways router_list ; sourcegateways router_list ; traceoptions traceoptions ; }]; Curly braces ({}) are part of the syntax for the RIP protocol statement. Square brackets ([]) are not part of the syntax; they are used here to indicate optional parameters. yes (or on ) informs ga[...]

  • Page 52

    Configuring gated Configuring the RIP Protocol Chapter 3 52 Range: 1 – 16 • query authentication [none|[[simple|md5] password ]] specifies the authentication, if any , that is required for query packets that do not originate from routers. If authentication consisting of only a password is required, specify simple password or password . If th[...]

  • Page 53

    Configuring gated Configuring the RIP Protocol Chapter 3 53 • [secondary] authentication [none|[simple|md5] password ] specifies the type of authentication for RIP V ersion 2 pac kets (it is ignored for V ersion 1 packets). secondary indicates that the secondary authentication is defined; otherwise, the primary authentication is defined. If [...]

  • Page 54

    Configuring gated Configuring the RIP Protocol Chapter 3 54 Simple RIP Configuration A simple RIP configuration consists of RIP routers and end nodes that listen to information exchanged by the RIP routers , as shown in Figure 3-1. Figure 3-1 and the accompanying text describe configuration of a single end system (node A) and a RIP router (nod[...]

  • Page 55

    Configuring gated Configuring the RIP Protocol Chapter 3 55 With one interface , A can listen to RIP traffic on the network but does not forward routing information. Routers must be multicasting RIP packets on this network for A to learn about them and update its routing table. The first syntax statement enables RIP on node A ’s interface (12[...]

  • Page 56

    Configuring gated Configuring the RIP Protocol Chapter 3 56 Figure 3-2 Example of Large RIP Network A: Cluster Node (or Isolated Node) Y ou need not run gated at this node, because it is on a LAN with only one router . Set a static default route to the cluster server (B) in the /etc/rc.config.d/netconf file as follows: ROUTE_DESTINATION[0]= &quo[...]

  • Page 57

    Configuring gated Configuring the RIP Protocol Chapter 3 57 B: Cluster (or Root) Server Node Run gated to get routing information about the 121.0.0.0 network. Set up /etc/gated.conf as follows: interfaces { interface 130.15.0.6 121.1.0.92 passive ; }; rip yes { interface 130.15.0.6 noripout ; interface 121.1.0.92 version 2 multicast; }; static { [...]

  • Page 58

    Configuring gated Configuring the RIP Protocol Chapter 3 58 rip yes { interface 121.1.0.10 version 2 multicast; }; static { default interface 121.1.0.10 preference 255 ; }; With one interface , C can listen to RIP traffic on the network but does not forward routing information. Routers must be multicasting RIP packets on this network for C to le[...]

  • Page 59

    Configuring gated Configuring the RIP Protocol Chapter 3 59 The options for limiting RIP routing information imported by gated in the RIP protocol definition in the /etc/gated.conf file are as follows: • The noripin clause in the interface definition informs gated not to process RIP information received through the listed interfaces. • The[...]

  • Page 60

    Configuring gated Configuring the OSPF Protocol Chapter 3 60 Configuring the OSPF Protocol Open Shortest P ath First (OSPF) is a link-state routing protocol that distributes routing information between routers in a single autonomous system (AS). Each OSPF router transmits a packet with a description of its local links to all other OSPF routers .[...]

  • Page 61

    Configuring gated Configuring the OSPF Protocol Chapter 3 61 Figure 3-3 Areas Defined in an Autonomous System Internal routers have all their directly connected networks in the same area. In Figure 3-3, routers A, B , and H are internal routers. Routers that are connected to multiple areas are called area border routers . In Figure 3-3, routers [...]

  • Page 62

    Configuring gated Configuring the OSPF Protocol Chapter 3 62 Multi-access networks (networks that can be accessed through two or more neighbor routers) must have one of the routers identified as a designated router. Designated routers initiate OSPF protocol functions on behalf of the network. In Figure 3-3, you can access network 1 through the n[...]

  • Page 63

    Configuring gated Configuring the OSPF Protocol Chapter 3 63 it is not required that an AS boundary router be a backbone router . An AS boundary router learns about routes other than its attached AS through exchanges with other routing protocols or through configuration information. Each AS boundary router calculates paths to destinations outsid[...]

  • Page 64

    Configuring gated Configuring the OSPF Protocol Chapter 3 64 6. F or multi-access networks, identify a designated router . F or NBMA networks , several routers can be designated router candidates. Designated routers are specified in the interface definitions (see “The interface Statement” on page 67). 7. Y ou must decide if you want to assi[...]

  • Page 65

    Configuring gated Configuring the OSPF Protocol Chapter 3 65 The following sections explain other statements defined for the OSPF protocol configuration. Defining Areas Each OSPF router is associated with one or more areas . The area statement identifies an OSPF area. The value is in the form of a dotted quad, or a number between 1 and 429496[...]

  • Page 66

    Configuring gated Configuring the OSPF Protocol Chapter 3 66 Y ou can define various characteristics for an area and interfaces . The following sections describe the configuration statements that you can use in defining an area. The networks Statement The networks statement defines the address ranges that forms an OSPF area. This definition [...]

  • Page 67

    Configuring gated Configuring the OSPF Protocol Chapter 3 67 The following is an example of the network definition in the Router A ’ s /etc/gated.conf file: ospf yes area 0.0.0.1 networks { 193.2.1.16 mask 0xfffffff0 ; 193.2.1.32 mask 0xfffffff0 ; }; interface 193.2.1.33 { ... }; }; ... The interface Statement The interface statement in the O[...]

  • Page 68

    Configuring gated Configuring the OSPF Protocol Chapter 3 68 • A point-to-point network is a network that joins a single pair of routers. An example of a point-to-point network is a 56-KB serial line. The following sections describe each type of interface. Multicast Interfaces On multicast networks , an OSPF router dynamically detects its neigh[...]

  • Page 69

    Configuring gated Configuring the OSPF Protocol Chapter 3 69 Default: None (you must specify a value) Range: Integer between 0 – 255 NO TE The hellointerval value must be the same for all OSPF routers. • routerdeadinterval specifies the time interval (in seconds) for which the Hello packets are not received from a router before it is conside[...]

  • Page 70

    Configuring gated Configuring the OSPF Protocol Chapter 3 70 Figure 3-6 shows an example of a router that is connected to a multicast network through the interface 193.2.1.35. Figure 3-6 Multicast Router Interface Example The following is an example of the multicast interface definition in the router’ s /etc/gated.conf file: interface 193.2.1[...]

  • Page 71

    Configuring gated Configuring the OSPF Protocol Chapter 3 71 specified by the routerdeadinterval definition). The value of pollinterval must be larger than the value of hellointerval . A sample value for an X.25 network is 2 minutes. Default: None (you must specify a value) Range: 0 – 255 • routers specify the list of routers attached to th[...]

  • Page 72

    Configuring gated Configuring the OSPF Protocol Chapter 3 72 interface 193.2.1.35 nonbroadcast cost 5 { routers { 193.2.1.33 eligible ; 193.2.1.46 eligible ; }; priority 15 ; hellointerval 5 ; routerdeadinterval 20 ; retransmitinterval 10 ; pollinterval 20 ; }; P oint-to-P oint Interfaces On point-to-point networks, an OSPF router dynamically det[...]

  • Page 73

    Configuring gated Configuring the OSPF Protocol Chapter 3 73 • routerdeadinterval specifies the time interval (in seconds) for which the Hello packets are not received from a router before it is considered down or inactive by its neighbors. This value must be a multiple of the hellointerval value. Default: None (you must specify a value) Range[...]

  • Page 74

    Configuring gated Configuring the OSPF Protocol Chapter 3 74 Figure 3-8 shows an example of a router (A) that is connected to a non-broadcast, point-to-point network through interface 193.2.1.1. Figure 3-8 P oint-to-P oint Router Interface Example The following is an example of the interface definition in router A ’ s /etc/gated.conf file: in[...]

  • Page 75

    Configuring gated Configuring the OSPF Protocol Chapter 3 75 Figure 3-9 shows an example of an area border router that is connected to area 0.0.0.2 through interface 193.2.1.20. Because all traffic in and out of the area 0.0.0.2 must pass through router A, it is not necessary for the area’ s internal routers, suc h as router B, to receive inte[...]

  • Page 76

    Configuring gated Configuring the OSPF Protocol Chapter 3 76 Defining Backbones The OSPF backbone distributes routing information between areas . Y ou can define backbones with the same statements and clauses as areas . Y ou need not define the stub statement for a backbone . The backbone statement is used to define a router as a backbone rou[...]

  • Page 77

    Configuring gated Configuring the OSPF Protocol Chapter 3 77 backbone { interface 15.13.115.156 { enable ; transitdelay 20 ; priority 20 ; hellointerval 30 ; routerdeadinterval 120 ; retransmitinterval 60 ; }; }; If the router is directly attached via a point-to-point interface to a host that is not running OSPF , you can prevent sending OSPF Hel[...]

  • Page 78

    Configuring gated Configuring the OSPF Protocol Chapter 3 78 configured on a per -interface basis. If a router has interfaces to more than one network, different passwords can be configured. This is illustrated in Figure 3-11. Figure 3-11 Simple P assword Authentication The following example shows an authtype statement that enables a simple pas[...]

  • Page 79

    Configuring gated Configuring the OSPF Protocol Chapter 3 79 retransmitinterval 10 ; pollinterval 20 ; authkey " travis " ; }; }; Cost The outbound side of each router interface is associated with a configurable cost. Lower cost interfaces are more likely to be used in forwarding data traffic . Cost values are assigned at the discreti[...]

  • Page 80

    Configuring gated Configuring the OSPF Protocol Chapter 3 80 In Figure 3-12, there are two possible packet routes between nodes A and D: one route goes through node B and the other route goes through node C . The cost of each route is calculated as follows: Node A to node B and node B to node D: 5+5 = 10 Node A to node C and node C to node D: 5+1[...]

  • Page 81

    Configuring gated Configuring the OSPF Protocol Chapter 3 81 gated supports the use of route information from other autonomous systems that use other routing protocols, suc h as EGP . AS boundary routers send AS external link advertisements and flood the AS with advertisements (with the exception of configured stub areas). A single AS external [...]

  • Page 82

    Configuring gated Configuring the OSPF Protocol Chapter 3 82 value can be an unsigned 31-bit number . Y ou can also specify tag as as_tag , where as_tag is an unsigned 12-bit number that is automatically assigned. • type determines how ASE routes imported into OSPF are treated. Type 1 routes must be routes from internal gatewa y protocols with [...]

  • Page 83

    Configuring gated Configuring the OSPF Protocol Chapter 3 83 Sample OSPF Configuration Figure 3-13 shows an example of two areas . Area 1 is a non-stub area, while area 2 is configured as a stub area. Node B is an area border router between the two areas. Figure 3-13 OSPF Sample Configuration A: Internal Router (Non-Stub Area) Set up /etc/gate[...]

  • Page 84

    Configuring gated Configuring the OSPF Protocol Chapter 3 84 # Router A Configuration (non-stub area) OSPF yes { area 0.0.0.1 { interface 193.2.1.35 cost 5 { priority 5 ; enable ; hellointerval 5 ; routerdeadinterval 20 ; retransmitinterval 10 ; }; }; }; The configuration for the internal router A is for a multicast interface. F or an NBMA inter[...]

  • Page 85

    Configuring gated Configuring the OSPF Protocol Chapter 3 85 }; area 0.0.0.1 { interface 193.2.1.33 cost 5 { priority 15 ; enable ; hellointerval 5 ; routerdeadinterval 20 ; retransmitinterval 10 ; }; }; area 0.0.0.2 { interface 193.2.1.17 cost 5 { priority 15 ; enable ; hellointerval 5 ; routerdeadinterval 20 ; retransmitinterval 10 ; }; }; back[...]

  • Page 86

    Configuring gated Configuring the OSPF Protocol Chapter 3 86 The routing table on node A contains routes to 193.2.1.32 and 193.2.1.16. The routing table on node C in the stub area contains routes only to LAN 1 and a default router . Accessing the OSPF MIB HP’ s gated also provides ospfagt , an OSPF Simple Management Network Protocol (SNMP) suba[...]

  • Page 87

    Configuring gated Configuring RDP Chapter 3 87 Configuring RDP Y ou can use Router Discovery Protocol (RDP), a standard protocol, to inform hosts of the presence of routers to which they can send packets . Y ou can also use RDP instead of host wiretapping routing protocols (for example, RIP). It is used instead of , or in addition to, ha ving st[...]

  • Page 88

    Configuring gated Configuring RDP Chapter 3 88 configured on the physical interface. If advertisements are sent to a net or subnet broadcast, only that network’ s or subnet’s address is included in the advertisement. An example of the routerdiscovery server statement is as follows: routerdiscovery server yes { interface lan1 lan2 maxadvinter[...]

  • Page 89

    Configuring gated Configuring RDP Chapter 3 89 The host also deletes any routes learned from ICMP redirect s pointing to the invalid addresses. Also , if a router advertisement is not received before the addresses listed by the host becomes invalid (that is , before its lifetime expires), the routes learned from that router are deleted by the hos[...]

  • Page 90

    Configuring gated Customizing Routes Chapter 3 90 Customizing Routes gated maintains the routing table in user space, and synchronizes this table with the kernel routing table. This section describes statements for setting up customized routes in the Static class of the gated configuration file, /etc/gated.conf . Y ou can use these statements to[...]

  • Page 91

    Configuring gated Customizing Routes Chapter 3 91 Setting Interface States gated times out routes that pass through interfaces not receiving any RIP , OSPF , or BGP packets . The passive clause in the interface statement of the Static class prevents gated from changing the preference of a route to the interface if routing information is not receiv[...]

  • Page 92

    Configuring gated Specifying T racing Options Chapter 3 92 Specifying T racing Options Trace options specify the desired level of tracing output from gated . Tracing output provides useful system information for setting up a node on the network. Use trace options to set up a node and to send a certain type of tracing to a log file. Y ou can speci[...]

  • Page 93

    Configuring gated Specifying T racing Options Chapter 3 93 Some of the options specified in T able 3-2 do not apply to all of the protocols . F or more information on options applicable for each protocol and for the different trace options available within the configuration file , type man 4 gated.conf at the HP-UX prompt. See “Troubleshootin[...]

  • Page 94

    Configuring gated Specifying Route Preference Chapter 3 94 Specifying Route Preference gated maintains a routing table that consists of the route information learned from OSPF and from other active routing protocols, suc h as RIP or EGP . Y ou can also configure static routes in the /etc/gated.conf file with one or more static clauses (see “In[...]

  • Page 95

    Configuring gated Specifying Route Preference Chapter 3 95 Y ou can define preference in the /etc/gated.conf file configuration file in the following instances: • In the static route definition in the Static class . This preference definition sets the preference for static routes. (See “Customizing Routes” on page 90 for more informati[...]

  • Page 96

    Configuring gated Specifying Route Preference Chapter 3 96 • In a defaults statement in the OSPF protocol configuration. This preference definition specifies the preference value of ASE routes that are imported into OSPF . See “ AS External Routes (AS Boundary Routers Only)” on page 80 for more information. ASE routes are imported into OS[...]

  • Page 97

    Configuring gated Importing and Expor ting Routes Chapter 3 97 Importing and Exporting Routes Y ou can propagate routes from one routing protocol to another using the import and export control statements . Routes are imported into a gated forwarding table and exported out to the routing protocols . F or more information on import and export statem[...]

  • Page 98

    Configuring gated Importing and Expor ting Routes Chapter 3 98 Examples of import and export Statements The following import statement imports a BGP route for network 195.1.1 to the gated forwarding table with a preference of 15: import proto bgp as 1 { 195.1.1 mask 0xffffff00 preference 15; }; The following export statement exports to OSPF the AS[...]

  • Page 99

    Configuring gated Starting gated Chapter 3 99 Starting gated T o start gated , complete the following steps: 1. Set the environment variable GATED to 1 in the file /etc/rc.config.d/netconf to start gated automatically upon system startup. 2. Reboot your system, or issue the following command to run the gated startup script: /sbin/init.d/gated sta[...]

  • Page 100

    Configuring gated Starting gated Chapter 3 100 F or more information about the command-line options , type man 1M gated at the HP-UX prompt. V erifying That gated Is Running Issue the following command to determine if gated is running: /usr/bin/ps -ef | /usr/bin/grep gated This command reports the process identification (PID), current time, and t[...]

  • Page 101

    Configuring gated T roubleshooting gated Chapter 3 101 T roubleshooting gated This section describes the following techniques for troubleshooting gated and some common problems encountered with gated operation: • “Checking for Syntax Errors in the Configuration File” on page 101 • “Tracing gated Activity” on page 101 • “Operationa[...]

  • Page 102

    Configuring gated T roubleshooting gated Chapter 3 102 NO TE In gated 3.5.9 , the two statements in the Trace class ( tracefile and traceoptions ) are combined into one traceoptions statement. Therefore, the tracefile statement is eliminated. F or details about the new syntax, type man 4 gated.conf at the HP-UX prompt. After tracing is started to [...]

  • Page 103

    Configuring gated T roubleshooting gated Chapter 3 103 gdc determines the state of gated and produces a reliable exit status during errors , which is useful in shell scripts that manipulate gated . The syslogd facility is used to log all the commands and error messages generated during gdc operation. gated uses these log messages to provide an aud[...]

  • Page 104

    Configuring gated T roubleshooting gated Chapter 3 104 Common Problems This section discusses the common problems experienced during gated operation. Problem 1: gated does not act as expected. First, check the syslogd output for any syntax errors that may have been flagged. T o detect incorrect configuration commands , use gated tracing. F ollow[...]

  • Page 105

    Configuring gated T roubleshooting gated Chapter 3 105 Interface Configuration Without strictintfs Option Specified The following configuration references a non-existent interface, but does not include the strictintfs option: traceoptions "tt" general; interfaces { interface lan0 lan1 lan3 passive ; }; rip yes ; The following is the t[...]

  • Page 106

    Configuring gated T roubleshooting gated Chapter 3 106 lan2 Index 3 Address 802.2 8:0:9:3d:2c:b1 Change: <> State: <> Refcount: 2 Up-down transitions: 0 198.1.1.17 Metric: 0 MTU: 1436 Refcount: 4 Preference: 0 Down: 120 Change: <> State: <Up Broadcast Multicast > Broadcast Address: 198.1.1.255 Subnet Number: 198.1.1 Subnet [...]

  • Page 107

    Configuring gated T roubleshooting gated Chapter 3 107 Normally , gated deletes the route configured in the /etc/rc.config.d/netconf file. T o solve this problem, configure a static default route as described in the section “Installing Static Routes” on page 90. Another common scenario occurs in networks where all the gatewa ys do not imple[...]

  • Page 108

    Configuring gated T roubleshooting gated Chapter 3 108 Y ou may have to repeat this process several times to trac k down the original source of the route. If you expect the route to go through a different router , turn on gated tracing . The tracing tells you which routers are advertising this route and the values attached to those routes. Problem[...]

  • Page 109

    109 Index A all hosts group , 19 area border router , 61 configuration example , 75 area statement in /etc/gated.conf file , 65 areas , OSPF , 63 example configuration , 65 AS , 23 See autonomous system Assigned Numbers Authority , 63 authentication in OSPF , 77 authkey statement in /etc/gated.conf file , 69 , 78 authtype statement in /etc/gate[...]

  • Page 110

    Index 110 priority statement , 68 query authentication clause , 52 retain clause , 90 retransmitinterval statement , 68 , 72 rip statement , 50 ripin clause , 52 ripout clause , 52 routerdeadinterval statement , 69 , 73 routers statement , 71 secondary authentication clause , 53 sourcegatewa ys clause , 51 , 53 , 58 static statement , 90 stub state[...]

  • Page 111

    Index 111 IP type of service routing feature , 24 K kernel routing table , 22 , 100 L link state advertisement , 62 M management information base See MIB metricin clause in /etc/gated.conf file , 52 metricout clause in /etc/gated.conf file , 52 MIB , 24 mixing protocols , 25 mrouted configuration command phyint command , 31 tunnel command , 32 l[...]

  • Page 112

    Index 112 password authentication in OSPF , 78 configuration example , 78 phyint command in mrouted , 32 point-to-point network interface , 68 , 72 configuration example , 74 pollinterval statement in /etc/gated.conf file , 71 , 73 preference clause in /etc/gated.conf file , 51 , 81 , 94 priority statement in /etc/gated.conf file , 68 pruned b[...]

  • Page 113

    Index 113 TOS routing feature , 24 traceoptions statement in /etc/gated.conf file , 53 tracing gated , 92 , 99 , 101 transmitdelay statement in /etc/gated.conf file , 68 TRPB , 18 Truncated Reverse P ath Broadcasting , 18 See TRPB trustedgatewa ys clause in /etc/gated.conf file , 53 , 59 TTL in mrouted , 33 tunnel command in mrouted , 32 tunnell[...]