2 实验2:基于Multicast实现Cisco VxLAN & 集中式网关

一、说明

  • 与上一篇"1 实验1:基于静态Ingress Replication实现Cisco VxLAN & 集中式网关"相同,基于Multicast实现VxLAN也是流量驱动式的MAC地址泛洪学习和VTEP邻居建立,没有控制层面;
  • 与基于Static Ingress Replication实现VxLAN不同,基于Multicast实现VxLAN无需手动为每个VNI配置peer;
  • 当有流量触发即数据驱动时,VTEP之间的隧道才会自动建立;
  • 与利用Static Ingress Replication实现BUM(广播、未知单播、组播)流量转发不同,基于Multicast实现BUM流量的转发可有效节省VTEP上行链路的带宽(具体参考组播网络特性)。

二、基于Multicast实现的VxLAN实验

2.1 实验环境

工具 版本 备注
EVE-NG 2.0.3-105 模拟器
Cisco Nexus 9000v 7.0.3.I7.8 支持VxLAN的交换机,拓扑中的N9K1、N9K-2、N9K-3和N9K-4
Wireshark 3.2.2 抓包软件

2.2 实验拓扑

image.png
  • N9K1、N9K-2、N9K-3和N9K-4运行OSPF协议;
  • N9K1、N9K-2、N9K-3和N9K-4运行PIM Sparse Mode,其中PIM RP为1.1.1.1;
  • 实现PC1、PC2和PC3能互通。

2.3 实验配置

2.3.1 配置Underlay三层网络

  • 设备的互联接口、Loopback接口都通告进OSPF Area 0。

N9K-1配置:

feature ospf
router ospf n9k-1
  router-id 1.1.1.1

interface Ethernet1/1
  no switchport
  mtu 9216
  ip address 10.1.1.1/30
  ip ospf network point-to-point
  ip router ospf n9k-1 area 0.0.0.0
  no shutdown

interface Ethernet1/2
  no switchport
  mtu 9216
  ip address 10.1.1.5/30
  ip ospf network point-to-point
  ip router ospf n9k-1 area 0.0.0.0
  no shutdown

interface Ethernet1/3
  no switchport
  mtu 9216
  ip address 10.1.1.9/30
  ip ospf network point-to-point
  ip router ospf n9k-1 area 0.0.0.0
  no shutdown

interface loopback0
  ip address 1.1.1.1/32
  ip router ospf n9k-1 area 0.0.0.0

N9K-2配置:

vlan 10
feature ospf
router ospf n9k-2
  router-id 2.2.2.2

interface Ethernet1/1
  no switchport
  mtu 9216
  ip address 10.1.1.2/30
  ip ospf network point-to-point
  ip router ospf n9k-2 area 0.0.0.0
  no shutdown

interface loopback0
  ip address 2.2.2.2/32
  ip router ospf n9k-2 area 0.0.0.0

interface Ethernet1/2
  switchport access vlan 10
  spanning-tree port type edge

N9K-3配置:

vlan 10
feature ospf
router ospf n9k-3
  router-id 3.3.3.3

interface Ethernet1/1
  no switchport
  mtu 9216
  ip address 10.1.1.6/30
  ip ospf network point-to-point
  ip router ospf n9k-3 area 0.0.0.0
  no shutdown

interface loopback0
  ip address 3.3.3.3/32
  ip router ospf n9k-3 area 0.0.0.0

interface Ethernet1/2
  switchport access vlan 10
  spanning-tree port type edge

N9K-4配置:

vlan 10
feature ospf
router ospf n9k-4
  router-id 4.4.4.4

interface Ethernet1/1
  no switchport
  mtu 9216
  ip address 10.1.1.10/30
  ip ospf network point-to-point
  ip router ospf n9k-4 area 0.0.0.0
  no shutdown

interface loopback0
  ip address 4.4.4.4/32
  ip router ospf n9k-4 area 0.0.0.0

