Example for Configuring BGP Unnumbered EVPN Fabric
Networking Requirements
Figure 1. BGP Unnumbered EVPN Fabric Configuration Example
As shown in Figure 1, this example configures BGP unnumbered on EVPN VTEP devices Switch A and Switch B. An eBGP connection is established between Switch A and Switch B.
In this example, routed interfaces are configured f to be used as BGP unnumbered interfaces for EVPN underlay fabric.
The only difference between a BGP unnumbered configuration and the BGP numbered configuration is that the BGP neighbor is specified as an interface instead of an IP address. The interfaces connecting the two peers do not need to have IP addresses configured on each side.
NOTE: The ebgp-requires-policy function needs to be disabled in EBGP, no need in IBGP. |
Procedure
Switch A
Step 1 Configure physical interfaces, VLAN interfaces and VRF.
admin@SwitchA# set vlans vlan-id 5 l3-interface vlan-5 admin@SwitchA# set vlans vlan-id 6 l3-interface vlan-6 admin@SwitchA# set vlans vlan-id 7 l3-interface vlan-7 admin@SwitchA# set interface gigabit-ethernet te-1/1/30 routed-interface enable true admin@SwitchA# set interface gigabit-ethernet te-1/1/30 routed-interface name rif-30 admin@SwitchA# set interface gigabit-ethernet te-1/1/23 family ethernet-switching native-vlan-id 6 admin@SwitchA# set interface gigabit-ethernet te-1/1/23 family ethernet-switching port-mode trunk admin@SwitchA# set interface gigabit-ethernet te-1/1/23 family ethernet-switching vlan members 5 admin@SwitchA# set interface gigabit-ethernet te-1/1/23 family ethernet-switching vlan members 7 admin@SwitchA# set vlans reserved-vlan 3000-3100 admin@SwitchA# set l3-interface routed-interface rif-30 admin@SwitchA# set ip vrf vrf1 admin@SwitchA# set l3-interface vlan-interface vlan-5 vrf vrf1 admin@SwitchA# set l3-interface vlan-interface vlan-6 vrf vrf1 admin@SwitchA# set l3-interface vlan-interface vlan-6 address 192.168.60.1 prefix-length 24 admin@SwitchA# set l3-interface vlan-interface vlan-7 vrf vrf1 admin@SwitchA# set l3-interface vlan-interface vlan-7 address 192.168.70.1 prefix-length 24
Step 2 Configure EBGP and BGP related configuration.
admin@SwitchA# set protocols bgp local-as 65001 admin@SwitchA# set protocols bgp router-id 49.49.49.49 admin@SwitchA# set protocols bgp interface rif-30 remote-as 65002 admin@SwitchA# set protocols bgp interface rif-30 ipv6-unicast activate true admin@SwitchA# set protocols bgp interface rif-30 capability extended-nexthop admin@SwitchA# set protocols bgp ebgp-requires-policy false admin@SwitchA# set protocols bgp ipv4-unicast network 49.49.49.49/32 admin@SwitchA# set protocols bgp evpn advertise-all-vni admin@SwitchA# set protocols bgp evpn advertise ipv4-unicast admin@SwitchA# set protocols bgp evpn advertise ipv6-unicast admin@SwitchA# set protocols bgp evpn advertise-svi-ip admin@SwitchA# set protocols bgp vrf vrf1 local-as 65001 admin@SwitchA# set protocols bgp vrf vrf1 router-id 49.49.49.49 admin@SwitchA# set protocols bgp vrf vrf1 ipv4-unicast network 192.168.60.0/24 admin@SwitchA# set protocols bgp vrf vrf1 evpn advertise ipv4-unicast admin@SwitchA# set protocols bgp vrf vrf1 evpn advertise ipv6-unicast
Step 3 Enable IP routing.
admin@SwitchA# set ip routing enable true
Step 4 Configure VXLAN source interface, VXLAN VNI and map VNI IDs to VLAN IDs. Also create an L3 VNI in vrf1.
admin@SwitchA# set vxlans source-interface lo address 49.49.49.49 admin@SwitchA# set vxlans vni 999 vlan 5 admin@SwitchA# set vxlans vni 9991000 vlan 6 admin@SwitchA# set vxlans vni 9991007 vlan 7 admin@SwitchA# set vxlans vrf vrf1 l3-vni 999
Step 5 Commit the configuration.
admin@SwitchA# commit
Switch B
Step 1 Configure physical interfaces, VLAN interfaces and VRF.
admin@SwitchB# set vlans vlan-id 5 l3-interface vlan-5 admin@SwitchB# set vlans vlan-id 6 l3-interface vlan-6 admin@SwitchB# set vlans vlan-id 8 l3-interface vlan-8 admin@SwitchB# set interface gigabit-ethernet ge-1/1/30 routed-interface enable true admin@SwitchB# set interface gigabit-ethernet ge-1/1/30 routed-interface name rif-30 admin@SwitchB# set interface gigabit-ethernet ge-1/1/23 family ethernet-switching native-vlan-id 6 admin@SwitchB# set interface gigabit-ethernet ge-1/1/23 family ethernet-switching port-mode trunk admin@SwitchB# set interface gigabit-ethernet ge-1/1/23 family ethernet-switching vlan members 5 admin@SwitchB# set interface gigabit-ethernet ge-1/1/23 family ethernet-switching vlan members 8 admin@SwitchB# set vlans reserved-vlan 3000-3100 admin@SwitchB# set l3-interface routed-interface rif-30 admin@SwitchB# set ip vrf vrf1 admin@SwitchB# set l3-interface vlan-interface vlan-5 vrf vrf1 admin@SwitchB# set l3-interface vlan-interface vlan-6 vrf vrf1 admin@SwitchB# set l3-interface vlan-interface vlan-6 address 192.168.60.2 prefix-length 24 admin@SwitchB# set l3-interface vlan-interface vlan-8 vrf vrf1 admin@SwitchB# set l3-interface vlan-interface vlan-8 address 192.168.80.1 prefix-length 24
Step 2 Configure EBGP and BGP related configuration.
admin@SwitchB# set protocols bgp local-as 65002 admin@SwitchB# set protocols bgp router-id 57.57.57.57 admin@SwitchB# set protocols bgp interface rif-30 remote-as 65001 admin@SwitchB# set protocols bgp interface rif-30 ipv6-unicast activate true admin@SwitchB# set protocols bgp interface rif-30 capability extended-nexthop admin@SwitchB# set protocols bgp ebgp-requires-policy false admin@SwitchB# set protocols bgp ipv4-unicast network 57.57.57.57/32 admin@SwitchB# set protocols bgp evpn advertise-all-vni admin@SwitchB# set protocols bgp evpn advertise ipv4-unicast admin@SwitchB# set protocols bgp evpn advertise ipv6-unicast admin@SwitchB# set protocols bgp evpn advertise-svi-ip admin@SwitchB# set protocols bgp vrf vrf1 local-as 65002 admin@SwitchB# set protocols bgp vrf vrf1 router-id 57.57.57.57 admin@SwitchB# set protocols bgp vrf vrf1 ipv4-unicast network 192.168.80.0/24 admin@SwitchB# set protocols bgp vrf vrf1 evpn advertise ipv4-unicast admin@SwitchB# set protocols bgp vrf vrf1 evpn advertise ipv6-unicast
Step 3 Enable IP routing.
admin@SwitchB# set ip routing enable true
Step 4 Configure VXLAN source interface, VXLAN VNI and map VNI IDs to VLAN IDs. Also create an L3 VNI in vrf1.
admin@SwitchB# set vxlans source-interface lo address 57.57.57.57 admin@SwitchB# set vxlans vni 999 vlan 5 admin@SwitchB# set vxlans vni 9991000 vlan 6 admin@SwitchB# set vxlans vni 9991008 vlan 8 admin@SwitchB# set vxlans vrf vrf1 l3-vni 999
Step 5 Commit the configuration.
admin@SwitchB# commit
Verify the Configuration
- Run the run l3-interface routed-interface <interface-name> command to check the information of the unnumbered BGP interface.
admin@SwitchB# run show l3-interface routed-interface rif-30 rif-30 Hwaddr 18:5A:58:03:35:81, Vlan:3000, MTU: 1500, State:UP Inet addr: fe80::1a5a:5810:503:3581/64 Traffic statistics: 5 sec input rate IPv4 0 packets/sec, IPv6 0 packets/sec 5 sec forwarding rate IPv4 0 packets/sec, IPv6 0 packets/sec IPv4 Input Packets............................0 IPv4 Forwarding Packets.......................0 IPv6 Input Packets............................0 IPv6 Forwarding Packets.......................0
- Run the run show bgp neighbor command to check the BGP neighbor state.
admin@SwitchB# run show bgp neighbor BGP neighbor on rif-30: fe80::1a5a:5820:41f:63a1, remote AS 65001, local AS 65002, external link Hostname: localhost BGP version 4, remote router ID 49.49.49.49, local router ID 57.57.57.57 BGP state = Established, up for 06:04:23 ……
- Run the run show bgp evpn route command to check the EVPN route information.
admin@SwitchB# run show bgp evpn route BGP table version is 6, local router ID is 57.57.57.57 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[IPlen]:[VTEP-IP] EVPN type-2 prefix: [2]:[EthTag]:[MAClen]:[MAC]:[IPlen]:[IP] EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP] EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP] EVPN type-5 prefix: [5]:[EthTag]:[IPlen]:[IP] Network Next Hop Metric LocPrf Weight Path Extended Community Route Distinguisher: 49.49.49.49:2 *> [5]:[0]:[24]:[192.168.60.0] 49.49.49.49 0 0 65001 i RT:65001:999 ET:8 Rmac:18:5a:58:1f:63:a1 Route Distinguisher: 49.49.49.49:3 *> [2]:[0]:[48]:[18:5a:58:1f:63:a1]:[32]:[192.168.60.1] 49.49.49.49 0 65001 i RT:65001:999 RT:65001:9991000 ET:8 Rmac:18:5a:58:1f:63:a1 *> [2]:[0]:[48]:[18:5a:58:1f:63:a1]:[128]:[fe80::1a5a:5820:21f:63a1] 49.49.49.49 0 65001 i RT:65001:9991000 ET:8 *> [3]:[0]:[32]:[49.49.49.49] 49.49.49.49 0 65001 i RT:65001:9991000 ET:8 Route Distinguisher: 49.49.49.49:4 *> [2]:[0]:[48]:[18:5a:58:1f:63:a1]:[32]:[192.168.70.1] 49.49.49.49 0 65001 i RT:65001:999 RT:65001:9991007 ET:8 Rmac:18:5a:58:1f:63:a1 *> [2]:[0]:[48]:[18:5a:58:1f:63:a1]:[128]:[fe80::1a5a:5820:31f:63a1] 49.49.49.49 0 65001 i RT:65001:9991007 ET:8 *> [3]:[0]:[32]:[49.49.49.49] 49.49.49.49 0 65001 i RT:65001:9991007 ET:8 Route Distinguisher: 57.57.57.57:2 *> [5]:[0]:[24]:[192.168.80.0] 57.57.57.57 0 32768 i ET:8 RT:65002:999 Rmac:18:5a:58:03:35:81 Route Distinguisher: 57.57.57.57:3 *> [2]:[0]:[48]:[18:5a:58:03:35:81]:[32]:[192.168.60.2] 57.57.57.57 32768 i ET:8 RT:65002:9991000 RT:65002:999 Rmac:18:5a:58:03:35:81 *> [2]:[0]:[48]:[18:5a:58:03:35:81]:[128]:[fe80::1a5a:5810:203:3581] 57.57.57.57 32768 i ET:8 RT:65002:9991000 *> [3]:[0]:[32]:[57.57.57.57] 57.57.57.57 32768 i ET:8 RT:65002:9991000 Route Distinguisher: 57.57.57.57:4 *> [2]:[0]:[48]:[18:5a:58:03:35:81]:[32]:[192.168.80.1] 57.57.57.57 32768 i ET:8 RT:65002:9991008 RT:65002:999 Rmac:18:5a:58:03:35:81 *> [2]:[0]:[48]:[18:5a:58:03:35:81]:[128]:[fe80::1a5a:5810:403:3581] 57.57.57.57 32768 i ET:8 RT:65002:9991008 *> [3]:[0]:[32]:[57.57.57.57] 57.57.57.57 32768 i ET:8 RT:65002:9991008 Displayed 14 prefixes (14 paths)
- Run the run show vxlan tunnel command to check the VXLAN tunnel information.
admin@SwitchB# run show vxlan tunnel Total number of tunnels: 2 VNI 999, Encap:service-vlan-delete, Decap:service-vlan-add-replace src addr:57.57.57.57, dst addr:49.49.49.49, state:UP traffic type:unicast Vtep type:EVPN nexthops:fe80::1a5a:5820:41f:63a1 output ports:ge-1/1/30 VNI 9991000, Encap:service-vlan-delete, Decap:service-vlan-add-replace src addr:57.57.57.57, dst addr:49.49.49.49, state:UP traffic type:all Vtep type:EVPN nexthops:fe80::1a5a:5820:41f:63a1 output ports:ge-1/1/30
- Run the run show vxlan evpn route command to check the VXLAN route information.
admin@SwitchB# run show vxlan evpn route VRF ROUTE NextHop VNI Interface -------- ---------------- --------------- ---------- ----------------- vrf1 192.168.60.1/32 49.49.49.49 999 vlan-5 vrf1 192.168.60.0/24 49.49.49.49 999 vlan-5 vrf1 192.168.70.1/32 49.49.49.49 999 vlan-5
- Run the run show route vrf vrf1 command to check the route information for vrf1.
admin@SwitchB# run show route vrf vrf1 show ip route vrf vrf1 ======================= Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, A - Babel, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF vrf1: K>* 0.0.0.0/0 [255/8192] unreachable (blackhole), 06:07:34 B 192.168.60.0/24 [20/0] via 49.49.49.49, vlan-5 onlink, weight 1, 02:03:03 C>* 192.168.60.0/24 is directly connected, vlan-6, 05:38:57 B>* 192.168.60.1/32 [20/0] via 49.49.49.49, vlan-5 onlink, weight 1, 02:03:03 B>* 192.168.70.1/32 [20/0] via 49.49.49.49, vlan-5 onlink, weight 1, 02:03:03 C>* 192.168.80.0/24 is directly connected, vlan-8, 05:38:57 show ipv6 route vrf vrf1 ========================= Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table, A - Babel, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF vrf1: K>* ::/0 [255/8192] unreachable (blackhole), 06:07:36 C * fe80::/64 is directly connected, vlan-8, 05:38:58 C * fe80::/64 is directly connected, vlan-6, 05:38:58 C>* fe80::/64 is directly connected, vlan-5, 06:07:34
Copyright © 2024 Pica8 Inc. All Rights Reserved.