Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize VXLAN IBGP RR experiment

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces you how to achieve VXLAN IBGP RR experiment, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Network topology diagram:

SPINE1 configuration

=

Hostname SPINE-1

Nv overlay estranged girls *

Feature ospf

Feature bgp

Feature pim

Feature nv overlay

Ip pim rp-address 192.168.1.8 group-list 239.0.0.0/24

Ip pim log-neighbor-changes

Ip pim ssm range 232.0.0.0/8

Ip pim anycast-rp 192.168.1.8 192.168.1.1

Ip pim anycast-rp 192.168.1.8 192.168.1.2

Vrf context management

Interface Ethernet1/1

No switchport

Ip address 10.10.1.1/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface Ethernet1/2

No switchport

Ip address 10.10.3.1/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface loopback0

Ip address 192.168.1.1/32

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

Interface loopback1

Ip address 192.168.1.8/32

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

Line console

Line vty

Boot nxos bootflash:/nxos.7.0.3.I5.2.bin

Router ospf 100

Router-id 192.168.1.1

Log-adjacency-changes

Router bgp 65001

Router-id 192.168.1.1

Log-neighbor-changes

Address-family ipv4 unicast

Address-family l2 e

Retain route-target all

Template peer VTEP

Remote-as 65001

Update-source loopback0

Address-family ipv4 unicast

Send-community

Send-community extended

Route-reflector-client

Address-family l2 e

Send-community

Send-community extended

Route-reflector-client

Neighbor 192.168.1.3

Inherit peer VTEP

Remote-as 65001

Neighbor 192.168.1.4

Inherit peer VTEP

Remote-as 65001

SPINE2 configuration

=

Hostname SPINE-2

Nv overlay estranged girls *

Feature ospf

Feature bgp

Feature pim

Feature nv overlay

Ip pim rp-address 192.168.1.8 group-list 239.0.0.0/24

Ip pim log-neighbor-changes

Ip pim ssm range 232.0.0.0/8

Ip pim anycast-rp 192.168.1.8 192.168.1.1

Ip pim anycast-rp 192.168.1.8 192.168.1.2

Vrf context management

Interface Ethernet1/1

No switchport

Ip address 10.10.4.1/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface Ethernet1/2

No switchport

Ip address 10.10.2.1/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface loopback0

Ip address 192.168.1.2/32

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

Interface loopback1

Ip address 192.168.1.8/32

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

Line console

Line vty

Boot nxos bootflash:/nxos.7.0.3.I5.2.bin

Router ospf 100

Router-id 192.168.1.2

Log-adjacency-changes

Router bgp 65001

Router-id 192.168.1.2

Log-neighbor-changes

Address-family ipv4 unicast

Address-family l2 e

Retain route-target all

Template peer VTEP

Remote-as 65001

Update-source loopback0

Address-family ipv4 unicast

Send-community

Send-community extended

Route-reflector-client

Address-family l2 e

Send-community

Send-community extended

Route-reflector-client

Neighbor 192.168.1.3

Inherit peer VTEP

Remote-as 65001

Neighbor 192.168.1.4

Inherit peer VTEP

Remote-as 65001

LEAF101 configuration

=

Hostname LEAF101

Nv overlay estranged girls *

Feature ospf

Feature bgp

Feature pim

Feature interface-vlan

Feature vn-segment-vlan-based

Feature nv overlay

Vlan 1, 11, 21, 31, 41901-904.

Fabric forwarding anycast-gateway-mac 0000.1111.2222

Ip pim rp-address 192.168.1.8 group-list 239.0.0.0/24

Ip pim log-neighbor-changes

Ip pim ssm range 232.0.0.0/8

Vlan 11

Vn-segment 160011

Vlan 21

Vn-segment 160021

Vlan 31

Vn-segment 160031

Vlan 41

Vn-segment 160041

Vlan 901

Vn-segment 900901

Vlan 902

Vn-segment 900902

Vlan 903

Vn-segment 900903

Vlan 904

Vn-segment 900904

Vrf context APP

Vni 900901

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context CTRIX

Vni 900903

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context DB

Vni 900904

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context VM

Vni 900902

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context management

Interface Vlan1

Interface Vlan11

No shutdown

Mtu 9216

Vrf member APP

Ip address 10.133.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan21

No shutdown

Mtu 9216

Vrf member VM

Ip address 10.63.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan31

No shutdown

Mtu 9216

Vrf member CTRIX

Ip address 10.158.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan41

No shutdown

Mtu 9216

Vrf member DB

Ip address 10.79.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan901

No shutdown

Mtu 9216

Vrf member APP

No ip redirects

Ip forward

Interface Vlan902

No shutdown

Mtu 9216

Vrf member VM

No ip redirects

Ip forward

Interface Vlan903

No shutdown

Mtu 9216

Vrf member CTRIX

No ip redirects

Ip forward