interface Ethernet1/2
  switchport access vlan 10
  spanning-tree port type edge

配置验证:
查看N9K-1 OSPF路由表:

N9K-1# show  ip route ospf
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

2.2.2.2/32, ubest/mbest: 1/0
    *via 10.1.1.2, Eth1/1, [110/41], 2d10h, ospf-n9k-1, intra
3.3.3.3/32, ubest/mbest: 1/0
    *via 10.1.1.6, Eth1/2, [110/41], 2d10h, ospf-n9k-1, intra
4.4.4.4/32, ubest/mbest: 1/0
    *via 10.1.1.10, Eth1/3, [110/41], 2d10h, ospf-n9k-1, intra

查看N9K-2 OSPF路由表:

N9K-2# show ip route ospf
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

1.1.1.1/32, ubest/mbest: 1/0
    *via 10.1.1.1, Eth1/1, [110/41], 2d10h, ospf-n9k-2, intra
3.3.3.3/32, ubest/mbest: 1/0
    *via 10.1.1.1, Eth1/1, [110/81], 2d10h, ospf-n9k-2, intra
4.4.4.4/32, ubest/mbest: 1/0
    *via 10.1.1.1, Eth1/1, [110/81], 2d10h, ospf-n9k-2, intra
10.1.1.4/30, ubest/mbest: 1/0
    *via 10.1.1.1, Eth1/1, [110/80], 2d10h, ospf-n9k-2, intra
10.1.1.8/30, ubest/mbest: 1/0
    *via 10.1.1.1, Eth1/1, [110/80], 2d10h, ospf-n9k-2, intra

查看N9K-3 OSPF路由表:

N9K-3# show ip route ospf
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

1.1.1.1/32, ubest/mbest: 1/0
    *via 10.1.1.5, Eth1/1, [110/41], 2d10h, ospf-n9k-3, intra
2.2.2.2/32, ubest/mbest: 1/0
    *via 10.1.1.5, Eth1/1, [110/81], 2d10h, ospf-n9k-3, intra
4.4.4.4/32, ubest/mbest: 1/0
    *via 10.1.1.5, Eth1/1, [110/81], 2d10h, ospf-n9k-3, intra
10.1.1.0/30, ubest/mbest: 1/0
    *via 10.1.1.5, Eth1/1, [110/80], 2d10h, ospf-n9k-3, intra
10.1.1.8/30, ubest/mbest: 1/0
    *via 10.1.1.5, Eth1/1, [110/80], 2d10h, ospf-n9k-3, intra

查看N9K-4 OSPF路由表:

N9K-4# show ip route ospf
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

1.1.1.1/32, ubest/mbest: 1/0
    *via 10.1.1.9, Eth1/1, [110/41], 2d10h, ospf-n9k-4, intra
2.2.2.2/32, ubest/mbest: 1/0
    *via 10.1.1.9, Eth1/1, [110/81], 2d10h, ospf-n9k-4, intra
3.3.3.3/32, ubest/mbest: 1/0
    *via 10.1.1.9, Eth1/1, [110/81], 2d10h, ospf-n9k-4, intra
10.1.1.0/30, ubest/mbest: 1/0
    *via 10.1.1.9, Eth1/1, [110/80], 2d10h, ospf-n9k-4, intra
10.1.1.4/30, ubest/mbest: 1/0
    *via 10.1.1.9, Eth1/1, [110/80], 2d10h, ospf-n9k-4, intra

2.3.2 配置Underlay Multicast网络

  • 设备的互联接口、Loopback接口都启用Multicast。

N9K-1配置:

feature pim
ip pim rp-address 1.1.1.1 group-list 239.0.0.0/24

interface loopback0
  ip pim sparse-mode

interface Ethernet1/1
  ip pim sparse-mode

interface Ethernet1/2
  ip pim sparse-mode

interface Ethernet1/3
  ip pim sparse-mode

N9K-2配置:

