UGW9811 functions as a combined S-GW/P-GW and interworks with the MME/S-GW (on other PLMNs), eNodeB,
AAA server, OM network, CG, OCS server, and PCRF through IP networks.
The UGW9811 functioning as a combined S-GW/P-GW can interwork with the S-GWs on other PLMNs to provide network access for roaming subscribers.

1. Configure a host name.
#
sysname UGW9811
2. Configure an SPU group.
#
spu-group 1
3. Configure SPU instances.
#
spu-instance 1/1
#
spu-instance 1/2
4. Create a VPN instance.
#
ip vpn-instance gagxgy
ipv4-family
route-distinguisher 100:1
ip vpn-instance s1-u
ipv4-family
route-distinguisher 200:1
ip vpn-instance s11
ipv4-family
route-distinguisher 300:1
ip vpn-instance sgi
ipv4-family
route-distinguisher 400:1
ip vpn-instance om
ipv4-family
route-distinguisher 500:1
5. Configuring logical interfaces.
# Configure a group-level Gi interface.
#
interface Giif1/0/0
ip binding vpn-instance sgi
ip address 10.9.82.161 255.255.255.255
# Configure a group-level Ga interface.
#
interface Gaif1/0/0
ip binding vpn-instance gagxgy
ip address 10.8.9.177 255.255.255.255
# Configure a group-level Gy interface.
#
interface Gyif1/0/0
ip binding vpn-instance gagxgy
ip address 10.8.5.113 255.255.255.255
# Configure an instance-level S5-s interface.
#
interface S5-sif1/1/0
ip binding vpn-instance s11
ip address 3.1.118.209 255.255.255.255
#
interface S5-sif1/2/0
ip binding vpn-instance s11
ip address 3.1.118.210 255.255.255.255
# Configure a group-level Gx interface.
#
interface Gxif1/0/0
ip binding vpn-instance gagxgy
ip address 10.8.5.177 255.255.255.255
# Configure an instance-level S1-u interface.
#
interface S1-uif1/1/0
ip binding vpn-instance s1-u
ip address 10.9.82.81 255.255.255.255
#
interface S1-uif1/2/0
ip binding vpn-instance s1-u
ip address 10.9.82.82 255.255.255.255
# Configure a group-level Sa abstract interface and an instance-level Sa abstract interface.
#
interface Saif1/0/0
ip binding vpn-instance s11
ip address 10.9.82.97 255.255.255.255
#
interface Saif1/1/0
ip binding vpn-instance s11
ip address 10.9.82.98 255.255.255.255
#
interface Saif1/2/0
ip binding vpn-instance s11
ip address 10.9.82.99 255.255.255.255
# Configure a group-level Pa abstract interface and an instance-level Pa abstract interface.
#
interface Paif1/0/0
ip binding vpn-instance s11
ip address 3.1.118.241 255.255.255.255
#
interface Paif1/1/0
ip binding vpn-instance s11
interface Paif1/2/0
ip binding vpn-instance s11
ip address 3.1.118.243 255.255.255.255
6. Configure physical interfaces.
# Configure a physical interface to the OM network.
#
interface Eth-Trunk0
workmode lacp-static
description OM_trunk
max active-linknumber 2
ip binding vpn-instance om
ip address 10.3.100.76 255.255.255.224
#
interface GigabitEthernet1/0/0
undo shutdown
eth-trunk 0
#
interface GigabitEthernet2/0/0
undo shutdown
eth-trunk 0
# Configure physical interfaces to the CG, OCS server, and PCRF.
#
interface Eth-Trunk2
workmode lacp-static
description Ga&Gx&Gy_trunk
max active-linknumber 2
ip binding vpn-instance gagxgy
ip address 10.8.9.44 255.255.255.240
#
interface GigabitEthernet1/0/2
undo shutdown
eth-trunk 2
#
interface GigabitEthernet2/0/2
undo shutdown
eth-trunk 2
# Configure physical interfaces to the MME/S-GW.
#
interface Eth-Trunk4
workmode lacp-static
description s11_trunk
max active-linknumber 2
ip binding vpn-instance s11
ip address 10.9.82.118 255.255.255.252
ospf cost 200
ospf dr-priority 0
#
interface GigabitEthernet1/0/4
undo shutdown
eth-trunk 4
#
interface GigabitEthernet2/0/4
undo shutdown
eth-trunk 4
# Configure a physical interface to the eNodeB.
#
interface Eth-Trunk6
workmode lacp-static
description s1-u_trunk
max active-linknumber 2
ip binding vpn-instance s1-u
ip address 10.9.82.55 255.255.255.252
ospf cost 200
ospf dr-priority 0
#
interface GigabitEthernet1/0/6
undo shutdown
eth-trunk 6
#
interface GigabitEthernet2/0/6
undo shutdown
eth-trunk 6
# Configure physical interfaces to the AAA server and a PDN.
#
interface Eth-Trunk8
workmode backup
description sgi_trunk
max active-linknumber 2
ip binding vpn-instance sgi
ip address 10.9.82.148 255.255.255.252
ospf cost 200
ospf dr-priority 0
#
interface GigabitEthernet3/1/0
undo shutdown
eth-trunk 8
#
7. Configure dynamic routes.
# Configure a dynamic route to the eNodeB.
#
ospf 1 router-id 10.9.82.81 vpn-instance s1-u
vpn-instance-capability simple
area 0.0.0.1
nssa
authentication-mode md5 1 plain LTE
network 10.9.82.48 0.0.0.15
network 10.9.82.81 0.0.0.0
network 10.9.82.82 0.0.0.0
# Configure dynamic routes to the MME and S-GW (on other PLMNs).
#
ospf 3 router-id 10.9.82.97 vpn-instance s11
vpn-instance-capability simple
area 0.0.0.2
nssa
authentication-mode md5 1 plain LTE
network 10.9.82.112 0.0.0.15
network 10.9.82.97 0.0.0.0
network 10.9.82.98 0.0.0.0
network 10.9.82.99 0.0.0.0
network 3.1.118.241 0.0.0.0
network 3.1.118.242 0.0.0.0
network 3.1.118.243 0.0.0.0
# Configure routing policies.
#
route-policy wlr2ospf permit node 10
if-match route-type wlr_bh
# Configure routes to the AAA server and a PDN.
#
ospf 2 router-id 10.9.82.161 vpn-instance sgi
import-route static
import-route wlr cost 200 route-policy wlr2ospf
vpn-instance-capability simple
area 0.0.0.3
nssa
authentication-mode md5 1 plain LTE
network 10.9.82.144 0.0.0.7
network 10.9.82.161 0.0.0.0
8. Configure static routes.
#
ip route-static vpn-instance gagxgy 0.0.0.0 0.0.0.0 10.8.9.33
ip route-static vpn-instance om 0.0.0.0 0.0.0.0 10.3.100.65
9. Configure an address pool.
#
ip pool internetpool local ipv4
vpn-instance sgi
section 0 10.16.0.1 10.16.127.254
section 1 10.16.128.1 10.16.255.254
10. Configure binding relationships for service control.
#
user-profile internet_1
rule-binding rule_3 priority 10
rule-binding rule_4 priority 20
rule-binding rule_5 priority 23
rule-binding rule_6 priority 40
rule-binding rule_2 priority 100
charge-method online disable offline enable
charge-characteristic postpay
charge-property-binding service-charge-property cp_2 signaling-charge-property cp_2
dcc-binding dcc_1
user-profile internet_2
rule-binding rule_1 priority 70
rule-binding rule_2 priority 100
charge-method online disable offline enable
charge-characteristic postpay
charge-property-binding service-charge-property cp_2 signaling-charge-property cp_2
dcc-binding dcc_2
#
user-profile-binding user-profile-group upg_internet user-profile internet_2 priority 10 roaming roaming
user-profile-binding user-profile-group upg_internet user-profile internet_1
11. Configure an APN.
#
apn internet
vpn-instance sgi
access-mode non-transparent authentication-mode msisdn authentication-password simple password pco-priority disable
common-user ugw commonuser-password ugw
address-allocate ipv4 local radius-prior disable ipv6 local radius-prior disable
roaming-user-access sgw enable visiting-user-access sgw disable
roaming-user-access ggsn-pgw enable visiting-user-access ggsn-pgw disable
session-timeout enable length 1500
idle-timeout enable length 120 updatemsg disable
radius-server group radiusgroup copy-interim-update disable
address-pool internetpool
offline-charge-binding pgw oct sgw oct
radius threshold time-threshold 30 volume-threshold 10000
charge-method online enable offline enable
pcc-switch enable
user-profile-group-binding upg_internet
l. Configure global DNS information.
#
access-view
defdns priority ipv4 first radius second local third dhcp
defdns ipv4 primary-ip 11.1.244.197 secondary-ip 11.1.244.205
m. Configure a Network Time Protocol (NTP) server.
#
ntp-service unicast-server 10.3.1.229 vpn-instance om source-interface Eth-Trunk0 preference
ntp-service unicast-server 10.3.1.230 vpn-instance om source-interface Eth-Trunk0 preference
Thanks



