VxLAN二层互通-隧道方式

VxLAN基础实验

实验目的:服务器1能ping通服务器2

在这里插入图片描述

实验步骤
1、Spaine-Leaf IGP全通

Leaf1:

interface LoopBack0
 ip address 1.1.1.1 255.255.255.255
#
interface GE1/0/0
 undo portswitch
 undo shutdown
 ip address 10.1.1.1 255.255.255.252
#
ospf 1 router-id 1.1.1.1
 area 0.0.0.0
  network 1.1.1.1 0.0.0.0
  network 10.1.1.0 0.0.0.3
#

Leaf2:

interface LoopBack0
 ip address 2.2.2.2 255.255.255.255
#
interface GE1/0/0
 undo portswitch
 undo shutdown
 ip address 10.1.1.6 255.255.255.252
#
ospf 1 router-id 2.2.2.2
 area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 10.1.1.4 0.0.0.3
#

Spine:

interface LoopBack0
 ip address 3.3.3.3 255.255.255.255
#
interface GE1/0/0
 undo portswitch
 undo shutdown
 ip address 10.1.1.2 255.255.255.252
#
interface GE1/0/1
 undo portswitch
 undo shutdown
 ip address 10.1.1.5 255.255.255.252
#
ospf 1 router-id 3.3.3.3
 area 0.0.0.0
  network 3.3.3.3 0.0.0.0
  network 10.1.1.0 0.0.0.3
  network 10.1.1.4 0.0.0.3
#
2、Leaf VxLAN配置

Leaf1:

bridge-domain 10
 vxlan vni 10
#

Leaf2:

bridge-domain 10
 vxlan vni 10
#
3、Leaf NVE配置

Leaf1:

interface Nve1
 source 1.1.1.1
 vni 10 head-end peer-list 2.2.2.2
#

Leaf2:

interface Nve1
 source 2.2.2.2
 vni 10 head-end peer-list 1.1.1.1
#
4、Leaf 子接口配置

Leaf1:

interface GE1/0/1
 undo shutdown
#
interface GE1/0/1.1 mode l2
 encapsulation dot1q vid 10
 bridge-domain 10
#

Leaf2:

interface GE1/0/1
 undo shutdown
#
interface GE1/0/1.1 mode l2
 encapsulation dot1q vid 10
 bridge-domain 10
#
5、SW交换机接口配置

SW1:

vlan batch 10
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 10
#

SW2:

vlan batch 10
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 10
#
6、业务测试

在这里插入图片描述

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

数通学习记录

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值