Operation Procedure
Step 2 Optional: Run ip binding vpn-instance to bind the interface to the specific VPN instance Step 3 Run ip address to set the IP address of the Gy interface.
NOTE
When the IP address of the Gy interface is set, the subnet mask must be 255.255.255.255.
4.7 Configuring the Static Route to the OCS
This describes how to configure the static route to realize the interworking between the PDSN9660 and the online charging system (OCS) at the network layer.
Context
A static routing mode is applicable to a small stable network with simple topology.
Configuration Principle
l When the destination IP address and the mask are both 0.0.0.0, the configured route is the
default route. If the PDSN9660 cannot find a route in the routing table, the default route is employed for packet forwarding.
l When configure a static route, usually specify the next hop address. For an interface-to-
interface static route, you can specify the outbound interface.
Data Planning
No. Data
1 IP address and subnet mask of the OCS
2 IP address of the interface of the next hop
router or the firewall to the OCS
Procedure
Step 1 Run ip route-static to configure a static route.
Step 2 Optional: If the VPN networking is employed, you must specify the VPN instance of the static
route. Run ip route-static vpn-instance to configure the static route for the VPN instance. NOTE
l The destination address of the static route is the address of the network segment to which the OCS belongs. The next hop address is the address of the router or firewall that the PDSN9660 connects.
l If there are multiple OCSs and they are not located in the same network segment, a static route must be configured for each OCS.
CAUTION
On the next hop router or firewall, you must configure the static route to the PDSN9660. The destination address of the static route is the address of the Gy interface on the PDSN9660. The next hop address is the address of the physical interface on the PDSN9660 used for interworking with the OCS, or the next hop address can be the address of the Eth-trunk interface when
4.8 Configuring the Dynamic Route to the OCS
You can configure a dynamic route for the interworking between the PDSN9660 and the online charging system (OCS) at the network layer.
Context
The PDSN9660 supports static route configuration as well as dynamic routing protocols such as the Routing Information Protocol (RIP), OSPF, Intermediate System to Intermediate System (IS-IS), and Border Gateway Protocol (BGP). A dynamic routing mode is applicable for a network with complex topology and a certain number of Layer 3 devices. The dynamic routing can automatically adapt to changes in network topology. If you plan to employ a dynamic routing protocol such as RIP, OSPF, IS-IS, and BGP, the PDSN9660 must support the protocol. Take OSPF as an example to describe the concepts and configurations of an OSPF dynamic route.
Table 4-2 Concepts of the OSPF dynamic routing mode
Concept Description
OSPF process number
When you start multiple OSPF processes on the PDSN9660, you must specify different process numbers. The OSPF process number is a local concept and it does not affect packet exchange between the PDSN9660 and other routers. Therefore, routers can exchange packets regardless of process numbers.
Router ID A router ID is required for a router to employ the OSPF protocol. A router ID is a 32-bit unsigned integer. It identifies a router in an autonomous system.
You can manually set a router ID. Generally, the router ID is set to the IP address of an interface on the router.
If you do not specify the router ID, the system automatically selects an IP address of the existing interfaces as the router ID. The highest IP address of loopback interfaces is selected as the router ID. If no loopback interface is configured, the highest IP address of the interfaces is selected as the router ID.
Area You must specify an area to which an interface running OSPF belongs. Different OSPF processes can share an area. For example, area 0 can be used by both OSPF 1 and OSPF 2.
Area
authentication
OSPF supports packet authentication. Only the authenticated OSPF packets can be received; otherwise, the neighbor relation cannot be established normally.
All the routers in an area must employ the same area authentication mode and password.
Concept Description
OSPF network segment
The network segment refers to the network segment of the IP addresses of the interface that runs OSPF. A network segment can belong to only one area. That is, you must specify the area for each interface running OSPF. OSPF can be run on an interface only when the following conditions are satisfied:
l The length of the subnet mask of an interface is not shorter than that
specified by using network.
l The primary IP address of an interface must be in the range of the
network segment specified by using network.
DR priority When configuring broadcast networks or non-broadcast multiple access (NBMA) networks, you can specify the designated router (DR) priorities of interfaces to determine the DR/backup designated router (BDR) election in the network. A larger value indicates a higher priority. A router with the priority 0 cannot be elected as the DR or BDR.
Configuration Principle
The principles for configuring an OSPF dynamic route are as follows:
l If a virtual private network (VPN) instance is specified for the OSPF process, you must run
vpn-instance-capability simple to directly calculate the route instead of conducting the
routing loop detection.
l To deliver other static routes to the routers on the backbone network, you must run import-
route to import routes that are learned from other protocols.
Data Planning
No. Data
1 OSPF process number and router ID or the name of the VPN instance. If the OSPF process is to be bound to a VPN instance, plan the name of the VPN instance. 2 OSPF area, authentication mode, and authentication key
3 Network segment and wildcard mask of an OSPF area
To facilitate future network expansion, you can configure a network segment containing multiple IP addresses for both the physical and logical interfaces. Thus, no further configuration is required when new interfaces are added. The wildcard mask is the inverse of the mask of an IP address. That is, the wildcard mask can be obtained by changing 0 in the mask to 1 and 1 to 0. Here, 1 indicates that this bit in the IP address can be ignored and 0 indicates that this bit must be reserved.
Step 2 Run interface to enter the interface view.
Step 3 Run ospf cost to set the cost values of the OSPF interfaces.
NOTE
If the cost values for the OSPF interfaces are the same, the load of data transmission is shared among multiple links. If the cost values are different, only the active route with the highest priority is employed to transmit data, thus realizing route redundancy.
Step 4 Run ospf dr-priority to set the DR priorities of the OSPF interfaces.