Operation Procedure
Step 3 Optional: Run set-gy-integrated to configure the PDSN9660 to use only one Gy interface Step 4 Run ocs-info to set the OCS information.
4.10 Commissioning the Data for the Interworking with the OCS
This describes how to commission the data for the interworking with the online charging system (OCS).
When the preceding configuration is complete, you can run the following commands to check the running status or configuration result.
Table 4-3 Displaying the data for the interworking between the PDSN9660 and the OCS
Command Function
display gy-local-info Displays the local information and the service context.
display ocs-info Displays the OCS information.
display current-configuration Displays the current configuration of the interface.
display ip interface Displays the running status of the interface.
display ip routing-table Displays the abstract information about the routing table and information about the route with a specified destination IP address. When some configuration is incorrect or requires modification, you can run the following commands to delete the current configuration and reconfigure the system.
Table 4-4 Deleting the data for the interworking between the PDSN9660 and the OCS
Command Function
undo gy-local-info Deletes the local information and the service context.
undo ocs-info Deletes the OCS information.
undo interface Deletes the configuration of the interface.
shutdown Shuts down the physical interface.
undo ip address Deletes the IP address of the interface.
4.11 Configuration Example
This provides an example of the configuration for the interworking between the PDSN9660 and the online charging system (OCS).
Networking Requirement
The PDSN9660 is connected to the OCS through router B. See Figure 4-2. The PDSN9660 must interwork with the OCS to perform the online charging for the users. Therefore, you must configure the interworking between the PDSN9660 and the OCS.
The Eth-trunk active/standby mode is employed for the networking between the PDSN9660 and the OCS. The Eth-trunk interface and the Gy interface are bound to the same virtual private network (VPN). Packets are forwarded through the default routes of the VPN.
This solution features the following advantages:
l Easy configuration: The solution simplifies the configurations when the PDSN9660
interworks with multiple OCSs.
l Easy management. If the IP addresses or the planning of the OCSs changes, no
configuration change is required on the PDSN9660.
l High security: Network security is enhanced with the configuration of VPN instances. l High reliability: The active/standby mode of the Eth-trunk interface can enhance reliability.
When a member link is faulty, the traffic is automatically switched to an available link.
Figure 4-2 Networking for the interworking between the PDSN9660 and the OCS
Network PDSN9660 Router B OCS gyif7/0/0 10.8.10.1/32 10.3.37.81 10.110.218.59 Eth-trunk 6 10.3.37.94/28
Data Collection
Plan the data as follows.
VPN
Name of the VPN instance vpn_Gy
Router distinguisher (RD) value 600:1 Eth-trunk6
Eth-trunk6 Bound with GigabitEthernet1/0/6 and GigabitEthernet2/0/6
IP address and subnet mask of the Eth-trunk6 interface
10.3.37.94/255.255.255.240 Operating mode of the Eth-trunk6 interface Active/standby mode IP address of the interface on router B that is
connected to the Eth-trunk6 interface
10.3.37.81 Gy interface
Gy interface name gyif7/0/0
IP address and subnet mask of the Gy interface
10.8.10.1/255.255.255.255 Information about the local PDSN9660 and the OCS
Local device ID Group number of the SPU: 7; CPU ID: 0; host name: PDSN; home domain name: isp.com; service context: context; product name: huawei.com
OCS ID Host name: ocs1; home domain name:
isp.com; IP address: 10.110.218.59
Configuration Procedure
1. Create a VPN instance.
<PDSN>system-view
[PDSN]ip vpn-instance vpn_Gy
[PDSN-vpn-instance-vpn_Gy]route-distinguisher 600:1 [PDSN-vpn-instance-vpn_Gy]quit
2. Configure the Eth-trunk6 interface.
[PDSN]interface eth-trunk6 [PDSN-Eth-Trunk6]workmode backup
[PDSN-Eth-Trunk6]description Gy_eth_trunk [PDSN-Eth-Trunk6]ip binding vpn-instance vpn_Gy
[PDSN-Eth-Trunk6]ip address 10.3.37.94 255.255.255.240 [PDSN-Eth-Trunk6]quit
3. Bind the physical interfaces to the Eth-trunk6 interface.
Bind the GigabitEthernet1/0/6 interface to the Eth-trunk6 interface.
[PDSN]interface GigabitEthernet1/0/6 [PDSN-GigabitEthernet1/0/6]eth-trunk 6 [PDSN-GigabitEthernet1/0/6]quit
Bind the GigabitEthernet2/0/6 interface to the Eth-trunk6 interface.
[PDSN]interface GigabitEthernet2/0/6 [PDSN-GigabitEthernet2/0/6]eth-trunk 6 [PDSN-GigabitEthernet2/0/6]quit
# Bind the Gy interface to the VPN instance before configuring the IP address of the interface. Otherwise, the configured IP address is deleted when the binding operation is performed.
[PDSN-Gyif7/0/0]ip binding vpn-instance vpn_Gy
# Set the IP address of the Gy interface to 10.8.10.1 and the subnet mask to 255.255.255.255.
[PDSN-Gyif7/0/0]ip address 10.8.10.1 255.255.255.255 [PDSN-Gyif7/0/0]quit
5. Configure the information about the local PDSN and the OCS. # Enter the charge view.
[PDSN]charge-view
# Configure the local information. The group number of the SPU is 7. The CPU ID is 0. The host name is PDSN. The home domain name is isp.com. The service context is context. The product name is huawei.com.
[PDSN-charge]gy-local-info spu 7 cpu 0 host PDSN realm isp.com service-context context product-name huawei.com
# Add information about the OCS whose IP address is 10.110.218.59. The host name is ocs1. The name of the home domain is isp.com.
[PDSN-charge]ocs-info ocs-host ocs1 realm isp.com ip 10.110.218.59 [PDSN-charge]quit
6. Configure the default route to the OCS. The IP address of the next hop router is 10.3.37.81.
[PDSN]ip route-static vpn-instance vpn_Gy 0.0.0.0 0.0.0.0 10.3.37.81 [PDSN]quit
NOTE
On router B, you need to configure a static route to the PDSN9660. The static route is destined for 10.8.10.1, which is the IP address of the gyif3/0/0 interface on the PDSN9660. The next hop is the Eth-trunk6 interface on the PDSN9660.
7. Save the current configuration.
<PDSN>save
Interworking Test
Run ping to check whether the link to the OCS is normal.
<PDSN>ping -vpn-instance vpn_Gy -a 10.8.10.1 10.110.218.59
NOTE
l If the connection is normal, the number of received packets is displayed. If "timeout" is displayed, the link is abnormal.
l You must specify the IP address of the Gy interface to check whether the connection between the Gy interface and the peer device is normal.