feature pim
ip pim rp-address 1.1.1.1 group-list 239.0.0.0/24

interface loopback0
  ip pim sparse-mode

interface Ethernet1/1
  ip pim sparse-mode

N9K-3配置:

feature pim
ip pim rp-address 1.1.1.1 group-list 239.0.0.0/24

interface loopback0
  ip pim sparse-mode

interface Ethernet1/1
  ip pim sparse-mode

N9K-4配置:

feature pim
ip pim rp-address 1.1.1.1 group-list 239.0.0.0/24

interface loopback0
  ip pim sparse-mode

interface Ethernet1/1
  ip pim sparse-mode

配置验证:

  • 首先应使用命令"show ip pim neighbor"检查组播邻居;
  • 当有BUM报文触发组播流量后才会有完整组播路由表,以下组播路由表为参考。

查看N9K-1 Multicast路由表:

N9K-1# show  ip mroute 
IP Multicast Routing Table for VRF "default"

(*, 232.0.0.0/8), uptime: 06:25:14, pim ip 
  Incoming interface: Null, RPF nbr: 0.0.0.0
  Outgoing interface list: (count: 0)

(*, 239.0.0.1/32), uptime: 06:11:39, pim ip 
  Incoming interface: loopback0, RPF nbr: 1.1.1.1
  Outgoing interface list: (count: 3)
    Ethernet1/1, uptime: 00:00:49, pim
    Ethernet1/2, uptime: 00:00:55, pim
    Ethernet1/3, uptime: 00:01:02, pim

(2.2.2.2/32, 239.0.0.1/32), uptime: 06:11:18, pim mrib ip 
  Incoming interface: Ethernet1/1, RPF nbr: 10.1.1.2, internal
  Outgoing interface list: (count: 3)
    Ethernet1/1, uptime: 00:00:49, pim, (RPF)
    Ethernet1/2, uptime: 00:00:55, pim
    Ethernet1/3, uptime: 00:01:02, pim

(3.3.3.3/32, 239.0.0.1/32), uptime: 06:11:06, pim mrib ip 
  Incoming interface: Ethernet1/2, RPF nbr: 10.1.1.6, internal
  Outgoing interface list: (count: 3)
    Ethernet1/1, uptime: 00:00:49, pim
    Ethernet1/2, uptime: 00:00:55, pim, (RPF)
    Ethernet1/3, uptime: 00:01:02, pim

(4.4.4.4/32, 239.0.0.1/32), uptime: 06:10:58, pim mrib ip 
  Incoming interface: Ethernet1/3, RPF nbr: 10.1.1.10, internal
  Outgoing interface list: (count: 3)
    Ethernet1/3, uptime: 00:00:39, pim, (RPF)
    Ethernet1/1, uptime: 00:00:49, pim
    Ethernet1/2, uptime: 00:00:55, pim

查看N9K-2 Multicast路由表:

N9K-2# show  ip mroute 
IP Multicast Routing Table for VRF "default"

(*, 232.0.0.0/8), uptime: 06:26:48, pim ip 
  Incoming interface: Null, RPF nbr: 0.0.0.0
  Outgoing interface list: (count: 0)

(*, 239.0.0.1/32), uptime: 06:13:07, ip pim nve 
  Incoming interface: Ethernet1/1, RPF nbr: 10.1.1.1
  Outgoing interface list: (count: 1)
    nve1, uptime: 00:02:16, nve

(2.2.2.2/32, 239.0.0.1/32), uptime: 06:13:07, mrib ip pim nve 
  Incoming interface: loopback0, RPF nbr: 2.2.2.2
  Outgoing interface list: (count: 1)
    Ethernet1/1, uptime: 00:02:29, pim

查看N9K-3 Multicast路由表:

N9K-3# show  ip mroute 
IP Multicast Routing Table for VRF "default"

(*, 232.0.0.0/8), uptime: 06:26:50, pim ip 
  Incoming interface: Null, RPF nbr: 0.0.0.0
  Outgoing interface list: (count: 0)

