Hello
In need of a little help understanding this, ive been looking at a few threads etc, ended up couldn't get it to advertise to opnsense. i then reinstalled proxmox and have got this far lol.
I wanted the evpn vnets to get internet through opnsense host so bgp from proxmox to opnsense to learn routes.
Proxmox SDN: Single PVE Node, Adding 2nd and 3rd Node After.
Fabrics:
OSPF - 10.0.23.0/24
Area - 0.0.0.0
Controllers:
EVPN Controller - 65553, SDN Fabric OSPF
BGP Controller - ASN 65553, Peers=10.0.24.1, EBGP Ticked
Zones: EVPN Zone (ProdNet)
VRF-VXLAN Tag=1000
Exit Nodes (Node Name)
Primary Exit Node (Node Name)
I tried originally with local node routing and advertise subnets ticked under the assumption that advertise subnets meant advertise evpn vnets into bgp controller to opnsense but this seems wrong?
Local node routing for routing between evpn vnets.
With local node routing and advertise subnets i have no internet in a vm on the vnet and can ping 1.1.1.1 but not google,com.
With them both unticked i can ping both and get to internet sites from a fedora vm.
opnsense has a vlan 24 (Transit-PVE)
opnsense has firewall rule on transit-pve to any
opnsense has nat outbound set to hybrid and a rule for
Interface: WAN
Source: 10.10.10.0/24
NAT Address: Interface Address
Questions:
why does advertise subnets seem to not change anything?
Why opnsense learns 10.10.10.0/24 Network when advertise subnets and local node routing is unticked but not ticked?
The EVPN controller & the BGP controller, its correct to use the same ASN?
am i misunderstanding something here?
Summary:
With EVPN Zone Local Node Routing & Advertise Subnets Ticked opnsense doesnt learn the routes anymore, The VM on the evpn vnet with snat ticked can ping 1.1.1.1 but not google.com/ go to internet in browser. it can ping opnsense on the transit network and any other device on network. the firewall alows to any from the vnet (10.10.10.0) on the transit network.
opnsense not learning the routes is the issue and the bgp controller just stops giving it routes it seems.
In need of a little help understanding this, ive been looking at a few threads etc, ended up couldn't get it to advertise to opnsense. i then reinstalled proxmox and have got this far lol.
I wanted the evpn vnets to get internet through opnsense host so bgp from proxmox to opnsense to learn routes.
Proxmox SDN: Single PVE Node, Adding 2nd and 3rd Node After.
Fabrics:
OSPF - 10.0.23.0/24
Area - 0.0.0.0
Controllers:
EVPN Controller - 65553, SDN Fabric OSPF
BGP Controller - ASN 65553, Peers=10.0.24.1, EBGP Ticked
Zones: EVPN Zone (ProdNet)
VRF-VXLAN Tag=1000
Exit Nodes (Node Name)
Primary Exit Node (Node Name)
I tried originally with local node routing and advertise subnets ticked under the assumption that advertise subnets meant advertise evpn vnets into bgp controller to opnsense but this seems wrong?
Local node routing for routing between evpn vnets.
With local node routing and advertise subnets i have no internet in a vm on the vnet and can ping 1.1.1.1 but not google,com.
With them both unticked i can ping both and get to internet sites from a fedora vm.
Code:
Proxmox Generated frr.conf: With Local Node Routing And Advertise Subnets Unticked
frr version 10.4.1
frr defaults datacenter
hostname Alicia
log syslog informational
service integrated-vtysh-config
!
!
vrf vrf_ProdNet
vni 1000
exit-vrf
!
router bgp 65553
bgp router-id 10.0.23.10
no bgp hard-administrative-reset
no bgp default ipv4-unicast
coalesce-time 1000
no bgp graceful-restart notification
neighbor VTEP peer-group
neighbor VTEP remote-as 65553
neighbor VTEP bfd
neighbor VTEP update-source dummy_ospf-fab
neighbor BGP peer-group
neighbor BGP remote-as external
neighbor BGP bfd
neighbor BGP ebgp-multihop 3
neighbor 10.0.24.1 peer-group BGP
!
address-family ipv4 unicast
neighbor BGP activate
neighbor BGP soft-reconfiguration inbound
import vrf vrf_ProdNet
exit-address-family
!
address-family ipv6 unicast
import vrf vrf_ProdNet
exit-address-family
!
address-family l2vpn evpn
neighbor VTEP activate
neighbor VTEP route-map MAP_VTEP_IN in
neighbor VTEP route-map MAP_VTEP_OUT out
advertise-all-vni
exit-address-family
exit
!
router bgp 65553 vrf vrf_ProdNet
bgp router-id 10.0.23.10
no bgp hard-administrative-reset
no bgp graceful-restart notification
!
address-family ipv4 unicast
redistribute connected
exit-address-family
!
address-family ipv6 unicast
redistribute connected
exit-address-family
!
address-family l2vpn evpn
default-originate ipv4
default-originate ipv6
exit-address-family
exit
!
ip prefix-list only_default seq 1 permit 0.0.0.0/0
!
ipv6 prefix-list only_default_v6 seq 1 permit ::/0
!
route-map MAP_VTEP_IN deny 1
match ip address prefix-list only_default
exit
!
route-map MAP_VTEP_IN deny 2
match ipv6 address prefix-list only_default_v6
exit
!
route-map MAP_VTEP_IN permit 3
exit
!
route-map MAP_VTEP_OUT permit 1
exit
router ospf
ospf router-id 10.0.23.10
exit
!
interface dummy_ospf-fab
ip ospf area 0.0.0.0
ip ospf passive
exit
!
interface vmbr1.23
ip ospf area 0.0.0.0
ip ospf network point-to-point
exit
!
access-list pve_ospf_ospf-fab_ips permit 10.0.23.0/24
!
route-map pve_ospf permit 100
match ip address pve_ospf_ospf-fab_ips
set src 10.0.23.10
exit
!
ip protocol ospf route-map pve_ospf
!
!
line vty
!
Code:
Proxmox Generated frr.conf: With Local Node Routing Ticked And Advertise Subnets Unticked
GNU nano 8.4 /etc/frr/frr.conf
frr version 10.4.1
frr defaults datacenter
hostname Alicia
log syslog informational
service integrated-vtysh-config
!
!
vrf vrf_ProdNet
vni 1000
exit-vrf
!
router bgp 65553
bgp router-id 10.0.23.10
no bgp hard-administrative-reset
no bgp default ipv4-unicast
coalesce-time 1000
no bgp graceful-restart notification
neighbor VTEP peer-group
neighbor VTEP remote-as 65553
neighbor VTEP bfd
neighbor VTEP update-source dummy_ospf-fab
neighbor BGP peer-group
neighbor BGP remote-as external
neighbor BGP bfd
neighbor BGP ebgp-multihop 3
neighbor 10.0.24.1 peer-group BGP
!
address-family ipv4 unicast
neighbor BGP activate
neighbor BGP soft-reconfiguration inbound
exit-address-family
!
address-family l2vpn evpn
neighbor VTEP activate
neighbor VTEP route-map MAP_VTEP_IN in
neighbor VTEP route-map MAP_VTEP_OUT out
advertise-all-vni
exit-address-family
exit
!
router bgp 65553 vrf vrf_ProdNet
bgp router-id 10.0.23.10
no bgp hard-administrative-reset
no bgp graceful-restart notification
!
address-family l2vpn evpn
default-originate ipv4
default-originate ipv6
exit-address-family
exit
!
ip prefix-list only_default seq 1 permit 0.0.0.0/0
!
ipv6 prefix-list only_default_v6 seq 1 permit ::/0
!
route-map MAP_VTEP_IN deny 1
match ip address prefix-list only_default
exit
!
route-map MAP_VTEP_IN deny 2
match ipv6 address prefix-list only_default_v6
exit
!
route-map MAP_VTEP_IN permit 3
exit
!
route-map MAP_VTEP_OUT permit 1
exit
!
ip route 10.10.10.0/24 10.255.255.2 xvrf_ProdNet
router ospf
ospf router-id 10.0.23.10
exit
!
interface dummy_ospf-fab
ip ospf area 0.0.0.0
ip ospf passive
exit
!
interface vmbr1.23
ip ospf area 0.0.0.0
ip ospf network point-to-point
exit
!
access-list pve_ospf_ospf-fab_ips permit 10.0.23.0/24
!
route-map pve_ospf permit 100
match ip address pve_ospf_ospf-fab_ips
set src 10.0.23.10
exit
!
ip protocol ospf route-map pve_ospf
!
!
line vty
!
Code:
Proxmox Generated frr.conf: With Local Node Routing Ticked And Advertise Subnets Ticked
frr version 10.4.1
frr defaults datacenter
hostname Alicia
log syslog informational
service integrated-vtysh-config
!
!
vrf vrf_ProdNet
vni 1000
exit-vrf
!
router bgp 65553
bgp router-id 10.0.23.10
no bgp hard-administrative-reset
no bgp default ipv4-unicast
coalesce-time 1000
no bgp graceful-restart notification
neighbor VTEP peer-group
neighbor VTEP remote-as 65553
neighbor VTEP bfd
neighbor VTEP update-source dummy_ospf-fab
neighbor BGP peer-group
neighbor BGP remote-as external
neighbor BGP bfd
neighbor BGP ebgp-multihop 3
neighbor 10.0.24.1 peer-group BGP
!
address-family ipv4 unicast
neighbor BGP activate
neighbor BGP soft-reconfiguration inbound
exit-address-family
!
address-family l2vpn evpn
neighbor VTEP activate
neighbor VTEP route-map MAP_VTEP_IN in
neighbor VTEP route-map MAP_VTEP_OUT out
advertise-all-vni
exit-address-family
exit
!
router bgp 65553 vrf vrf_ProdNet
bgp router-id 10.0.23.10
no bgp hard-administrative-reset
no bgp graceful-restart notification
!
address-family l2vpn evpn
default-originate ipv4
default-originate ipv6
exit-address-family
exit
!
ip prefix-list only_default seq 1 permit 0.0.0.0/0
!
ipv6 prefix-list only_default_v6 seq 1 permit ::/0
!
route-map MAP_VTEP_IN deny 1
match ip address prefix-list only_default
exit
!
route-map MAP_VTEP_IN deny 2
match ipv6 address prefix-list only_default_v6
exit
!
route-map MAP_VTEP_IN permit 3
exit
!
route-map MAP_VTEP_OUT permit 1
exit
!
ip route 10.10.10.0/24 10.255.255.2 xvrf_ProdNet
router ospf
ospf router-id 10.0.23.10
exit
!
interface dummy_ospf-fab
ip ospf area 0.0.0.0
ip ospf passive
exit
!
interface vmbr1.23
ip ospf area 0.0.0.0
ip ospf network point-to-point
exit
!
access-list pve_ospf_ospf-fab_ips permit 10.0.23.0/24
!
route-map pve_ospf permit 100
match ip address pve_ospf_ospf-fab_ips
set src 10.0.23.10
exit
!
ip protocol ospf route-map pve_ospf
!
!
line vty
!
opnsense has a vlan 24 (Transit-PVE)
opnsense has firewall rule on transit-pve to any
opnsense has nat outbound set to hybrid and a rule for
Interface: WAN
Source: 10.10.10.0/24
NAT Address: Interface Address
Questions:
why does advertise subnets seem to not change anything?
Why opnsense learns 10.10.10.0/24 Network when advertise subnets and local node routing is unticked but not ticked?
The EVPN controller & the BGP controller, its correct to use the same ASN?
am i misunderstanding something here?
Summary:
With EVPN Zone Local Node Routing & Advertise Subnets Ticked opnsense doesnt learn the routes anymore, The VM on the evpn vnet with snat ticked can ping 1.1.1.1 but not google.com/ go to internet in browser. it can ping opnsense on the transit network and any other device on network. the firewall alows to any from the vnet (10.10.10.0) on the transit network.
opnsense not learning the routes is the issue and the bgp controller just stops giving it routes it seems.
Last edited: