美文网首页
EVPN Type5实验

EVPN Type5实验

作者: 严炎2016 | 来源:发表于2017-11-15 15:13 被阅读0次

    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.

    实验拓扑

    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/

    相关文章

      网友评论

          本文标题:EVPN Type5实验

          本文链接:https://www.haomeiwen.com/subject/zizcvxtx.html