(*, 239.0.0.1/32), uptime: 06:13:15, ip pim nve 
  Incoming interface: Ethernet1/1, RPF nbr: 10.1.1.5
  Outgoing interface list: (count: 1)
    nve1, uptime: 00:02:36, nve

(3.3.3.3/32, 239.0.0.1/32), uptime: 06:13:15, mrib ip pim nve 
  Incoming interface: loopback0, RPF nbr: 3.3.3.3
  Outgoing interface list: (count: 1)
    Ethernet1/1, uptime: 00:02:43, pim

查看N9K-4 Multicast路由表:

N9K-4# show ip mroute 
IP Multicast Routing Table for VRF "default"

(*, 232.0.0.0/8), uptime: 06:27:20, pim ip 
  Incoming interface: Null, RPF nbr: 0.0.0.0
  Outgoing interface list: (count: 0)

(*, 239.0.0.1/32), uptime: 06:13:47, ip pim nve 
  Incoming interface: Ethernet1/1, RPF nbr: 10.1.1.9
  Outgoing interface list: (count: 1)
    nve1, uptime: 00:03:21, nve

(4.4.4.4/32, 239.0.0.1/32), uptime: 06:13:47, mrib ip pim nve 
  Incoming interface: loopback0, RPF nbr: 4.4.4.4
  Outgoing interface list: (count: 1)
    Ethernet1/1, uptime: 00:03:14, pim

2.3.3 配置Overlay网络

  • 同一VNI都加入到相同组播组,本实验中组播组为239.0.0.1。

N9K-2配置:

vlan 10
  vn-segment 10010

interface nve1
  no shutdown
  source-interface loopback0
  member vni 10010
    mcast-group 239.0.0.1

N9K-3配置:

vlan 10
  vn-segment 10010

interface nve1
  no shutdown
  source-interface loopback0
  member vni 10010
    mcast-group 239.0.0.1

N9K-4配置:

vlan 10
  vn-segment 10010

interface nve1
  no shutdown
  source-interface loopback0
  member vni 10010
    mcast-group 239.0.0.1

配置验证:
查看N9K-2 NVE的VNI和Peers状态:

N9K-2# show nve vni
Codes: CP - Control Plane        DP - Data Plane          
       UC - Unconfigured         SA - Suppress ARP        
       SU - Suppress Unknown Unicast 
       Xconn - Crossconnect      
       MS-IR - Multisite Ingress Replication
 
Interface VNI      Multicast-group   State Mode Type [BD/VRF]      Flags
--------- -------- ----------------- ----- ---- ------------------ -----
nve1      10010    239.0.0.1         Up    DP   L2 [10]                 

N9K-2# show nve peers 
N9K-2#

查看N9K-3 NVE的VNI和Peers状态:

N9K-3# show nve vni
Codes: CP - Control Plane        DP - Data Plane          
       UC - Unconfigured         SA - Suppress ARP        
       SU - Suppress Unknown Unicast 
       Xconn - Crossconnect      
       MS-IR - Multisite Ingress Replication
 
Interface VNI      Multicast-group   State Mode Type [BD/VRF]      Flags
--------- -------- ----------------- ----- ---- ------------------ -----
nve1      10010    239.0.0.1         Up    DP   L2 [10]                 

N9K-3# show nve peers
N9K-3# 

查看N9K-4 NVE的VNI和Peers状态:

N9K-4# show nve vni
Codes: CP - Control Plane        DP - Data Plane          
       UC - Unconfigured         SA - Suppress ARP        
       SU - Suppress Unknown Unicast 
       Xconn - Crossconnect      
       MS-IR - Multisite Ingress Replication
 
Interface VNI      Multicast-group   State Mode Type [BD/VRF]      Flags
--------- -------- ----------------- ----- ---- ------------------ -----
nve1      10010    239.0.0.1         Up    DP   L2 [10]                 

