Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVPN Type-2 was withdrawn on "no rd" in VNI and never advertised to peer with auto-rd, also not present in the local database #3345

Closed
karamalla0406 opened this issue Nov 15, 2018 · 2 comments
Assignees
Labels
? Needs more information.

Comments

@karamalla0406
Copy link
Contributor

karamalla0406 commented Nov 15, 2018

Before:

dev# show ip bgp l2vpn evpn
Route Distinguisher: as2 6500:100

*> [2]:[0]:[48]:[00:50:56:b5:2e:5b]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:2e:5b]:[32]:[22.1.1.3]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:49:e8]
                    2.2.2.2                            32768 i
*> [2]:[0]:[48]:[00:50:56:b5:49:e8]:[32]:[22.1.1.4]
                    2.2.2.2                            32768 i
*> [3]:[0]:[32]:[1.1.1.1]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
Route Distinguisher: as2 6500:200

*> [2]:[0]:[48]:[00:50:56:b5:d8:2c]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:d8:2c]:[32]:[23.1.1.3]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[1.1.1.1]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
Route Distinguisher: as2 6500:10004

*> [5]:[0]:[24]:[22.1.1.0]
                    2.2.2.2                  0         32768 i
*  [5]:[0]:[24]:[22.1.1.0]
                    1.1.1.1                  0             0 6500 i
*> [5]:[0]:[24]:[23.1.1.0]
                    1.1.1.1                  0             0 6500 i

Displayed 13 out of 13 total prefixes

After:

dev# show ip bgp l2vpn evpn
Route Distinguisher: as2 6500:100

*> [2]:[0]:[48]:[00:50:56:b5:2e:5b]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:2e:5b]:[32]:[22.1.1.3]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:49:e8]
                    2.2.2.2                            32768 i
*> [2]:[0]:[48]:[00:50:56:b5:49:e8]:[32]:[22.1.1.4]
                    2.2.2.2                            32768 i
*> [3]:[0]:[32]:[1.1.1.1]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
Route Distinguisher: as2 6500:200

*> [2]:[0]:[48]:[00:50:56:b5:d8:2c]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:d8:2c]:[32]:[23.1.1.3]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[1.1.1.1]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
Route Distinguisher: as2 6500:10004

*> [5]:[0]:[24]:[22.1.1.0]
                    2.2.2.2                  0         32768 i
*  [5]:[0]:[24]:[22.1.1.0]
                    1.1.1.1                  0             0 6500 i
*> [5]:[0]:[24]:[23.1.1.0]
                    1.1.1.1                  0             0 6500 i

Displayed 13 out of 13 total prefixes

dev# show ip bgp l2vpn evpn
Route Distinguisher: as2 6500:100

*> [2]:[0]:[48]:[00:50:56:b5:2e:5b]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:2e:5b]:[32]:[22.1.1.3]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[1.1.1.1]
                    1.1.1.1                                0 6500 i
Route Distinguisher: as2 6500:200

*> [2]:[0]:[48]:[00:50:56:b5:d8:2c]
                    1.1.1.1                                0 6500 i
*> [2]:[0]:[48]:[00:50:56:b5:d8:2c]:[32]:[23.1.1.3]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[1.1.1.1]
                    1.1.1.1                                0 6500 i
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
Route Distinguisher: as2 6500:10004

*> [5]:[0]:[24]:[22.1.1.0]
                    2.2.2.2                  0         32768 i
*  [5]:[0]:[24]:[22.1.1.0]
                    1.1.1.1                  0             0 6500 i
*> [5]:[0]:[24]:[23.1.1.0]
                    1.1.1.1                  0             0 6500 i

Displayed 10 out of 10 total prefixes

root@dev:~/frr# bridge fdb show | grep "00:50:56:b5:49:e8"
00:50:56:b5:49:e8 dev vlan100 master b100
root@dev:~/frr# ip neighbor show | grep 22.1.1.4
22.1.1.4 dev b100 lladdr 00:50:56:b5:49:e8 STALE
root@dev:~/frr#
@qlyoung
Copy link
Member

qlyoung commented Dec 17, 2018

@karamalla0406 - Before what? After what? Is there some companion code to this? Was there a PR associated with this?

I understand if you are using the issue tracker to track your own work but the issue descriptions still need to be intelligible - as it stands this is only useful to you. I would appreciate it if you could update this issue with some more information.

