BGP and Route-Domains
We recently licensed the CGNAT module for NAT44. I'm trying to setup two route-domains (rd0 - the default and rd1 - child of rd0), each having one vlan, and advertise routes (LSN pool and a default virtual server 0.0.0.0/0) from these RDs. (Default RD) RD0 will advertise the LSN pool and RD1 will advertise the default virtual server. The advertisements are done using BGP with an upstream router. In CGNAT both pools and virtual servers need to be advertised and both are kernel routes.
So far I've successfully been able to configure BGP in the default RD0 and advertise the LSN pool. I can see the pool prefix being advertised by BGP. Although, I cannot seem to advertise a 0.0.0.0/0 virtual server from RD1. RD1 has the exactly the same BGP config as RD0. And "Route Advertisement" is enabled under "Virtual Server Addresses". This can be something obvious that I'm clearly missing. Would really appreciate any inputs, if anyone has configured their environment in a similar fashion (even if they aren't using the CGNAT module).
LSN Pool:
ltm lsn-pool cgnat_pool {
egress-interfaces {
VLAN_709
}
egress-interfaces-enabled
members {
10.10.64.0/18
}
route-advertisement enabled
}
Virtual Servers:
ltm virtual vs_rd1 {
destination 0.0.0.0%1:any
ip-protocol tcp
mask any
profiles {
fastL4 { }
}
source 0.0.0.0%1/0
source-address-translation {
pool cgnat_pool
type lsn
}
translate-port disabled
vlans {
VLAN_701
}
vlans-enabled
}
Route Domains:
net route-domain 0 {
id 0
routing-protocol {
BFD
OSPFv2
BGP
}
vlans {
http-tunnel
socks-tunnel
VLAN_709
}
}
net route-domain rd1 {
id 1
parent 0
routing-protocol {
OSPFv2
BFD
BGP
}
vlans {
VLAN_701
}
}
BGP Config:
**RD0**
f5CGNAT[0]show run
!
router bgp 64998
bgp router-id 1.1.1.1
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
redistribute kernel
neighbor 198.82.148.116 remote-as 1111
neighbor 192.168.148.116 capability graceful-restart
!
f5CGNAT[0]show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
C 127.0.0.1/32 is directly connected, lo
C 127.1.1.0/24 is directly connected, tmm0
K 10.10.64.0/18 is directly connected, tmm0
C 192.168.148.116/30 is directly connected, VLAN_709
Gateway of last resort is not set
f5CGNAT[0]show ip bgp ==> nat pool getting advertised
BGP table version is 1, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, l - labeled
S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.10.64.0/18 0.0.0.0 32768 ?
Total number of prefixes 1
f5CGNAT[0]
**RD1**
f5CGNAT[1]show run
!
router bgp 64998
bgp router-id 1.1.1.1
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
redistribute kernel
neighbor 172.14.0.4 remote-as 1111
neighbor 172.14.0.4 capability graceful-restart
!
f5CGNAT[1]show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
K* 0.0.0.0/0 is directly connected, tmm0
C 127.0.0.1/32 is directly connected, lo
C 127.1.1.0/24 is directly connected, tmm0
C 172.14.0.4/30 is directly connected, VLAN_701
f5CGNAT[1]show ip bgp ==> virtual server not getting advertised, neighbor relationship is good.
f5CGNAT[1]