N9K-4# show nve peers
N9K-4# 

从以上结果可看出,目前VTEP之间并没有VxLAN隧道建立。

2.4 实验验证

2.4.1 PC IP配置

PC1配置:

VPCS> show ip all
NAME   IP/MASK              GATEWAY           MAC                DNS
VPCS1  172.16.1.1/24        0.0.0.0           00:50:79:66:68:05  

PC2配置:

VPCS> show ip all 
NAME   IP/MASK              GATEWAY           MAC                DNS
VPCS1  172.16.1.2/24        0.0.0.0           00:50:79:66:68:06 

PC3配置:

VPCS> show ip all 
NAME   IP/MASK              GATEWAY           MAC                DNS
VPCS1  172.16.1.3/24        0.0.0.0           00:50:79:66:68:07  

2.4.2 触发流量

PC1触发流量:

VPCS> ping 172.16.1.2
host (172.16.1.2) not reachable

VPCS> ping 172.16.1.2
84 bytes from 172.16.1.2 icmp_seq=1 ttl=64 time=44.744 ms
84 bytes from 172.16.1.2 icmp_seq=2 ttl=64 time=49.071 ms
84 bytes from 172.16.1.2 icmp_seq=3 ttl=64 time=34.025 ms
84 bytes from 172.16.1.2 icmp_seq=4 ttl=64 time=43.254 ms
84 bytes from 172.16.1.2 icmp_seq=5 ttl=64 time=32.700 ms

VPCS> ping 172.16.1.3
84 bytes from 172.16.1.3 icmp_seq=1 ttl=64 time=45.851 ms
84 bytes from 172.16.1.3 icmp_seq=2 ttl=64 time=47.016 ms
84 bytes from 172.16.1.3 icmp_seq=3 ttl=64 time=44.488 ms
84 bytes from 172.16.1.3 icmp_seq=4 ttl=64 time=43.073 ms
84 bytes from 172.16.1.3 icmp_seq=5 ttl=64 time=65.783 ms

PC2触发流量:

VPCS> ping  172.16.1.3
host (172.16.1.3) not reachable

VPCS> ping  172.16.1.3
84 bytes from 172.16.1.3 icmp_seq=1 ttl=64 time=34.228 ms
84 bytes from 172.16.1.3 icmp_seq=2 ttl=64 time=27.838 ms
84 bytes from 172.16.1.3 icmp_seq=3 ttl=64 time=62.914 ms
84 bytes from 172.16.1.3 icmp_seq=4 ttl=64 time=47.581 ms
84 bytes from 172.16.1.3 icmp_seq=5 ttl=64 time=25.724 ms

2.4.3 检查VxLAN隧道

N9K-2 VxLAN隧道:

N9K-2# show nve peers 
Interface Peer-IP          State LearnType Uptime   Router-Mac       
--------- ---------------  ----- --------- -------- -----------------
nve1      3.3.3.3          Up    DP        00:02:30 n/a              
nve1      4.4.4.4          Up    DP        00:02:20 n/a  

N9K-3 VxLAN隧道:

N9K-3# show nve peers
Interface Peer-IP          State LearnType Uptime   Router-Mac       
--------- ---------------  ----- --------- -------- -----------------
nve1      2.2.2.2          Up    DP        00:02:42 n/a              
nve1      4.4.4.4          Up    DP        00:02:14 n/a   

N9K-4 VxLAN隧道:

N9K-4# show nve peers
Interface Peer-IP          State LearnType Uptime   Router-Mac       
--------- ---------------  ----- --------- -------- -----------------
nve1      2.2.2.2          Up    DP        00:02:55 n/a              
nve1      3.3.3.3          Up    DP        00:02:28 n/a  

从以上结果可看出,经过流量触发后,VTEP间的VxLAN隧道才会自动建立。

2.4.4 检查VxLAN MAC地址表

N9K-2 MAC地址表:

