|
|
Installing and Administering Internet Services: HP 9000 Networking > Chapter 8 Configuring gatedOverview |
|
A router is a device that has multiple network interfaces and 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 "gateway." The term "router" is used in this chapter.) The gated daemon updates routing tables in internetwork routers. Developed at Cornell University, gated handles the RIP, EGP, BGP, and OSPF routing protocols and the Router Discovery Protocol (RDP), or any combination of these protocols. Routing protocols are designed to find a path between network nodes. If multiple paths exist for a given protocol, the shorter paths are usually chosen. Each protocol has a cost or a metric that it applies to each path. In most cases, the lower the cost or metric for a given path, the more likely a protocol will choose it. When started, gated reads the kernel routing table on the local machine. gated maintains a complete routing table in the user space, and keeps the kernel routing table (in the kernel space) synchronized with this table. In large local networks, there are often multiple paths to other parts of the local network. gated can be used to maintain near optimal routing to the other parts of the local network, and to recover from link failures in paths. Using gated offers these advantages:
gated is most often used in large networks, or small networks connected to larger wide-area networks. gated should be run on routers (gateways) so its routing information can be sent to other routers. gated supports many routing protocols that allow routers to build and maintain dynamic routing tables and also RDP as a client with a replacement for rdpd. However, gated also supports RIP (Routing Information Protocol), which can run on end systems (systems with only one network interface) as well as routers.
gated is useful in topologies with multiple routers and multiple paths between parts of the network. gated allows the routers to exchange routing information and dynamically change routing information to reflect topology changes and maintain optimal routing paths. Alternatively, you may configure IP routes manually with the route (1M) command. For end systems in subnets with only one router (gateway) to the rest of the internet, manually configuring a default route is usually more efficient than running gated. Type man 1M route at the HP-UX prompt. When connected to wide-area networks, gated can be used to inject local routing information into the wide-area network's routing table. For routing purposes, networks and gateways are logically grouped into autonomous systems. An autonomous system (AS) is a set of networks and gateways that is administered by a single entity. Companies and organizations that wish to connect to the Internet and form an AS must obtain a unique AS number from the Internet Assigned Numbers Authority (IANA). An interior gateway protocol is used to distribute routing information within the autonomous system. An exterior gateway protocol is used to distribute general routing information about an autonomous system to other autonomous systems. Dividing networks into autonomous systems keeps route changes inside the autonomous system from affecting other autonomous systems. When routes change within an autonomous system, the new information need not be propagated outside the autonomous system if it is irrelevant to gateways outside the autonomous system. gated supports the following interior gateway protocols, as defined in IETF RFCs:
Table 8-1 “Comparison of RIP and OSPF Protocols” compares the advantages and disadvantages of the RIP and OSPF protocols. Table 8-1 Comparison of RIP and OSPF Protocols
gated supports the following exterior gateway protocols:
gated also supports the Router Discovery Protocol (RDP), which is neither an interior nor exterior gateway protocol. It is used to inform hosts of the existence of routers they can send packets to. It is used instead of, or in addition to, a statically configured default router. Router Discovery is made up of two parts: a server part that runs on routers, and a client part that runs on hosts. |
|