ensp三层交换机
【摘要】 业务接入点配置Leaf-1配置interface GE1/0/2.100 mode l2encapsulation dot1q vid 100bridge-domain 10interface GE1/0/2.200 mode l2encapsulation dot1q vid 200bridge-domain 20Spine配置Leaf-2配置interface GE1/0/2.100 m...
业务接入点配置
Leaf-1配置
interface GE1/0/2.100 mode l2
encapsulation dot1q vid 100
bridge-domain 10
interface GE1/0/2.200 mode l2
encapsulation dot1q vid 200
bridge-domain 20
Spine配置
Leaf-2配置
interface GE1/0/2.100 mode l2
encapsulation dot1q vid 100
bridge-domain 10
配置静态VXLAN隧道
Leaf-1配置
interface Nve1
source 1.1.1.1
vni 10 head-end peer-list 3.3.3.3
vni 20 head-end peer-list 3.3.3.3
Spine配置
Leaf-2配置
interface Nve1
source 3.3.3.3
vni 10 head-end peer-list 1.1.1.1
vni 20 head-end peer-list 1.1.1.1
配置接入层
SW1,
vlan batch 100 200
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/23
port link-type access
port default vlan 100
配置静态VXLAN隧道
Leaf-1配置
interface Nve1
source 1.1.1.1
vni 10 head-end peer-list 3.3.3.3
vni 20 head-end peer-list 3.3.3.3
Spine配置
Leaf-2配置
interface Nve1
source 3.3.3.3
vni 10 head-end peer-list 1.1.1.1
vni 20 head-end peer-list 1.1.1.1
配置接入层
SW1,
vlan batch 100 200
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/23
port link-type access
port default vlan 100
设置vxlan
Leaf-1配置
bridge-domain 10
vxlan vni 1
q
int nve 1
source 1.1.1.1
vni 1 head-end peer-list 3.3.3.3
q
bridge-domain 20
vxlan vni 1
q
int nve 1
source 1.1.1.1
vni 1 head-end peer-list 3.3.3.3
q
commit
Leaf-2配置
bridge-domain 10
vxlan vni 1
q
int nve 1
source 3.3.3.3
vni 1 head-end peer-list 1.1.1.1
q
bridge-domain 20
vxlan vni 1
q
int nve 1
source 3.3.3.3
vni 1 head-end peer-list 1.1.1.1
q
commit
配置VXLAN三层网关
Leaf-1配置
interface Vbdif10
ip address 192.168.10.1 255.255.255.0
#
interface Vbdif20
ip address 192.168.20.1 255.255.255.0interface Vbdif10
ip address 192.168.10.1 255.255.255.0
#
interface Vbdif20
ip address 192.168.20.1 255.255.255.0
Spine配置
Leaf-2配置
interface Vbdif10
ip address 192.168.10.1 255.255.255.0
#
interface Vbdif20
ip address 192.168.20.1 255.255.255.0
【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
作者其他文章
评论(0)