N9K-2# show system internal l2fwder mac 
Legend: 
        * - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
        age - seconds since last seen,+ - primary entry using vPC Peer-Link,
        (T) - True, (F) - False, C - ControlPlane MAC
   VLAN     MAC Address      Type      age     Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
*    10    0050.7966.6805   dynamic   00:00:58   F     F     Eth1/2  
*    10    0050.7966.6806   dynamic   00:00:58   F     F  (0x47000001) nve-peer1
 3.3.3.3  
*    10    0050.7966.6807   dynamic   00:00:56   F     F  (0x47000002) nve-peer2
 4.4.4.4 

N9K-3 MAC地址表:

N9K-3# show system internal l2fwder mac 
Legend: 
        * - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
        age - seconds since last seen,+ - primary entry using vPC Peer-Link,
        (T) - True, (F) - False, C - ControlPlane MAC
   VLAN     MAC Address      Type      age     Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
*    10    0050.7966.6805   dynamic   00:01:25   F     F  (0x47000001) nve-peer1
 2.2.2.2  
*    10    0050.7966.6806   dynamic   00:01:25   F     F     Eth1/2  
*    10    0050.7966.6807   dynamic   00:01:16   F     F  (0x47000002) nve-peer2
 4.4.4.4  

N9K-4 MAC地址表:

N9K-4# show system internal l2fwder mac 
Legend: 
        * - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
        age - seconds since last seen,+ - primary entry using vPC Peer-Link,
        (T) - True, (F) - False, C - ControlPlane MAC
   VLAN     MAC Address      Type      age     Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
*    10    0050.7966.6805   dynamic   00:01:28   F     F  (0x47000001) nve-peer1
 2.2.2.2  
*    10    0050.7966.6806   dynamic   00:01:19   F     F  (0x47000002) nve-peer2
 3.3.3.3  
*    10    0050.7966.6807   dynamic   00:01:27   F     F     Eth1/2  

有关MAC地址详细学习流程可参考"实验1:基于静态Ingress Replication实现Cisco VxLAN "。

2.5 报文分析

2.5.1 BUM报文分析

  • 对N9K-2的E1/1口抓包;
  • 清空PC1和PC2的ARP表,从PC1 ping PC2。

清空PC1的ARP表:

VPCS> arp
00:50:79:66:68:06  172.16.1.2 expires in 118 seconds 

VPCS> clear arp

VPCS> arp
arp table is empty
VPCS> 

清空PC2的ARP表:

VPCS> arp
00:50:79:66:68:05  172.16.1.1 expires in 93 seconds 

VPCS> clear arp

VPCS> arp
arp table is empty
VPCS> 

BUM报文抓包:
以ARP请求报文为例

image.png

组播转发说明:

  • 在N9K-1即PIM RP上,对于来自2.2.2.2并去往239.0.0.1的数据包,N9K-1会将该数据包转发至E1/2和E1/3接口;
  • 同理,从任何源去往239.0.0.1数据包,数据包都会被转发到所有其它加入组播组239.0.0.1的VTEP;
  • 与基于Static Ingress Replication实现VxLAN不同,基于Multicast实现VxLAN中的BUM流量由Underlay的组播网络传输;
  • 最佳实践:使用Anycast RP以实现RP的负载均衡和冗余(本实验未使用Anycast RP),下图为Cisco Nexus交换机Anycast RP配置示例:
    image.png

2.5.2 单播报文分析

  • 对N9K-2的E1/1口抓包;

单播报文抓包:
以ARP回复报文为例

image.png

三、集中式网关

  • 目标:N9K-2作为集中式网关,更改PC3的IP为172.16.2.1,实现PC3能与PC1、PC2互访;
  • 不再演示外部路由设备作为网关,外部路由设备作为网关可参考实验1;
  • 不再演示抓包。

变更N9K-2的配置:

feature interface-vlan
vlan 20
  vn-segment 10020
