Configuration for Separating N3 and N9 BGP Routes

The following is a sample configuration to separate the N3 and N9 BGP routes for hUPF.


 config
  context SAEGW
    ip vrf mpls-vrf-1
    #exit
    ip vrf mpls-vrf-2
    #exit
    mpls bgp forwarding
    bfd-protocol
    #exit
    ip prefix-list name up seq 15 permit 50.50.17.4/32
    ip prefix-list name up seq 20 permit 50.50.17.5/32
    ip prefix-list name up seq 25 permit 50.50.17.6/32
    ip prefix-list name up seq 40 permit 50.50.17.7/32
    ip prefix-list name n9-up1 seq 50 permit 60.60.17.5/32
    ip prefix-list name n9-up1 seq 55 permit 60.60.17.6/32
    route-map up_routes1 permit 10
      match ip address prefix-list n9-up1
    #exit
    route-map up_routes permit 10
      match ip address prefix-list up
    #exit
    router bgp 61435
      maximum-paths ebgp 4
      neighbor 20.14.35.100 remote-as 65000
      neighbor 20.14.35.100 ebgp-multihop
      neighbor 20.14.35.100 update-source 20.14.35.98
      neighbor 2001:4888:121:1435::1 remote-as 65000
      neighbor 2001:4888:121:1435::1 ebgp-multihop
      neighbor 2001:4888:121:1435::1 update-source 2001:4888:121:1435::2
      neighbor 20.14.40.100 remote-as 65000
      neighbor 20.14.40.100 ebgp-multihop
      neighbor 20.14.40.100 update-source 20.14.40.98
      address-family ipv4
        neighbor 20.14.35.100 max-prefix 8192 threshold 50
        neighbor 20.14.35.100 route-map up_routes out
        neighbor 20.14.35.100 send-community extended
        neighbor 20.14.40.100 max-prefix 8192
        neighbor 20.14.40.100 route-map up_routes1 out
        neighbor 20.14.40.100 send-community extended
        redistribute connected
        redistribute static
      #exit
      address-family ipv6
        neighbor 2001:4888:121:1435::1 activate
        redistribute connected
        redistribute static
      #exit
    #exit
    interface SxC loopback
      ip address 50.50.17.4 255.255.255.255
    #exit
    interface SxC-ipv6 loopback
      ipv6 address 2001:4888:50:50::17/128
    #exit
    interface gn-1
      ip address 20.14.35.98 255.255.255.0
      ipv6 address 2001:4888:121:1435::2/64 secondary
    #exit
    interface gn-2
      ip address 20.14.36.98 255.255.255.0
      ipv6 address 2001:4888:121:1436::2/64 secondary
    #exit
    interface gn-n9-ingress
      ip address 20.14.40.98 255.255.255.0
    #exit
    interface n9-ingress-hupf loopback
      ip address 60.60.17.5 255.255.255.255
    #exit
    interface pgw-gtpu loopback
      ip address 50.50.17.5 255.255.255.255
    #exit
    interface sgw-gtpu-egress loopback
      ip address 50.50.17.6 255.255.255.255
    #exit
    interface sgw-gtpu-ingress-phazr loopback
      ip address 60.60.17.6 255.255.255.255
    #exit
    subscriber default
    exit
    aaa group default
    #exit
    gtpp group default
      gtpp limit-secondary-rat-usage 32
    #exit
    gtpu-service SxC
      echo-interval 60
      echo-retransmission-timeout 1
      bind ipv4-address 50.50.17.4 ipv6-address 2001:4888:50:50::17 bearer-type all
    exit
    gtpu-service n9-ingress
      bind ipv4-address 60.60.17.5 bearer-type all
    exit
    gtpu-service pgw-gtpu
      bind ipv4-address 50.50.17.5 bearer-type all
    exit
    gtpu-service sgw-gtpu-egress
      bind ipv4-address 50.50.17.6 bearer-type all
    exit
    gtpu-service sgw-gtpu-ingress-phazr
      echo-interval 60
      echo-retransmission-timeout 1
      bind ipv4-address 60.60.17.6 bearer-type all
    exit
    sx-service sx-svc
      instance-type userplane
      bind ipv4-address 50.50.17.4 ipv6-address 2001:4888:50:50::17
      sxa max-retransmissions 5
      sxa retransmission-timeout-ms 1000
      sxb max-retransmissions 5
      sxb retransmission-timeout-ms 1000
      sxab max-retransmissions 5
      sxab retransmission-timeout-ms 1000
      sx-protocol heartbeat retransmission-timeout 15
      sx-protocol heartbeat max-retransmissions 3
      sx-protocol association debug-mode debug-reattempt-timeout 1
      no sx-protocol compression
    exit
    user-plane-service user_plane_svc
      associate gtpu-service pgw-gtpu upf-ingress
      associate gtpu-service n9-ingress upf-ingress interface-type n9
      associate gtpu-service sgw-gtpu-ingress-phazr sgw-ingress
      associate gtpu-service sgw-gtpu-egress sgw-egress
      associate gtpu-service SxC cp-tunnel
      associate sx-service sx-svc
      associate fast-path service
      associate control-plane-group SAEGW
      associate userplane-load-control-profile LCP
      associate userplane-overload-control-profile OLCP
    exit

