Setting Up IP Routing for WAN Links
This chapter describes how to configure a RADIUS user profile for IP routing connections, and how to set up static IP routes. The chapter is divided into the following sections:
Before you begin
This section describes the tasks you must perform at the configuration interface and in RADIUS before you begin this chapter. Preliminary MAX TNT tasks
Before you set up IP routing in RADIUS, you must set up the MAX TNT as a router.
If you set Must-Accept-Address-Assign=No, the MAX TNT accepts the IP address the caller specifies.
Introducing IP routing
The MAX TNT supports IP routing over PPP, MP, MP+, raw TCP, and Frame Relay connections. You can configure IP routing along with IPX routing.
Types of IP routes
The sections that follow describe the kinds of routes the MAX TNT uses. Static routes
A static route is a path, from one network to another, that specifies:
If it does not find a match for the packet's destination address, it looks for a default route (destination address 0.0.0.0). If it finds a default route, it brings up the required connection (if necessary) and forwards the packet. If the routing table has no default route and no route that matches a packet's destination address, the MAX TNT drops the packet.
Overview of IP-routing configuration tasks
For all IP routing connections, you must:
Enabling IP routing
By default, IP routing is enabled for all user profiles. If you have disabled IP routing, you can re-enable it by setting Ascend-Route-IP=Route-IP-Yes in a user profile.
Specifying a caller's IP address
RADIUS authenticates an incoming call by matching its IP address to one you specify in the RADIUS user profile. To specify the caller's IP address, set the Framed-Address attribute, and optionally, the Framed-Netmask attribute. The settings you specify depend upon whether the remote device is a dial-in PPP host or an IP router.
When the remote device is a dial-in PPP host
When a device connecting to the MAX TNT is a host running PPP dial-in software, the MAX TNT adds a host route to its routing table and functions as an IP router between its local and WAN interfaces. A host route is an IP address with a subnet mask of 255.255.255.255. It represents a single host rather than a remote router. A host route connection enables the dial-in host to keep its own IP address when logging into the MAX TNT IP network. Example of configuring a host connection with a static IP address
In Figure 9-1, the PC is running PPP software and the TCP/IP stack and has an ISDN modem card. If a PC user telecommutes to one IP network and uses an ISP on another IP network, one of those connections can assign an IP address and the other can configure a host route to the PC.
Figure 9-1. Dial-in user requiring a static IP address (a host route)
Username=EmmaIn this example, you would set up the RADIUS user profile as follows:
Accept Assigned IP=N/A (or No)
IP address=10.8.9.10
Netmask=255.255.255.255
Default Gateway=N/A (or None)
Name Server=10.7.7.1
Domain suffix=abc.com
VAN Jacobsen compression ON
Emma Password="m2dan", User-Service=Framed-User
Framed-Protocol=PPP,
Ascend-Route-IP=Route-IP-Yes,
Framed-Address=10.8.9.10,
Framed-Netmask=255.255.255.255,
Framed-Routing=None,
Framed-Compression=Van-Jacobson-TCP-IP,
Ascend-Idle-Limit=20
Figure 9-2. A router-to-router IP connection
PipelineB Password="m2dan", User-Service=Framed-User
Framed-Protocol=PPP,
Ascend-Route-IP=Route-IP-Yes,
Framed-Address=10.7.8.200,
Framed-Netmask=255.255.252.0,
Framed-Routing=Broadcast,
Framed-Compression=Van-Jacobson-TCP-IP,
Ascend-Idle-Limit=20
Specifying whether RIP sends and receives updates
You can specify whether RIP sends routing-table updates, receives updates, or both. If you enable RIP to both send and receive RIP updates on the WAN interface, the MAX TNT broadcasts its routing table to the remote network and listens for RIP updates from that network. Gradually, all routers on both networks have consistent routing tables (all of which can become quite large). Setting the Framed-Routing attribute
To specify RIP behavior for the profile, set the Framed-Routing attribute. You can specify one of the values listed in Table 9-2.
Special considerations
Because routers send RIP updates every 30 seconds, and RIP traffic resets the idle timer, WAN connections that use RIP never disconnect unless you carry out one of the following tasks:
Figure 9-3. Enabling RIP to send and receive updates
Emma Password="m2dan", User-Service=Framed-User
Framed-Protocol=PPP,
Ascend-Route-IP=Route-IP-Yes,
Framed-Address=10.8.9.10,
Framed-Netmask=255.255.255.255,
Framed-Routing=Broadcast-Listen-v2,
Framed-Compression=Van-Jacobson-TCP-IP,
Ascend-Idle-Limit=20
Requiring that a caller accept an IP address
You have the option of requiring a caller to accept an IP address from the MAX TNT. The address can be static or dynamic. First, you must set the following parameters at the MAX TNT configuration interface:
Defining a pool of addresses for dynamic assignment
When the device connecting to the MAX TNT is a host running PPP dial-in software, the MAX TNT adds a host route to its routing table. If the host belongs to its own IP network, the MAX TNT must have a Connection profile or RADIUS user profile stating the host's address and assigning it a 32-bit subnet mask. If the host does not belong to an IP network, the MAX TNT can add it to the local IP network by assigning a local address from a designated pool of addresses. You can designate a pool of addresses on the MAX TNT or in RADIUS. Introducing IP address pools
A pool is a range of contiguous IP addresses on your local network. The MAX TNT chooses an address from a pool and assigns it to an incoming call when Assign-Address=Yes, or when the calling station requests an address assignment. Assigning an address to a device is called performing dynamic IP. Dynamic IP can apply when the calling end is a station. However, if the calling end is a router, that router usually rejects attempts to perform dynamic IP.
Overview of attributes for IP address pools
Table 9-3 lists the attributes you use for setting up IP address pools.
Configuring IP address pools
To define a pool of IP addresses, you must create a pseudo-user profile that contains the IP address pool definitions. To perform this task:
pools-name Password="ascend", User-Service=Dialout-Framed-Userwhere name is the system name of the MAX TNT (the name specified by the Name parameter in the System profile).
Ascend-IP-Pool-Definition="num first_ipaddr max_entries"Table 9-4 describes each Ascend-IP-Pool-Definition argument.
Specifying an IP address pool in a RADIUS user profile
In each RADIUS user profile requiring dynamic addressing for dial-in users, set the Ascend-Assign-IP-Pool attribute to specify the address pool from which RADIUS should assign each user an address. If you set Ascend-Assign-IP-Pool=0, RADIUS chooses an address from any pool that has one available. Example of configuring IP address pools
Figure 9-4 shows a MAX TNT connected to a dial-in host with a modem and PPP software. The remote host requests a dynamic IP address, and the MAX TNT provides one.
Figure 9-4. An IP routing connection with a dial-in host requiring dynamic IP addressing
pools-MAXTNT Password="ascend", User-Service=Dialout-Framed-UserIn the user profile, you configure the host to request an address from address pool #1:
Ascend-IP-Pool-Definition="1 10.1.0.1 7",
Ascend-IP-Pool-Definition="2 10.2.0.1 48"
Emma Password="m2dan", User-Service=Framed-User
Framed-Protocol=PPP,
Ascend-Route-IP=Route-IP-Yes,
Ascend-Metric=2,
Framed-Routing=None,
Ascend-Assign-IP-Pool=1
Setting up IP redirection
You can configure a RADIUS user profile to automatically redirect incoming IP packets to a host you specify on the local IP network. When you specify IP redirection, the MAX TNT bypasses all internal routing tables, and simply sends all packets it receives on a connection's WAN interface to the specified IP address. IP redirection does not affect outbound packets.
Ascend-IP-Direct connections typically turn off RIP. If you configure the connection to receive RIP, the MAX TNT keeps all RIP packets it receives from the remote end and forwards them to the IP address you specify.
Example of configuring IP redirection
The following example shows IP redirection for a PPP link. In Figure 9-5, the MAX TNT redirects incoming packets from Emma to router A on the LAN side of the MAX TNT.
Figure 9-5. Directing incoming IP packets to one local host
Emma Password="m2dan", User-Service=Framed-User
Framed-Protocol=PPP,
Framed-Address=10.8.9.10,
Framed-Netmask=255.255.252.0,
Ascend-Route-IP=Route-IP-Yes,
Ascend-IP-Direct=10.2.3.11,
Ascend-Metric=2,
Framed-Routing=None
Setting up access to specific DNS servers
Domain Name Service (DNS) is a TCP/IP service for centralized management of address resolution. Service providers can maintain multiple DNS servers, each one dedicated to a particular client or location. For security reasons, it might be important to ensure that connections are always directed to the correct DNS service. With per-connection DNS access, a service provider can direct specific users to the DNS server appropriate to their service or location. What is client DNS?
Client DNS enables the MAX TNT to direct incoming connections to DNS servers belonging to a particular location or customer, and to prevent those users from accessing local DNS servers. The addresses configured for client DNS servers are presented to WAN connections during IPCP negotiation.
Specifying DNS servers in a RADIUS user profile
To specify DNS servers in a RADIUS user profile:
Figure 9-6. Accessing DNS servers
Emma Password="m2dan", User-Service=Framed-User
Framed-Protocol=PPP,
Framed-Address=11.8.9.10,
Framed-Netmask=255.255.252.0,
Ascend-Route-IP=Route-IP-Yes,
Ascend-Client-Assign-DNS=DNS-Assign-Yes,
Ascend-Client-Primary-DNS=10.8.9.20
Ascend-Client-Secondary-DNS=10.8.9.21
Setting up default routes on a per-user basis
In each RADIUS user profile, you can specify the default route for IP packets coming from the user. The MAX TNT uses the per-user default under the following circumstances:
The default value is 0.0.0.0. If you accept this value, the Ascend unit routes packets as the routing table specifies, using the system-wide default route if it cannot find a more specific route.
The per-user default route applies to all packets the MAX TNT receives for a given profile, regardless of the specific IP source address. Therefore, you can use this feature when the profile belongs to another router, and all hosts behind that router use the default gateway. The MAX TNT handles packets from other users or from the Ethernet network in the usual fashion. The global routing table is not altered. Therefore, when you diagnose routing problems with a profile that implements this feature, an error in a per-user gateway address is not apparent from inspection of the global routing table.
Figure 9-7. Using a default route
Emma Password="m2dan", User-Service=Framed-UserIP packets from the user Berkeley, with destinations through the default route, go through the router at 10.0.0.3.
Framed-Protocol=PPP,
Framed-Address=11.8.9.10,
Framed-Netmask=255.255.252.0,
Ascend-Route-IP=Route-IP-Yes,
Ascend-Client-Gateway=10.0.0.3
Setting up static IP routes
A static route is a path from one network to another. The path specifies the destination network and the router the data uses to get to that network. For routes that must be reliable, you can configure more than one path. In this case, the MAX TNT uses an assigned metric to choose the route.r
in the flags column to indicate that the route came from RADIUS. Furthermore, the route with a metric of 10 remains in the routing table, with an asterisk (*) in the flags column, indicating that it is a hidden route. Overview of static-route configuration tasks
In RADIUS, you can create a static route:
If you configure the MAX TNT with a subnet address on a backbone network (using the IP-Address parameter in the MAX TNT unit's IP-Interface profile), you must set up a static route to the backbone router on the main network. If you do not, the MAX TNT can only see the subnets to which it is directly connected.
You cannot create static routes for IP addresses the MAX TNT dynamically assigns, because the actual route to those addresses changes with each dynamic assignment.
To set up static IP routes in a RADIUS pseudo-user profile, you must perform the following tasks:
For a unit-specific IP dialout route, specify the first line of a pseudo-user profile in the following format:
route-name-num Password="ascend", User-Service=Dialout-Framed-UserFor a global IP dialout route, specify the first line of a pseudo-user profile in the following format:
route-num Password="ascend", User-Service=Dialout-Framed-UserThe name argument is the system name of the MAX TNT (the name specified by the Name parameter in the System profile), and the num argument is a number in a sequential series, starting at 1.
Framed-Route="host_ipaddr [/subnet_mask] router_ipaddr metricThe MAX TNT fetches information from each pseudo-user profile in order to initialize its routing table. Table 9-6 describes each Framed-Route argument.
[private] [profile_name]"
How RADIUS adds static IP routes to the routing table
Whenever you power on or reset the MAX TNT, RADIUS adds IP dialout routes to the routing table as follows:
route-
name-1
, where name is the
system name.
route-
num.
Figure 9-8. A two-hop connection that requires a static route when RIP is off
route-1 Password="ascend", User-Service=Dialout-Framed-User
Framed-Route="10.4.5.0/22 10.9.8.10 1 n inu-out"
To create a multipath route, set up two or more routes by following the steps in Configuring static IP routes in a pseudo-user profile. Each Framed-Route specification must indicate the same value for host_ipaddr, subnet_mask, and metric, but a different value for router_ipaddr.
Example of configuring a multipath static route
In Figure 9-9, the MAX TNT uses a multipath route to reach the network at 10.4.5.0/22.
Figure 9-9. A connection that uses a multipath static route
route-1 Password="ascend", User-Service=Dialout-Framed-User
Framed-Route="10.4.5.0/22 10.9.8.10 1 n inu-out",
Framed-Route="10.4.5.0/22 10.9.8.11 1 n inu-out",
Framed-Route="10.4.5.0/22 10.9.8.12 1 n inu-out"
Every RADIUS user profile containing a Framed-Address setting specifies a static route.
In addition, suppose you wish to update the MAX TNT unit's routing tables each time it connects to a user whose profile specifies User-Service=Framed-User. In this case, you can set the Framed-Route attribute in an incoming user profile to specify the user's IP address and subnet mask with the host_ipaddr and subnet_mask arguments, respectively. The route you specify in this manner exists only during the time the call is online. However, when you enter a nonzero router address for the router_ipaddr argument, and it is different from the caller's address, the static route of a dial-in framed-user persists even after the connection goes offline.
Summarizing host routes in an IP address pool
By default, the MAX TNT adds dynamically assigned IP addresses to the routing table as individual host routes. However, to reduce the size of routing table advertisements, you can summarize the entire pool. When you do so, the router advertises a single route for the network you define in an address pool, rather than an individual host route for each address. The MAX TNT routes packets to a valid host address, and rejects packets with an invalid host address.
First, make sure that the first address in the pool is the first host address. The first_ipaddr argument specifies the first IP address in the pool. Subtracting 1 (one) from the first_ipaddr value yields the network alignment (the zero address on the subnet).
Ascend-IP-Pool-Definition="1 10.12.253.1 62"Because first_ipaddr=10.12.253.1, the network alignment address is 10.12.253.0 (first_ipaddr - 1). Moreover, because max_entries=62, you must specify a subnet mask for 64 addresses (max_entries + 2). The subnet mask for 64 addresses is 255.255.255.192 (256-64=192). The Ascend notation for a 255.255.255.192 subnet mask is
The resulting address-pool network is 10.12.253.0/26. This address and subnet mask become the first values you specify for the Framed-Route attribute in Setting the Framed-Route attribute.
Configuring the static route for each summarized address pool
In a pseudo-user profile, you must set the Framed-Route attribute to create a static IP route to each summarized network. This section provides guidelines for specifying the router in the static route configuration, and describes how to set each argument of the Framed-Route attribute.
Guidelines for specifying the router
Because the MAX TNT creates a host route for every address assigned from the pools, and because host routes override subnet routes, the MAX TNT correctly routes packets whose destination matches an assigned IP address from the pool. However, because the MAX TNT advertises the entire pool as a route, and only knows privately which IP addresses in the pool are active, a remote network might improperly send the MAX TNT a packet with an inactive IP address. If your router is to handle packets with destinations to invalid hosts on the summarized network, the router you specify must be one of the internal interfaces listed in Table 9-7.
Setting the Framed-Route attribute
The Framed-Route attribute has the following format:
Framed-Route="host_ipaddr[/subnet_mask] router_ipaddr metricFor each Framed-Route attribute:
[private] [profile_name]"
Framed-Route="10.12.253.0/26 127.0.0.2 0 n Summary"
Setting up an interface-based IP routing connection
In some situations, it is useful to number some of the MAX TNT unit's interfaces, enabling the MAX TNT to operate partially as a system-based router and partially as an interface-based router. Reasons for using numbered interfaces include troubleshooting nailed-up point-to-point connections and forcing routing decisions between two links going to the same final destination. More generally, interface-based routing allows the MAX TNT to operate more as a multihomed Internet host behaves. Special considerations
In system-based routing, each interface that supports TCP/IP has an IP address. The system routes traffic to and from the interface based on the destination address in packets. In interface-based routing, each side of the connection is assigned a unique address that applies only to the connection. Assignment of a unique address is a requirement for some applications, such as SNMP. Interface-based routing operations have the following special features:
To configure an interface-based routing connection, proceed as follows
Note: Ascend-IF-Addr cannot be an address assigned in an IP-Interface profile to one of
the MAX TNT unit's real, physical LAN interfaces. Assigning one of the MAX TNT IP
addresses will cause routing problems.
Figure 9-10. Configuring an interface-based IP routing connection
Emma Password="m2dan", User-Service=Framed-User
Framed-Protocol=PPP,
Ascend-Route-IP=Route-IP-Yes,
Ascend-Remote-Addr=11.123.4.5,
Ascend-IF-Addr=10.9.1.212,
Ascend-IF-Netmask=255.255.255.0,
Framed-Routing=None,
Framed-Compression=Van-Jacobson-TCP-IP,
Ascend-Idle-Limit=20
Setting up IP multicast forwarding
The MAX TNT implements Internet Group Membership Protocol (IGMP) version-1 and version-2, along with configuration options that enable the MAX TNT to communicate with multicast backbone (MBONE) routers and to forward multicast traffic. What is the MBONE?
The MBONE is a virtual network layered on top of the Internet to support IP multicast routing across point-to-point links. It is used for transmitting audio and video on the Internet in real-time, because multicasting is a much cheaper and faster way to communicate the same information to multiple hosts. What is a multicast network?
A multicast network is a network in which a router sends packets to all addresses on a subscriber list. This type of network is different from both a unicast network (in which the router sends packets to one user at a time) and a broadcast network (in which the router sends packets to all users, whether they appear on subscription lists or not). The MBONE is a virtual network that actually consists of groups of networks called islands. The islands are connected by tunnels and support IP. How does the MAX TNT interact with the MBONE?
The MBONE router can reside on the MAX TNT unit's Ethernet interface or across a WAN link. If the router resides across a WAN link, the MAX TNT can respond to multicast clients on its Ethernet interface as well as across the WAN. Figure 9-11 shows an MBONE router on the MAX TNT unit's WAN interface, and several WAN multicast clients. The MAX TNT accesses the MBONE network and starts receiving the MBONE multicasts. It resends the multicast packets to all of its own clients connected to it for MBONE service. The clients wanting MBONE service must implement IGMP.
Figure 9-11. MBONE configuration
Configuring multicast forwarding attributes
To configure multicast forwarding in RADIUS, use the attributes listed in Table 9-9.
To configure multicast forwarding:
Figure 9-12. Using IP multicast forwarding for WAN clients
VAT-1 Password="vat1", User-Service=Framed-User
Framed-Protocol=PPP,
Framed-Address=11.8.9.10,
Framed-Netmask=255.255.252.0,
Ascend-Route-IP=Route-IP-Yes,
Ascend-Multicast-Client=Multicast-Yes,
Ascend-Multicast-GRP-Leave-Delay=15,
Ascend-Multicast-Rate-Limit=5
Win-1 Password="win1", User-Service=Framed-User
Framed-Protocol=PPP,
Framed-Address=11.8.9.11,
Framed-Netmask=255.255.252.0,
Ascend-Route-IP=Route-IP-Yes,
Ascend-Multicast-Client=Multicast-Yes,
Ascend-Multicast-GRP-Leave-Delay=15,
Ascend-Multicast-Rate-Limit=5
Win-2 Password="win2", User-Service=Framed-User
Framed-Protocol=PPP,
Framed-Address=11.8.9.12,
Framed-Netmask=255.255.252.0,
Ascend-Route-IP=Route-IP-Yes,
Ascend-Multicast-Client=Multicast-Yes,
Ascend-Multicast-GRP-Leave-Delay=15,
Ascend-Multicast-Rate-Limit=5
Copyright © 1998, Ascend Communications, Inc. All rights reserved.