Interface Vlan904

No shutdown

Mtu 9216

Vrf member DB

No ip redirects

Ip forward

Interface nve1

No shutdown

Source-interface loopback0

Host-reachability protocol bgp

Member vni 160011

Mcast-group 239.0.0.1

Member vni 160021

Mcast-group 239.0.0.2

Member vni 160031

Mcast-group 239.0.0.3

Member vni 160041

Mcast-group 239.0.0.4

Member vni 900901 associate-vrf

Member vni 900902 associate-vrf

Member vni 900903 associate-vrf

Member vni 900904 associate-vrf

Interface Ethernet1/1

No switchport

Ip address 10.10.1.2/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface Ethernet1/2

No switchport

Ip address 10.10.2.2/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface Ethernet1/3

Switchport access vlan 11

Interface loopback0

Ip address 192.168.1.3/32

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

Line console

Line vty

Boot nxos bootflash:/nxos.7.0.3.I5.2.bin

Router ospf 100

Router-id 192.168.1.3

Log-adjacency-changes

Router bgp 65001

Router-id 192.168.1.3

Log-neighbor-changes

Address-family ipv4 unicast

Address-family l2 e

Neighbor 192.168.1.1

Remote-as 65001

Update-source loopback0

Address-family ipv4 unicast

Send-community

Send-community extended

Address-family l2 e

Send-community

Send-community extended

Neighbor 192.168.1.2

Remote-as 65001

Update-source loopback0

Address-family ipv4 unicast

Send-community

Send-community extended

Address-family l2 e

Send-community

Send-community extended

Vrf APP

Address-family ipv4 unicast

Advertise l2 e

Maximum-paths 2

Vrf CTRIX

Address-family ipv4 unicast

Advertise l2 e

Maximum-paths ibgp 2

Vrf DB

Address-family ipv4 unicast

Advertise l2 e

Maximum-paths ibgp 2

Vrf VM

Address-family ipv4 unicast

Advertise l2 e

Maximum-paths ibgp 2

EBay, please *

Vni 160011 l2

Rd auto

Route-target import auto

Route-target export auto

Vni 160021 l2

Rd auto

Route-target import auto

Route-target export auto

Vni 160031 l2

Rd auto

Route-target import auto

Route-target export auto

Vni 160041 l2

Rd auto

Route-target import auto

Route-target export auto

Ip tcp path-mtu-discovery

BORDERLEAF configuration

=

Hostname BORDERLEAF

Nv overlay estranged girls *

Feature ospf

Feature bgp

Feature pim

Feature interface-vlan

Feature vn-segment-vlan-based

Feature nv overlay

Vlan 1, 11, 21, 31, 41901-904.

Fabric forwarding anycast-gateway-mac 0000.1111.2222

Ip pim rp-address 192.168.1.8 group-list 239.0.0.0/24

Ip pim log-neighbor-changes

Ip pim ssm range 232.0.0.0/8

Vlan 11

Vn-segment 160011

Vlan 21

Vn-segment 160021

Vlan 31

Vn-segment 160031

Vlan 41

Vn-segment 160041

Vlan 901

Vn-segment 900901

Vlan 902

Vn-segment 900902

Vlan 903

Vn-segment 900903

Vlan 904

Vn-segment 900904

Ip prefix-list static2bgp seq 5 permit 0.0.0.0/0 le 32

Route-map static2bgp permit 10

Match ip address prefix-list static2bgp

Vrf context APP

Vni 900901

Ip route 0.0.0.0/0 Ethernet1/3.110 10.20.1.2

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context CTRIX

Vni 900903

Ip route 0.0.0.0/0 Ethernet1/3.130 10.20.3.2

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context DB

Vni 900904

Ip route 0.0.0.0/0 Ethernet1/3.140 10.20.4.2

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context VM

Vni 900902

Ip route 0.0.0.0/0 Ethernet1/3.120 10.20.2.2

Rd auto

Address-family ipv4 unicast

Route-target both auto

Route-target both auto e

Vrf context management

Interface Vlan11

No shutdown

Mtu 9216

Vrf member APP

Ip address 10.133.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan21

No shutdown

Mtu 9216

Vrf member VM

Ip address 10.63.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan31

No shutdown

Mtu 9216

Vrf member CTRIX

Ip address 10.158.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan41

No shutdown

Mtu 9216

Vrf member DB

Ip address 10.79.1.254/24

Fabric forwarding mode anycast-gateway

Interface Vlan901

No shutdown

Mtu 9216

Vrf member APP

No ip redirects

Ip forward

Interface Vlan902

No shutdown

Mtu 9216

Vrf member VM

No ip redirects

Ip forward

Interface Vlan903

No shutdown

Mtu 9216

Vrf member CTRIX

No ip redirects

Ip forward

Interface Vlan904

No shutdown

Mtu 9216

Vrf member DB

No ip redirects