The following is a sample configuration to separate the N3 and N9 BGP routes for vUPF.

context SAEGW
    router bgp 61441
      neighbor 20.14.41.100 remote-as 65000
      neighbor 20.14.41.100 ebgp-multihop
      neighbor 20.14.41.100 update-source 20.14.41.98
      neighbor 2001:4888:121:1441::1 remote-as 65000
      neighbor 2001:4888:121:1441::1 ebgp-multihop
      neighbor 2001:4888:121:1441::1 update-source 2001:4888:121:1441::2
      address-family ipv4
        redistribute connected
        redistribute static
      #exit
      address-family ipv6
        neighbor 2001:4888:121:1441::1 activate
        redistribute connected
        redistribute static
      #exit
    #exit
    interface SxC loopback
      ip address 50.50.18.4 255.255.255.255
    #exit
    interface SxC-ipv6 loopback
      ipv6 address 2001:4888:50:50::18/128
    #exit
    interface gn-1
      ip address 20.14.41.98 255.255.255.0
      ipv6 address 2001:4888:121:1441::2/64 secondary
    #exit
    interface gn-2
      ip address 20.14.42.98 255.255.255.0
      ipv6 address 2001:4888:121:1442::2/64 secondary
    #exit
    interface n9-egress loopback
      ip address 50.50.18.8 255.255.255.255
    #exit
    interface pgw-gtpu loopback
      ip address 50.50.18.5 255.255.255.255
    #exit
    interface pgw-gtpu-ipv6 loopback
      ipv6 address 2001:4888:50:50::18:5/128
    #exit
    interface sgw-gtpu-egress loopback
      ip address 50.50.18.6 255.255.255.255
    #exit
    interface sgw-gtpu-egress-ipv6 loopback
      ipv6 address 2001:4888:50:50::18:6/128
    #exit
    interface sgw-gtpu-ingress-phazr loopback
      ip address 50.50.18.7 255.255.255.255
    #exit
    interface sgw-gtpu-ingress-phazr-ipv6 loopback
      ipv6 address 2001:4888:50:50::18:7/128
    #exit
    subscriber default
    exit
    aaa group default
    #exit
    gtpp group default
      gtpp limit-secondary-rat-usage 32
    #exit
    gtpu-service SxC
      echo-interval 60
      echo-retransmission-timeout 1
      bind ipv4-address 50.50.18.4 ipv6-address 2001:4888:50:50::18 bearer-type all
    exit
    gtpu-service n9-egress
      bind ipv4-address 50.50.18.8 bearer-type all
    exit
    gtpu-service pgw-gtpu
      bind ipv4-address 50.50.18.5 ipv6-address 2001:4888:50:50::18:5 bearer-type all
    exit
    gtpu-service sgw-gtpu-egress
      bind ipv4-address 50.50.18.6 ipv6-address 2001:4888:50:50::18:6 bearer-type all
    exit
    gtpu-service sgw-gtpu-ingress-phazr
      echo-interval 60
      echo-retransmission-timeout 1
      bind ipv4-address 50.50.18.7 ipv6-address 2001:4888:50:50::18:7 bearer-type all
    exit
    sx-service sx-svc
      instance-type userplane
      bind ipv4-address 50.50.18.4 ipv6-address 2001:4888:50:50::18
      sxa max-retransmissions 5
      sxa retransmission-timeout-ms 1000
      sxb max-retransmissions 5
      sxb retransmission-timeout-ms 1000
      sxab max-retransmissions 5
      sxab retransmission-timeout-ms 1000
      sx-protocol heartbeat retransmission-timeout 15
      sx-protocol heartbeat max-retransmissions 3
      sx-protocol association debug-mode debug-reattempt-timeout 1
      no sx-protocol compression
    exit
    user-plane-service user_plane_svc
      associate gtpu-service pgw-gtpu upf-ingress
      associate gtpu-service n9-egress upf-egress
      associate gtpu-service sgw-gtpu-ingress-phazr sgw-ingress
      associate gtpu-service sgw-gtpu-egress sgw-egress
      associate gtpu-service SxC cp-tunnel
      associate sx-service sx-svc
      associate fast-path service
      associate control-plane-group SAEGW
      associate userplane-load-control-profile LCP
      associate userplane-overload-control-profile OLCP
    exit
    ip route 0.0.0.0 0.0.0.0 20.14.41.100 gn-1
    ip igmp profile default
    #exit
  #exit 
Note

For RCM UPF, add all the IP prefix-lists in day 0.5 configuration.