evpn route type

evpn2.novalocal# show bgp evpn route
BGP table version is 1, local router ID is 10.10.18.212
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
                    Extended Community
Route Distinguisher: 6.6.6.253:3
*> [5]:[0]:[0]:[0.0.0.0]
                    10.10.18.212             0         32768 i
                    ET:8 RT:9999:1000 Rmac:00:00:01:02:03:06
Route Distinguisher: 9.9.9.254:2
*> [5]:[0]:[0]:[0.0.0.0]
                    10.10.18.212             0         32768 i
                    ET:8 RT:9999:100 Rmac:00:00:01:02:03:05
*> [5]:[0]:[24]:[9.9.9.0]
                    10.10.18.212             0         32768 i
                    ET:8 RT:9999:100 Rmac:00:00:01:02:03:05
Route Distinguisher: 10.10.18.209:4
*> [3]:[0]:[32]:[10.10.18.209]
                    10.10.18.209                           0 8888 i
                    RT:8888:10 ET:8
Route Distinguisher: 10.10.18.209:5
*> [2]:[0]:[48]:[b6:7a:bc:9e:4e:95]
                    10.10.18.209                           0 8888 i
                    RT:8888:20 RT:8888:100 ET:8 Rmac:00:00:01:02:03:07                                      ---------------------分布式对称模型中,type-2路由会携带两个vni,vrf下有l2vni=20和 l3vni=100
*> [2]:[0]:[48]:[b6:7a:bc:9e:4e:95]:[32]:[3.3.3.2]
                    10.10.18.209                           0 8888 i
                    RT:8888:20 RT:8888:100 ET:8 Rmac:00:00:01:02:03:07
*> [2]:[0]:[48]:[b6:7a:bc:9e:4e:95]:[128]:[fe80::b47a:bcff:fe9e:4e95]
                    10.10.18.209                           0 8888 i
                    RT:8888:20 ET:8
*> [3]:[0]:[32]:[10.10.18.209]
                    10.10.18.209                           0 8888 i
                    RT:8888:20 ET:8                               --------------------------------------- l2vni
Route Distinguisher: 10.10.18.209:6
*> [3]:[0]:[32]:[10.10.18.209]
                    10.10.18.209                           0 8888 i
                    RT:8888:88 ET:8                                ----------------------------------------l2vni
Route Distinguisher: 10.10.18.212:4
*> [2]:[0]:[48]:[00:00:01:02:03:10]:[32]:[2.2.2.254]
                    10.10.18.212                       32768 i
                    ET:8 RT:9999:10 RT:9999:100 Rmac:00:00:01:02:03:05
*> [2]:[0]:[48]:[00:00:01:02:03:10]:[128]:[fe80::200:1ff:fe02:310]
                    10.10.18.212                       32768 i
                    ET:8 RT:9999:10 RT:9999:100 Rmac:00:00:01:02:03:05
*> [3]:[0]:[32]:[10.10.18.212]
                    10.10.18.212                       32768 i
                    ET:8 RT:9999:10
Route Distinguisher: 10.10.18.212:5
*> [3]:[0]:[32]:[10.10.18.212]
                    10.10.18.212                       32768 i
                    ET:8 RT:9999:88

Displayed 13 prefixes (13 paths)

  configures EVPN to advertise type-5 routes only:

evpn2.novalocal(config)# router bgp 9999
evpn2.novalocal(config-router)# route-map map1 permit 1 
evpn2.novalocal(config-route-map)# match evpn route-type prefix
evpn2.novalocal(config-route-map)# exit
evpn2.novalocal(config)# exit

evpn2.novalocal(config)# router bgp 9999
evpn2.novalocal(config-router)# no route-map map1
evpn2.novalocal(config)# exit

 TYPE4用于MLAG

posted on 2020-05-11 19:22  tycoon3  阅读(448)  评论(0)    收藏  举报

导航