EVPN Type5實(shí)驗(yàn)

Route type-5 IP prefix Route—An IP prefix route provides encoding for inter-subnet forwarding. In the control plane, EVPN type-5 routes are used to advertise IP prefixes for inter-subnet connectivity across data centers. To reach a tenant using connectivity provided by the EVPN type-5 IP prefix route, data packets are sent as Layer 2 Ethernet frames encapsulated in the VXLAN header over the IP network across the data centers.

實(shí)驗(yàn)拓?fù)?/p>

CE1 lo0.0為11.0.0.1/24

CE2 lo0.0為22.0.0.1/24

CE3 lo0.0為33.0.0.1/24

PE1 lo0.0為1.1.1.1/32

PE2 lo0.0為2.2.2.2/32

PE3 lo0.0為3.3.3.3/32

10.5.39.0/24段為管理段

查看PE1接收了3.3.3.3的evpn路由(注意type 2,type 3,type5,http://bgphelp.com/2017/05/22/evpn-route-types/)


PE1的配置:

root@PE1> show configuration | display set

set version 17.2R1.13

set system host-name PE1

set chassis fpc 0 pic 0 tunnel-services bandwidth 1g

set chassis network-services enhanced-ip

set interfaces ge-0/0/6 unit 0 family inet address 192.168.13.1/24

set interfaces ge-0/0/6 unit 0 family mpls

set interfaces ge-0/0/8 unit 0 family inet address 192.168.12.1/24

set interfaces ge-0/0/8 unit 0 family mpls

set interfaces ge-0/0/9 flexible-vlan-tagging

set interfaces ge-0/0/9 encapsulation flexible-ethernet-services

set interfaces ge-0/0/9 unit 10 encapsulation vlan-bridge

set interfaces ge-0/0/9 unit 10 vlan-id 10

set interfaces fxp0 unit 0 family inet address 10.5.39.241/24

set interfaces irb unit 10 family inet address 192.168.10.1/24

set interfaces lo0 unit 0 family inet address 1.1.1.1/32

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options router-id 1.1.1.1

set routing-options autonomous-system 65000

set protocols mpls interface ge-0/0/6.0

set protocols mpls interface ge-0/0/8.0

set protocols bgp group IBGP type internal

set protocols bgp group IBGP local-address 1.1.1.1

set protocols bgp group IBGP family evpn signaling

set protocols bgp group IBGP neighbor 2.2.2.2

set protocols bgp group IBGP neighbor 3.3.3.3

set protocols ospf area 0.0.0.0 interface ge-0/0/6.0

set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ospf area 0.0.0.0 interface ge-0/0/8.0

set protocols ldp interface ge-0/0/6.0

set protocols ldp interface ge-0/0/8.0

set routing-instances BD10 instance-type evpn

set routing-instances BD10 vlan-id 10

set routing-instances BD10 interface ge-0/0/9.10

set routing-instances BD10 routing-interface irb.10

set routing-instances BD10 route-distinguisher 1.1.1.1:10

set routing-instances BD10 vrf-target target:10:10

set routing-instances BD10 protocols evpn

set routing-instances BD10-L3 instance-type vrf

set routing-instances BD10-L3 interface irb.10

set routing-instances BD10-L3 route-distinguisher 1.1.1.1:11

set routing-instances BD10-L3 vrf-target target:10:10

set routing-instances BD10-L3 vrf-table-label

set routing-instances BD10-L3 routing-options static route 11.0.0.0/24 next-hop 192.168.10.11

set routing-instances BD10-L3 protocols evpn ip-prefix-routes advertise direct-nexthop

PE2的配置

root@PE2> show configuration | display set

set version 17.2R1.13

set system host-name PE2

set chassis fpc 0 pic 0 tunnel-services bandwidth 1g

set chassis network-services enhanced-ip

set interfaces ge-0/0/7 unit 0 family inet address 192.168.23.2/24

set interfaces ge-0/0/7 unit 0 family mpls

set interfaces ge-0/0/8 unit 0 family inet address 192.168.12.2/24

set interfaces ge-0/0/8 unit 0 family mpls

set interfaces ge-0/0/9 flexible-vlan-tagging

set interfaces ge-0/0/9 encapsulation flexible-ethernet-services

set interfaces ge-0/0/9 unit 20 encapsulation vlan-bridge

set interfaces ge-0/0/9 unit 20 vlan-id 20

set interfaces fxp0 unit 0 family inet address 10.5.39.242/24

set interfaces irb unit 20 family inet address 192.168.20.2/24

set interfaces lo0 unit 0 family inet address 2.2.2.2/32

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options router-id 2.2.2.2

set routing-options autonomous-system 65000

set protocols mpls interface ge-0/0/8.0

set protocols mpls interface ge-0/0/7.0

set protocols bgp group IBGP type internal

set protocols bgp group IBGP local-address 2.2.2.2

set protocols bgp group IBGP family evpn signaling

set protocols bgp group IBGP neighbor 1.1.1.1

set protocols bgp group IBGP neighbor 3.3.3.3

set protocols ospf area 0.0.0.0 interface ge-0/0/8.0

set protocols ospf area 0.0.0.0 interface ge-0/0/7.0

set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ldp interface ge-0/0/7.0

set protocols ldp interface ge-0/0/8.0

set routing-instances BD20 instance-type evpn

set routing-instances BD20 vlan-id 20

set routing-instances BD20 interface ge-0/0/9.20

set routing-instances BD20 routing-interface irb.20

set routing-instances BD20 route-distinguisher 2.2.2.2:10

set routing-instances BD20 vrf-target target:10:10

set routing-instances BD20 protocols evpn

set routing-instances BD20-L3 instance-type vrf

set routing-instances BD20-L3 interface irb.20

set routing-instances BD20-L3 route-distinguisher 2.2.2.2:11

set routing-instances BD20-L3 vrf-target target:10:10

set routing-instances BD20-L3 vrf-table-label

set routing-instances BD20-L3 routing-options static route 22.0.0.0/24 next-hop 192.168.20.22

set routing-instances BD20-L3 protocols evpn ip-prefix-routes advertise direct-nexthop

PE3的配置

root@PE3> show configuration | display set

set version 17.2R1.13

set system host-name PE3

set chassis fpc 0 pic 0 tunnel-services bandwidth 1g

set chassis network-services enhanced-ip

set interfaces ge-0/0/7 unit 0 family inet address 192.168.23.3/24

set interfaces ge-0/0/7 unit 0 family mpls

set interfaces ge-0/0/8 unit 0 family inet address 192.168.13.3/24

set interfaces ge-0/0/8 unit 0 family mpls

set interfaces ge-0/0/9 flexible-vlan-tagging

set interfaces ge-0/0/9 encapsulation flexible-ethernet-services

set interfaces ge-0/0/9 unit 30 encapsulation vlan-bridge

set interfaces ge-0/0/9 unit 30 vlan-id 30

set interfaces fxp0 unit 0 family inet address 10.5.39.243/24

set interfaces irb unit 30 family inet address 192.168.30.3/24

set interfaces lo0 unit 0 family inet address 3.3.3.3/32

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options router-id 3.3.3.3

set routing-options autonomous-system 65000

set protocols mpls interface ge-0/0/6.0

set protocols mpls interface ge-0/0/7.0

set protocols bgp group IBGP type internal

set protocols bgp group IBGP local-address 3.3.3.3

set protocols bgp group IBGP family evpn signaling

set protocols bgp group IBGP neighbor 2.2.2.2

set protocols bgp group IBGP neighbor 1.1.1.1

set protocols ospf area 0.0.0.0 interface ge-0/0/6.0

set protocols ospf area 0.0.0.0 interface ge-0/0/7.0

set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ldp interface ge-0/0/6.0

set protocols ldp interface ge-0/0/7.0

set routing-instances BD30 instance-type evpn

set routing-instances BD30 vlan-id 30

set routing-instances BD30 interface ge-0/0/9.30

set routing-instances BD30 routing-interface irb.30

set routing-instances BD30 route-distinguisher 3.3.3.3:10

set routing-instances BD30 vrf-target target:10:10

set routing-instances BD30 protocols evpn

set routing-instances BD30-L3 instance-type vrf

set routing-instances BD30-L3 interface irb.30

set routing-instances BD30-L3 route-distinguisher 3.3.3.3:11

set routing-instances BD30-L3 vrf-target target:10:10

set routing-instances BD30-L3 vrf-table-label

set routing-instances BD30-L3 routing-options static route 33.0.0.0/24 next-hop 192.168.30.33

set routing-instances BD30-L3 protocols evpn ip-prefix-routes advertise direct-nexthop

CE1的配置

root@CE1> show configuration | display set

set version 14.1R4.8

set system host-name CE1

set interfaces ge-0/0/9 vlan-tagging

set interfaces ge-0/0/9 unit 10 vlan-id 10

set interfaces ge-0/0/9 unit 10 family inet address 192.168.10.11/24

set interfaces fxp0 unit 0 family inet address 10.5.39.245/24

set interfaces lo0 unit 0 family inet address 11.0.0.1/24

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options static route 0.0.0.0/0 next-hop 192.168.10.1

CE2的配置

root@CE2> show configuration | display set

set version 14.1R4.8

set system host-name CE2

set interfaces ge-0/0/9 vlan-tagging

set interfaces ge-0/0/9 unit 20 vlan-id 20

set interfaces ge-0/0/9 unit 20 family inet address 192.168.20.22/24

set interfaces fxp0 unit 0 family inet address 10.5.39.246/24

set interfaces lo0 unit 0 family inet address 22.0.0.1/24

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options static route 0.0.0.0/0 next-hop 192.168.20.2

CE3的配置

root@CE3> show configuration | display set

set version 14.1R4.8

set system host-name CE3

set interfaces ge-0/0/9 vlan-tagging

set interfaces ge-0/0/9 unit 30 vlan-id 30

set interfaces ge-0/0/9 unit 30 family inet address 192.168.30.33/24

set interfaces fxp0 unit 0 family inet address 10.5.39.247/24

set interfaces lo0 unit 0 family inet address 33.0.0.1/24

set routing-options static route 10.5.0.0/16 next-hop 10.5.39.254

set routing-options static route 0.0.0.0/0 next-hop 192.168.30.3

REF

http://bgphelp.com/2017/04/17/evpn-type-5-ip-prefix-route-explained/

http://bgphelp.com/2017/04/23/evpn-type-5-configuration-example-juniper-mx/

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末胀茵,一起剝皮案震驚了整個(gè)濱河市潦闲,隨后出現(xiàn)的幾起案子牍颈,更是在濱河造成了極大的恐慌野舶,老刑警劉巖曙咽,帶你破解...
    沈念sama閱讀 217,084評(píng)論 6 503
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異姆蘸,居然都是意外死亡祝蝠,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,623評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門(mén)绣张,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)答渔,“玉大人,你說(shuō)我怎么就攤上這事侥涵⊙腥澹” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 163,450評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵独令,是天一觀(guān)的道長(zhǎng)端朵。 經(jīng)常有香客問(wèn)我,道長(zhǎng)燃箭,這世上最難降的妖魔是什么冲呢? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,322評(píng)論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮招狸,結(jié)果婚禮上敬拓,老公的妹妹穿的比我還像新娘。我一直安慰自己裙戏,他們只是感情好乘凸,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,370評(píng)論 6 390
  • 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著累榜,像睡著了一般营勤。 火紅的嫁衣襯著肌膚如雪灵嫌。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 51,274評(píng)論 1 300
  • 那天葛作,我揣著相機(jī)與錄音寿羞,去河邊找鬼。 笑死赂蠢,一個(gè)胖子當(dāng)著我的面吹牛绪穆,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播虱岂,決...
    沈念sama閱讀 40,126評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼玖院,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了第岖?” 一聲冷哼從身側(cè)響起难菌,我...
    開(kāi)封第一講書(shū)人閱讀 38,980評(píng)論 0 275
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎绍傲,沒(méi)想到半個(gè)月后扔傅,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體耍共,經(jīng)...
    沈念sama閱讀 45,414評(píng)論 1 313
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡烫饼,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,599評(píng)論 3 334
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了试读。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片杠纵。...
    茶點(diǎn)故事閱讀 39,773評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖钩骇,靈堂內(nèi)的尸體忽然破棺而出比藻,到底是詐尸還是另有隱情,我是刑警寧澤倘屹,帶...
    沈念sama閱讀 35,470評(píng)論 5 344
  • 正文 年R本政府宣布银亲,位于F島的核電站,受9級(jí)特大地震影響纽匙,放射性物質(zhì)發(fā)生泄漏务蝠。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,080評(píng)論 3 327
  • 文/蒙蒙 一烛缔、第九天 我趴在偏房一處隱蔽的房頂上張望馏段。 院中可真熱鬧,春花似錦践瓷、人聲如沸院喜。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 31,713評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)喷舀。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間元咙,已是汗流浹背梯影。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 32,852評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留庶香,地道東北人甲棍。 一個(gè)月前我還...
    沈念sama閱讀 47,865評(píng)論 2 370
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像赶掖,于是被迫代替她去往敵國(guó)和親感猛。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,689評(píng)論 2 354

推薦閱讀更多精彩內(nèi)容