@qlyoung qlyoung added the ? Needs more information. label Dec 17, 2018
@qlyoung qlyoung closed this as completed Apr 11, 2019
@lkrishnamoor
Copy link
Contributor

I dont think the bug exists anymore in the master. Please check the logs below

Type2 route is advertised using default rd

evpn_r1# sh bgp l2vpn evpn route
   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 203.0.113.1:3
*> [2]:[0]:[48]:[be:fb:52:d0:04:28]
                    203.0.113.1                        32768 I >> Notice that this prefix is advertised in both cases (manual rd and auto rd)
*> [3]:[0]:[32]:[203.0.113.1]
                    203.0.113.1                        32768 i
Route Distinguisher: 203.0.113.2:3
*> [2]:[0]:[48]:[ea:ba:11:1c:81:99]
                    203.0.113.2                            0 200 i
*> [3]:[0]:[32]:[203.0.113.2]
                    203.0.113.2                            0 200 i
 
Displayed 4 prefixes (4 paths)

Type2 route is advertised using manual rd

evpn_r1(config)# router bgp 100
evpn_r1(config-router)# address-family l2vpn evpn
evpn_r1(config-router-af)# vni 100
evpn_r1(config-router-af-vni)# rd 345:345
evpn_r1(config-router-af-vni)# end
evpn_r1# sh bgp l2vpn evpn route
   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 345:345
*> [2]:[0]:[48]:[be:fb:52:d0:04:28]
                    203.0.113.1                        32768 i
*> [3]:[0]:[32]:[203.0.113.1]
                    203.0.113.1                        32768 i
Route Distinguisher: 203.0.113.2:3
*> [2]:[0]:[48]:[ea:ba:11:1c:81:99]
                    203.0.113.2                            0 200 i
*> [3]:[0]:[32]:[203.0.113.2]
                    203.0.113.2                            0 200 i
 
Displayed 4 prefixes (4 paths)
 

At neighbor, type2 route has new rd.

evpn_r2# sh bgp l2vpn evpn route
BGP table version is 2, local router ID is 203.0.113.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
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
Route Distinguisher: 345:345
*> [2]:[0]:[48]:[be:fb:52:d0:04:28]
                    203.0.113.1                            0 100 i
*> [3]:[0]:[32]:[203.0.113.1]
                    203.0.113.1                            0 100 i
Route Distinguisher: 203.0.113.2:3
*> [2]:[0]:[48]:[ea:ba:11:1c:81:99]
                    203.0.113.2                        32768 i
*> [3]:[0]:[32]:[203.0.113.2]
                    203.0.113.2                        32768 i
 
Displayed 4 prefixes (4 paths)
 

Unconfigure rd

evpn_r1(config)# router bgp 100
evpn_r1(config-router)# address-family l2vpn evpn
evpn_r1(config-router-af)# vni 100
evpn_r1(config-router-af-vni)# no rd
evpn_r1(config-router-af-vni)# end

Type2 rd advertised with default

evpn_r1# sh bgp l2vpn evpn route
   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 203.0.113.1:3
*> [2]:[0]:[48]:[be:fb:52:d0:04:28]
                    203.0.113.1                        32768 i
*> [3]:[0]:[32]:[203.0.113.1]
                    203.0.113.1                        32768 i
Route Distinguisher: 203.0.113.2:3
*> [2]:[0]:[48]:[ea:ba:11:1c:81:99]
                    203.0.113.2                            0 200 i
*> [3]:[0]:[32]:[203.0.113.2]
                    203.0.113.2                            0 200 i
 
Displayed 4 prefixes (4 paths)
evpn_r1#
 

Type2 rd received with default

evpn_r2# sh bgp l2vpn evpn route
   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 203.0.113.1:3
*> [2]:[0]:[48]:[be:fb:52:d0:04:28]
                    203.0.113.1                            0 100 i
*> [3]:[0]:[32]:[203.0.113.1]
                    203.0.113.1                            0 100 i
Route Distinguisher: 203.0.113.2:3
*> [2]:[0]:[48]:[ea:ba:11:1c:81:99]
                    203.0.113.2                        32768 i
*> [3]:[0]:[32]:[203.0.113.2]
                    203.0.113.2                        32768 i
 
Displayed 4 prefixes (4 paths)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? Needs more information.
Projects
None yet
Development

No branches or pull requests

3 participants