interface Vlan10
  no shutdown
  ip address 172.16.1.254/24
interface Vlan20
  no shutdown
  ip address 172.16.2.254/24
interface nve1
  member vni 10020
    mcast-group 239.0.0.2

变更N9K-4的配置:

vlan 20
  vn-segment 10020
interface nve1
  no member vni 10010
  member vni 10020
    mcast-group 239.0.0.2
interface Ethernet1/2
  switchport access vlan 20

变更PC1的配置-配上网关:

VPCS> ip 172.16.1.1 255.255.255.0  172.16.1.254
Checking for duplicate address...
PC1 : 172.16.1.1 255.255.255.0 gateway 172.16.1.254

变更PC2的配置-配上网关:

VPCS> ip 172.16.1.2 255.255.255.0  172.16.1.254
Checking for duplicate address...
PC1 : 172.16.1.2 255.255.255.0 gateway 172.16.1.254

变更PC3的配置-修改IP:

VPCS> ip 172.16.2.1 255.255.255.0  172.16.2.254
Checking for duplicate address...
PC1 : 172.16.2.1 255.255.255.0 gateway 172.16.2.254

测试:
从PC3 ping PC1

VPCS> ping  172.16.1.1
84 bytes from 172.16.1.1 icmp_seq=1 ttl=63 time=44.051 ms
84 bytes from 172.16.1.1 icmp_seq=2 ttl=63 time=52.670 ms
84 bytes from 172.16.1.1 icmp_seq=3 ttl=63 time=94.949 ms
84 bytes from 172.16.1.1 icmp_seq=4 ttl=63 time=48.976 ms
84 bytes from 172.16.1.1 icmp_seq=5 ttl=63 time=50.364 ms

从PC3 ping PC2

VPCS> ping  172.16.1.2
84 bytes from 172.16.1.2 icmp_seq=1 ttl=63 time=66.403 ms
84 bytes from 172.16.1.2 icmp_seq=2 ttl=63 time=68.189 ms
84 bytes from 172.16.1.2 icmp_seq=3 ttl=63 time=67.867 ms
84 bytes from 172.16.1.2 icmp_seq=4 ttl=63 time=86.699 ms
84 bytes from 172.16.1.2 icmp_seq=5 ttl=63 time=75.751 ms

从PC2 ping PC1

VPCS> ping 172.16.1.1
84 bytes from 172.16.1.1 icmp_seq=1 ttl=64 time=41.983 ms
84 bytes from 172.16.1.1 icmp_seq=2 ttl=64 time=46.274 ms
84 bytes from 172.16.1.1 icmp_seq=3 ttl=64 time=40.682 ms
84 bytes from 172.16.1.1 icmp_seq=4 ttl=64 time=51.736 ms
84 bytes from 172.16.1.1 icmp_seq=5 ttl=64 time=44.748 ms

如果集中式网关配置完毕并检查无误后,如果不通,可尝试保存并重启N9K!

四、总结

基于Static Ingress Replications实现VxLAN优势:

  • VTEP的受控部署;
  • 简化故障排除流程。

基于Static Ingress Replications实现VxLAN劣势:

  • 配置和维护负担增加;
  • 必须在每个VTEP上手工配置每个peer,容易出现配置错误。

基于Multicast实现VxLAN优势:

  • 减少配置和维护负担;
  • 具有灵活的可扩展性;
  • 有效减少VTEP上行链路带宽占用,因为VTEP仅需将BUM流量的一份副本发给RP,RP再转发给其它VTEP;
  • 配置简单,流量触发后自动建立VxLAN隧道。

基于Multicast实现VxLAN劣势:

  • 每个VNI使用一个组播组;
  • 使用组播协议会增加排错复杂性。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 211,948评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,371评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,490评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,521评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,627评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,842评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,997评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,741评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,203评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,534评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,673评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,339评论 4 330
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,955评论 3 313
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,770评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,000评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,394评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,562评论 2 349