HP Routing Services -UX 11i v2 manual Customizing Routes, Specifying a Default Router

Page 90

Configuring gated

Customizing Routes

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. You can use these statements to specify default routers, static routes, passive interfaces, and routing metrics for interfaces.

Specifying a Default Router

A static route provides a specific destination for network packets. The static route is a network address or a host address through a router. This route is installed in the kernel’s routing table. The following is an example of a static route for the default route:

static {

default gateway 15.13.114.196 retain ; } ;

The retain qualifier ensures that the entry is not deleted when gated exists.

Installing Static Routes

The static statement specifies a router or an interface in the kernel routing tables. The following is an example of a static route:

static {

193.2.1.32mask 0xfffffff0 gateway 193.2.1.30 preference 8 retain ;

} ;

If you specify an export statement for the default route, the route is passed on to other routers. If you specify only the static statement and not an export statement, then the default route is not passed on as a route to other routers. This is considered a passive default route, and is used only by the host where this gated is running. The retain clause retains the route in the kernel even after gated shuts down.

90

Chapter 3

Image 90
Contents Edition Manufacturing Part Number B2355-90777 AugustWarranty Government LicenseCopyright Notice Trademark Notices Page Contents Contents Index Contents Intended Audience HP-UX Release Name and Release IdentifierWhat Is in This Document Publishing HistoryDocument Organization Chapter Description HP-UX Internet Services Administrator’s Guide Related DocumentationMbone FAQ Typographical ConventionsHP Encourages Your Feedback BoldVersion of HP-UX that you are using Overview Overview Mrouted Routing Daemon Multicasting OverviewDvmrp Protocol Dvmrp Tunnel Dvmrp Tunnel MulticastEndpoint IP Multicast Addresses Class D IP Multicast Address FormatMulticast Groups Mrouted Routing Daemon Gated Routing Daemon AdvantagesDeciding When to Use gated Routing Protocols Comparison of RIP and Ospf Protocols RIP OspfRIP Ospf Gated Routing Daemon Gated Routing Daemon Chapter Configuring mrouted Configuring mrouted How to Configure mrouted Configuration CommandsTunnel Multicast Network Example Configuration How to Configure mrouted How to Configure mrouted Starting mrouted Verifying mrouted Operation Displaying mrouted Routing Tables HUP Displaying mrouted Routing Tables Map-mbone Tool Multicast Routing Support ToolsMrinfo Tool Netstat ToolMulticast Routing Support Tools Chapter Configuring gated Configuring gated Configuration Overview Configuring gated Protocol statements follow Converting the Configuration File from 3.0 to Cp /etc/gated.conf /etc/gated.conf.30 Configuring the RIP Protocol RIP Protocol StatementDefault Range 1 Configuration Options End Systems Simple RIP ConfigurationExample of Simple RIP Configuration RoutersExample of a Large RIP Configuration RIP RouterRoot Server Major RouterCluster Node Isolated Node Single NodeCluster or Root Server Node Controlling RIP Traffic Major RouterConfiguring the RIP Protocol Configuring the Ospf Protocol Areas Defined in an Autonomous System AreaNetwork Router Area Configuring the Ospf Protocol Planning Your Ospf Configuration Enabling Ospf Defining Areas Area Border Router Configuration ExampleArea To Network a 193.2.1.33 Border Router To Network B Networks Statement Network Configuration ExampleInterface Statement Configuring the Ospf Protocol Default None Multicast Router Interface Example Router 193.2.1.35 NetworkRange 0 Non-Broadcast Router Interface ExampleRouter Network 193.2.1.35 193.2.1.33 Internet 193.2.1.46 Hellointerval value must be the same for all Ospf routers Configuring the Ospf Protocol Point-to-Point Router Interface Example Router 193.2.1.1 193.2.1.2Stub Areas Area Router 193.2.1.20 193.2.1.17 193.2.1.18 193.2.1.19Defining Backbones Area 15.13.115.156 Router a Router BAuthentication Authkey travis Authkey pepeCost Cost LAN 1 LAN 2AS External Routes AS Boundary Routers Only Default Configuring the Ospf Protocol Sample Ospf Configuration Internal Router Non-Stub AreaArea Border Router Internal Router Stub Area Accessing the Ospf MIB Configuring RDP RDP ServerRDP Client Server RDP ClientSpecifying a Default Router Installing Static RoutesCustomizing Routes Setting Interface States Specifying Tracing Options Files Option EffectDefault Preference Values of Routes Specifying Route PreferenceRoute Type Preference BGP Specifying Route Preference Importing and Exporting Routes Import StatementExport Statement Examples of import and export Statements Command Line Options for gated Starting gatedFlag Effect Verifying That gated Is Running 100Troubleshooting gated Checking for Syntax Errors in the Configuration FileTracing gated Activity Operational User Interface for gated gdc 102Gated Routing Table Ripquery ToolOspfmonitor Tool Common Problems Problem 1 gated does not act as expected104 Chapter 105 Problem 2 gated deletes routes from the routing table 106Problem 3 gated adds routes that appear to be incorrect Problem 4 gated does not add routes that you think it must 108Index 109110 111 112 TOS 113