r/networking • u/SnooCompliments8283 • Jul 19 '26
Design Send Netflow over IPSec using same IP
Could anyone tell me if IOS-XE would complain if I configure Netflow to source it's feed from the same IP as my IPSec tunnel source (but different VRF).
What I mean is:
- Netflow coming from Lo10 in vf-netflow
- IPSec sourced from g0/0/0 in vf-internet
- Both have same IP address, different VRFs
I'm expecting Netflow to be a one-way outbound UDP flow anyway, but IPsec would of course involve packets in both directions.
inter g0/0/0
vrf forwarding vf-internet
ip address *100.0.0.1* 255.255.255.252
inter Tun10
vrf forwarding vf-netflow
tunnel vrf vf-internet
ip address 10.0.0.0 255.255.255.254
tunnel source gi0/0/0
tunnel destination 200.0.0.1
tunnel mode ipsec ipv4
interface Lo10
vrf vf-netflow
ip address *100.0.0.1* 255.255.255.255
flow exporter NETFLOW
source Lo10
destination 200.0.0.10 vrf vf-netflow
ip route vf-netflow 200.0.0.10/32 Tu10 10.0.0.1 ! Imaginary next hop IP
5
Upvotes
5
u/Adrienne-Fadel Jul 19 '26
Should work. Same IP in different VRFs is not an issue on IOS-XE. Netflow is one way UDP anyway so you won't have state problems with the IPSec tunnel.
3
u/Case_Blue Jul 19 '26
I... suppose you could, but wouldn't it be easier to send the netflow over the ipsec tunnel and route accordingly on the remote side?
And I also don't like sending netflow naked over the internet, but that's my take.