Previous | Contents | Index |
You can make your SLIP-connected host appear as if it were directly connected to the LAN. This is possible using a proxy ARP server (usually the same host that is acting as a SLIP gateway into the LAN).
To use proxy ARP (Address Resolution Protocol), assign to the remote host an IP address in the same subnetwork as the LAN. As other hosts on the LAN attempt to communicate with the remote host, the SLIP gateway answers ARP queries for the remote host by giving its own LAN address. The gateway then forwards packets across the SLIP line.
Many DECserver terminal server products support SLIP connections and implement proxy ARP. If you dial in from an OpenVMS host to a terminal server, the terminal server automatically detects your IP address and begins responding to ARP queries, forwarding packets as necessary.
To use proxy ARP with a DECserver terminal server, assign an IP address in the same subnetwork as the terminal server.
At the terminal server, enter the TCP/IP management command SHOW PORT SLIP. Verify that:
It is also possible to set up your host as a SLIP gateway with proxy ARP. You might prefer this approach if your dialin modems are attached directly to an OpenVMS system rather than to a terminal server.
Follow these steps on the host to become a SLIP gateway:
$ TCPIP SET INTERFACE SL0 /HOST=10.1.2.3 /SERIAL_DEVICE=TTA2 |
$ TCPIP SET ROUTE FINCH /GATEWAY=10.1.2.3 |
$ TCPIP SET ARP 08-00-2B-2C-4F-46 FINCH /PUBLIC |
$ TCPIP SET PROTOCOL IP /FORWARD |
When your host is set up as a SLIP gateway, create an interface on the remote host at the other end of the serial line. Specify an address in the same subnetwork as the LAN.
Although the two ends of the SLIP line are in different subnetworks,
traffic can flow properly due to the interface route you added with the
SET ROUTE command.
3.3.6 Shutting Down SLIP
To terminate a SLIP connection, follow these steps:
$ TCPIP SET NOINTERFACE interface |
If you have problems dialing in to an OpenVMS system using SLIP or PPP after following the instructions in this chapter, perform the following steps to isolate the cause of the problem:
$ SHOW INTRUSION $ DELETE/INTRUSION_RECORD source |
TCPIP> SHOW PROTOCOL IP/FORWARD |
$ SET TERMINAL TTnx /ALTYPEAHD /AUTOBAUD /DIALUP - _$ /DISCONNECT /EIGHTBIT /MODEM /NOHANGUP /NOHOSTSYNC /NOPASTHRU - _$ /NOREADSYNCH /NOTTYSYNCH /PERMANENT /TYPE_AHEAD |
$ SET HOST/DTE TTnx |
$ PPPD PPPD> CONNECT \}`}"}(}"6~ <CTRL/@> %PPPD-I-CONNECTTERM, converting connection on device _TTA0: to a Point-to-Point connection %PPPD-E-CALLBACKERR, error calling network callback %SYSTEM-F-NOPRIV, insufficient privilege or object protection violation %PPPD-F-ABORT, fatal error encountered; operation terminated |
TCPIP> PING host-name |
$ HELP TCPTRACE |
TCPIP> SHOW INTERFACE SLn |
TCPIP> SHOW INTERFACE PPn |
Keep the following in mind for PPP-specific problems:
%PPPD-E-NEEDVIRTTERM, point-to-point connection on device _TTB0: must be done on a virtual terminal |
$ RUN SYS$SYSTEM:SYSMAN SYSMAN> IO CONNECT VT/NOADAPTER/DRIVER=SYS$LOADABLE_IMAGES:SYS$TTDRIVER.EXE SYSMAN> EXIT |
$ SET PROCESS/PRIVILEGE=CMKRNL $ SYSMANIO = "SYSMAN IO" $ SYSMANIO CONNECT VT/NOADAPTER/DRIVER=SYS$LOADABLE_IMAGES:SYS$TTDRIVER.EXE |
Routing allows traffic from your local network to reach its destination elsewhere on the internet. Hosts and gateways on a network use routing protocols to exchange and store routing information. Routing is the act of forwarding datagrams based on information stored in a routing table.
The TCP/IP Services product provides two types of routing: static and dynamic. This chapter reviews key routing concepts and describes:
If the hosts on your network need to communicate with computers on other networks, a route through a gateway must be defined. All hosts and gateways on a network store information about routes in routing tables. With TCP/IP Services, routing tables are maintained in both dynamic and permanent memory.
You can define routes manually (static routing), or you can enable
routing protocols that exchange information and build routing tables
based on the information exchanged (dynamic routing).
4.1.1 Static Routing
Because static routing requires manual configuration, it is most useful
when the number of gateways is limited and where routes do not change
frequently. For information on manually configuring routing, see
Section 4.2.
4.1.2 Dynamic Routing
Complex environments require a more flexible approach to routing than a static routing table provides. Routing protocols distribute information that reflect changing network conditions and update the routing table accordingly. Routing protocols can switch to a backup route when a primary route becomes unavailable and can determine the best route to a given destination.
Dynamic routing tables use information received by means of routing protocol updates; when routes change, the routing protocol provides information about the changes.
Routing daemons implement a routing policy, that is, the set of rules that specify which routes go into the routing table. A routing daemon writes routing messages to a routing socket, causing the kernel to add a new route, delete an existing route, or modify an existing route.
The kernel also generates routing messages that can be read by any routing socket when events occur that may be of interest to the process, for example, the interface has gone down or a redirect has been received.
TCP/IP Services implements two routing daemons: the Routing Daemon
(ROUTED) and the Gateway Routing Daemon (GATED). The following sections
provide more information.
4.1.2.1 Routing Daemon (ROUTED)
This daemon (pronounced route-dee) supports the Routing Information Protocol (RIP). When ROUTED starts, it issues routing update requests then listens for responses. A system configured to supply RIP information responds to the request with an update packet. The update packet contains destination addresses and routing metrics associated with each destination. After receiving a RIP update, the ROUTED uses the information to update its routing table.
To configure dynamic routing with ROUTED, see Section 4.3.
4.1.2.2 Gateway Routing Daemon (GATED)
This daemon (pronounced gate-de) supports interior and exterior gateway protocols. It obtains information from several routing protocols and selects the best routes based on that information. You can configure GATED to use one or more of the protocols described in Table 4-1.
Protocol | RFC | Description |
---|---|---|
Routing Information Protocol (RIP) Versions 1 and 2 | RFC 1058, RFC 1723 | RIP is a commonly used interior protocol that selects the route with the lowest metric (hop count) as the best route. |
Open Shortest Path First (OSPF) Version 2 | RFC 1583 | Another interior routing protocol, OSPF is a link-state protocol (shortest path first) and better suited than RIP for use in complex networks with many routers. |
Exterior Gateway Protocol (EGP) | RFC 904 | EGP exchanges reachability information between autonomous systems. An autonomous system is usually defined as a set of routers under a single administration, using an interior gateway protocol and common metric to route packets. Autonomous systems use exterior routing protocols to route packets to other autonomous systems. |
Border Gateway Protocol (BGP) | RFCs 1163, 1267, 1771 | Like EGP, BGP exchanges reachability information between autonomous systems but supports nonhierarchical topologies. BGP uses path attributes to provide more information about each route. Path attributes can include, for example, administrative preferences based on political, organizational, or security considerations. |
Router Discovery | RFC 1256 | This protocol is used to inform hosts of the availability of routers that it can send packets to, and to supplement a statically configured default router. |
These routing protocols are configured in the GATED configuration file TCPIP$GATED.CONF. This file contains statements that control tracing options, select routing protocols, manage routing information, and manage independent system routing.
For information on configuring dynamic routing with GATED, see
Section 4.4.
4.2 Configuring Static Routes
The first time you run the configuration procedure, TCPIP$CONFIG.COM, static routing is configured automatically. To manually configure static routing, use the CREATE ROUTE command to create an empty routes database file.
The default file name is SYS$COMMON:[SYSEXE]TCPIP$ROUTE.DAT. To specify a different name, define the systemwide logical name TCPIP$ROUTE.
Do not enter the CREATE ROUTE command unless you intend to reconfigure your entire cluster. |
When TCP/IP is sending a packet, it consults the routing table to determine which interface is connected to the destination network. If the packet has a destination network address that is unknown, the packet is sent to the default router. The default route points at the default router. For example, if a router with address 16.20.0.173 is designated to route all packets between the local network and the rest of the world, then the default route can be set with the following command:
$ TCPIP SET ROUTE /DEFAULT /GATEWAY=16.20.0.173 |
If TCP/IP Services is active, this affects the active routes database. To ensure this default route is available next time TCP/IP Services is started, the /PERMANENT qualifier must be used. For example:
$ TCPIP SET ROUTE /DEFAULT /GATEWAY=16.20.0.173 /PERMANENT |
Use the SET NOROUTE command to remove a route.
Or you can define the default route using the route UNIX command. In this case, to ensure the default route is recreated next time TCP/IP Services is started, add the command to SYS$STARTUP:TCPIP$SYSTARTUP.COM. For example, to create the same default route as defined above, use the following UNIX style command:
$ route add default 16.20.0.173 |
To remove the route, enter the following command:
$ route delete default 16.20.0.173 |
To create a static route, use the SET ROUTE command. The command has the following effects:
The SET ROUTE command requires the following information:
HP strongly recommends that you do not specify alias names with the destination parameter or the /GATEWAY=host qualifier.
To define a route to any host on a specific network, enter:
TCPIP> SET ROUTE network_IP_address /GATEWAY="gateway" /NETWORK |
To define a route to a specific host on a specific network, enter:
TCPIP> SET ROUTE remote_host /GATEWAY="gateway" |
TCPIP> SET ROUTE "flamingo" /GATEWAY="francolin" |
TCPIP> SET ROUTE 128.30.0.0 /NETWORK /GATEWAY="francolin" |
TCPIP> SET ROUTE NENE /GATEWAY="bird.of.paradise" |
TCPIP> SET ROUTE "albatross" /GATEWAY="birdygate" /PERMANENT |
TCPIP> SET ROUTE /DEFAULT /GATEWAY=NIGHTINGALE |
To display static routes, use the SHOW ROUTE command. To see the permanent database, specify the /PERMANENT qualifier.
The display shows the following types of routes:
To display a route that was defined by an address, specify either its address or a wildcard.
Some examples of displaying routes are listed below.
TCPIP> SHOW ROUTE /FULL DYNAMIC Type Destination Gateway AN 11.111.0.0 destin_host1 11.110.5.118 gate_host AH 22.111.4.10 destin_host2 22.110.5.120 gate_host_2 |
TCPIP> SHOW ROUTE /PERMANENT PERMANENT Type Destination Gateway PN 0.0.0.0 11.20.208.100 pterodactyl.extinct.com PN 1.1.1.1 22.2.2.2 |
Another way to display route information is by using the netstat UNIX command. For example, to display the routes, and suppress conversion of network numbers to names, enter the following commands:
$ @SYS$MANAGER:TCPIP$DEFINE_COMMANDS.COM $ netstat -rn Routing tables Destination Gateway Flags Refs Use Interface Route Tree for Protocol Family 26: Route Tree for Protocol Family 2: default 16.20.0.173 UG 0 0 WE1 default 16.20.0.173 UG 0 0 WE0 16.20/16 16.20.208.161 U 2 56 WE1 16.20/16 16.20.208.160 U 1 9 WE0 16.20.208.160 16.20.208.160 UHL 0 0 WE0 16.20.208.161 16.20.208.161 UHL 0 0 WE1 127.0.0.1 127.0.0.1 UHL 1 1 LO0 |
This example shows a multihomed host with two interface adapters. For more information about the netstat utility, enter the following command:
TCPIP> HELP NETSTAT |
Previous | Next | Contents | Index |