Ip forward

Interface nve1

No shutdown

Source-interface loopback0

Host-reachability protocol bgp

Member vni 160011

Mcast-group 239.0.0.1

Member vni 160021

Mcast-group 239.0.0.2

Member vni 160031

Mcast-group 239.0.0.3

Member vni 160041

Mcast-group 239.0.0.4

Member vni 900901 associate-vrf

Member vni 900902 associate-vrf

Member vni 900903 associate-vrf

Member vni 900904 associate-vrf

Interface Ethernet1/1

No switchport

Ip address 10.10.4.2/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface Ethernet1/2

No switchport

Ip address 10.10.3.2/30

Ip ospf network point-to-point

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

No shutdown

Interface Ethernet1/3

No switchport

No shutdown

Interface Ethernet1/3.110

Encapsulation dot1q 110

Vrf member APP

Ip address 10.20.1.1/30

No shutdown

Interface Ethernet1/3.120

Encapsulation dot1q 120

Vrf member VM

Ip address 10.20.2.1/30

No shutdown

Interface Ethernet1/3.130

Encapsulation dot1q 130

Vrf member CTRIX

Ip address 10.20.3.1/30

No shutdown

Interface Ethernet1/3.140

Encapsulation dot1q 140

Vrf member DB

Ip address 10.20.4.1/30

No shutdown

Interface loopback0

Ip address 192.168.1.4/32

Ip router ospf 100 area 0.0.0.0

Ip pim sparse-mode

Line console

Line vty

Boot nxos bootflash:/nxos.7.0.3.I5.2.bin

Router ospf 100

Router-id 192.168.1.4

Log-adjacency-changes

Router bgp 65001

Router-id 192.168.1.4

Log-neighbor-changes

Address-family ipv4 unicast

Address-family l2 e

Neighbor 192.168.1.1

Remote-as 65001

Update-source loopback0

Address-family ipv4 unicast

Send-community

Send-community extended

Address-family l2 e

Send-community

Send-community extended

Neighbor 192.168.1.2

Remote-as 65001

Update-source loopback0

Address-family ipv4 unicast

Send-community

Send-community extended

Address-family l2 e

Send-community

Send-community extended

Vrf APP

Address-family ipv4 unicast

Advertise l2 e

Redistribute static route-map static2bgp

Maximum-paths 2

Default-information originate

Vrf CTRIX

Address-family ipv4 unicast

Advertise l2 e

Redistribute static route-map static2bgp

Maximum-paths ibgp 2

Default-information originate

Vrf DB

Address-family ipv4 unicast

Advertise l2 e

Redistribute static route-map static2bgp

Maximum-paths ibgp 2

Default-information originate

Vrf VM

Address-family ipv4 unicast

Advertise l2 e

Redistribute static route-map static2bgp

Maximum-paths ibgp 2

Default-information originate

EBay, please *

Vni 16004 l2

Rd auto

Vni 160011 l2

Rd auto

Route-target import auto

Route-target export auto

Vni 160021 l2

Rd auto

Route-target import auto

Route-target export auto

Vni 160031 l2

Rd auto

Route-target import auto

Route-target export auto

Vni 160041 l2

Rd auto

Route-target import auto

Route-target export auto

Ip tcp path-mtu-discovery

ISP configuration

=

!

Hostname ISP

!

Interface Loopback0

Ip address 123.103.15.129 255.255.255.255

!

Interface GigabitEthernet1.110

Encapsulation dot1Q 110

Ip address 10.20.1.2 255.255.255.252

!

Interface GigabitEthernet1.120

Encapsulation dot1Q 120

Ip address 10.20.2.2 255.255.255.252

!

Interface GigabitEthernet1.130

Encapsulation dot1Q 130

Ip address 10.20.3.2 255.255.255.252

!

Interface GigabitEthernet1.140

Encapsulation dot1Q 140

Ip address 10.20.4.2 255.255.255.252

!

Interface GigabitEthernet2

No ip address

Shutdown

Negotiation auto

!

Interface GigabitEthernet3

No ip address

Shutdown

Negotiation auto

!

Interface GigabitEthernet4

No ip address

Shutdown

Negotiation auto

!

!

Virtual-service csr_mgmt

!

Ip forward-protocol nd

!

No ip http server

No ip http secure-server

Ip route 10.63.0.0 255.255.0.0 GigabitEthernet1.120 10.20.2.1

Ip route 10.79.0.0 255.255.0.0 GigabitEthernet1.140 10.20.4.1

Ip route 10.133.0.0 255.255.0.0 GigabitEthernet1.110 10.20.1.1

Ip route 10.158.0.0 255.255.0.0 GigabitEthernet1.130 10.20.3.1

!

View NVE peer on leaf

=

Ping test the loopback address of external 123.103.15.129 on VPC

=

On how to achieve the VXLAN IBGP RR experiment to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report