码迷,mamicode.com
首页 > 其他好文 > 详细

OSPF动态路由实现Vxlan的链路备份

时间:2019-02-27 14:34:34      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:routing   ESS   tin   cad   network   cas   mem   roc   abi   

OSPF动态路由实现组播Vxlan的链路备份

技术图片

线路2是否会成为线路1的备份链路呢??

默认NXOS-1到NX0S-2走 线路1 ,实现Vxlan。

技术图片

技术图片

当在R1上手动将f1/1 down掉,

vpc2 ping vpc1 丢几个包:
技术图片

NXOS-1到NX0S-2也变成了线路2 ,实现Vxlan。

技术图片

再手动切回来:

技术图片

路由已经切换成线路1 。

技术图片

配置贴

NXOS-1

feature ospf
feature pim
feature vn-segment-vlan-based
feature nv overlay

vlan 1,11
ip pim rp-address 2.2.2.2 group-list 224.0.0.0/4

vlan 11
  vn-segment 10011

interface nve1
  no shutdown
  source-interface loopback0
  member vni 10011 mcast-group 230.1.1.1

interface Ethernet1/1
  no switchport
  ip address 1.1.1.1/24
  ip router ospf 1 area 0.0.0.0
  ip pim sparse-mode
  no shutdown

interface Ethernet1/2
  switchport access vlan 11

interface mgmt0
  vrf member management
  ip address 172.16.2.1/24

interface loopback0
  ip address 2.2.2.1/32
  ip router ospf 1 area 0.0.0.0
  ip pim sparse-mode

router ospf 1
  router-id 2.2.2.1

R1

ip multicast-routing 

interface Loopback0
 ip address 2.2.2.2 255.255.255.0
 ip pim sparse-mode
!
interface FastEthernet0/0
 ip address 4.1.1.1 255.255.255.0
 ip pim sparse-mode
 speed 100
 full-duplex

interface FastEthernet1/0
 no switchport
 ip address 1.1.1.2 255.255.255.0
 ip pim sparse-mode
 load-interval 30

interface FastEthernet1/1
 no switchport
 ip address 3.1.1.1 255.255.255.0
 ip pim sparse-mode
 load-interval 30

interface FastEthernet1/3
 no switchport
 ip address 8.8.8.8 255.255.255.0

router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 network 1.1.1.0 0.0.0.255 area 0
 network 2.2.2.2 0.0.0.0 area 0
 network 3.1.1.0 0.0.0.255 area 0
 network 4.1.1.0 0.0.0.255 area 0

R2

ospf 1 router-id 2.2.2.4
 area 0.0.0.0
  network 2.1.1.0 0.0.0.255
  network 2.2.2.4 0.0.0.0
  network 3.1.1.0 0.0.0.255
  network 5.1.1.0 0.0.0.255

interface LoopBack0
 ip address 2.2.2.4 255.255.255.0
 pim sm

interface GigabitEthernet1/0
 port link-mode route
 ip address 2.1.1.2 255.255.255.0
 pim sm

interface GigabitEthernet2/0
 port link-mode route
 ip address 3.1.1.2 255.255.255.0
 pim sm

interface GigabitEthernet3/0
 port link-mode route
 ip address 5.1.1.1 255.255.255.0
 pim sm

multicast routing

R3

ip multicast-routing 

interface Loopback0
 ip address 2.2.2.5 255.255.255.255
 ip pim sparse-mode

interface FastEthernet0/0
 ip address 4.1.1.2 255.255.255.0
 ip pim sparse-mode
 speed 100
 full-duplex

interface FastEthernet0/1
 ip address 5.1.1.2 255.255.255.0
 ip pim sparse-mode
 speed auto
 full-duplex

router ospf 1
 router-id 2.2.2.5
 log-adjacency-changes
 network 2.2.2.5 0.0.0.0 area 0
 network 4.1.1.0 0.0.0.255 area 0
 network 5.1.1.0 0.0.0.255 area 0

NXOS-2

feature ospf
feature pim
feature vn-segment-vlan-based
feature nv overlay

vlan 1,11
ip pim rp-address 2.2.2.2 group-list 224.0.0.0/4

vlan 11
  vn-segment 10011

vrf context management

interface nve1
  no shutdown
  source-interface loopback0
  member vni 10011
    mcast-group 230.1.1.1

interface Ethernet1/1
  no switchport
  ip address 2.1.1.1/24
  ip router ospf 1 area 0.0.0.0
  ip pim sparse-mode
  no shutdown

interface Ethernet1/2
  switchport access vlan 11

interface mgmt0
  vrf member management
  ip address 172.16.2.2/24

interface loopback0
  ip address 2.2.2.3/32
  ip router ospf 1 area 0.0.0.0
  ip pim sparse-mode

router ospf 1
  router-id 2.2.2.3

OSPF动态路由实现Vxlan的链路备份

标签:routing   ESS   tin   cad   network   cas   mem   roc   abi   

原文地址:https://blog.51cto.com/506554897/2355539

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!