#leaf-設備
l2vpn enable
vlan 10 20
vxlan tunnel arp-learning disable
vxlan tunnel mac-learning disable
vsi vpna
#,開啟arp抑製功能,關閉廣播泛洪 禁止廣播、未知單播和未知組播數據幀向遠端站點泛洪。 statistics enable命令用來開啟以太網服務實例的報文統計功能
# arp suppression enable
# flooding disable all
vxlan 10
quit
# 實例下啟用evpn來創建bum隧道 EVPN使用三類路由創建 傳遞二層路由 不涉及 1 4 5 除非引入外部路由時才涉及
evpn encapsulation vxlan
route-distinguisher 10:10
vpn-target 10:10 export-extcommunity
vpn-target 10:10 import-extcommunity
vsi vpnb
# arp suppression enable
# flooding disable all
vxlan 20
quit
evpn encapsulation vxlan
route-distinguisher 20:20
vpn-target 20:20 export-extcommunity
vpn-target 20:20 import-extcommunity
bgp 100
ip vpn-instance a
address-family ipv4
balance 4
network 0.0.0.0 0.0.0.0
return
sy
#
bgp 100
peer 173.16.19.100 as-number 100
peer 173.16.19.100 connect-interface LoopBack0
peer 173.16.19.200 as-number 100
peer 173.16.19.200 connect-interface LoopBack0
#
address-family l2vpn evpn
peer 173.16.19.100 enable
peer 173.16.19.200 enable
#
q
#S10510X的配置
q
# graceful-restart 平滑重啟 雙機
#
bgp 100
# graceful-restart
peer 173.16.19.80 as-number 100
peer 173.16.19.80 connect-interface LoopBack0
peer 173.16.19.90 as-number 100
peer 173.16.19.90 connect-interface LoopBack0
#
address-family l2vpn evpn
undo policy vpn-target
peer 173.16.19.80 enable
peer 173.16.19.80 reflect-client
peer 173.16.19.90 enable
peer 173.16.19.90 reflect-client
#
q
#S10510X
q
# leaf設備
# 根據用戶側以太網服務實例的報文匹配規則創建IPL上的AC時,
# 用戶側以太網服務實例配置的報文匹配規則隻能為匹配報文的外層VLAN tag(encapsulation s-vid vlan-id)、
# 匹配不攜帶VLAN tag的所有報文(encapsulation untagged),且AC的接入模式必須為VLAN模式。
# 采用VXLAN ID映射方式生成IPL上動態AC的報文匹配規則,AC的接入模式必須為VLAN模式。
#
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type access
port access vlan 10
combo enable fiber
vtep access port
#
service-instance 10
encapsulation s-vid 10
xconnect vsi vpna
#
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type access
port access vlan 20
combo enable fiber
vtep access port
#
service-instance 20
encapsulation s-vid 20
xconnect vsi vpnb
#
# VXLAN L3
# leaf
# 創建IPV4地址族 vpn實例 讓IRB二類學習
# RD 無所謂
# vpn名字 這裏是a也無所謂
# 隻要rt相同就會學習
# vsi 10 20 這裏隔離了 因為vpn名字本地會隔離
#
ip vpn-instance a
route-distinguisher 1000:1000
#
address-family ipv4
import-route direct
vpn-target 1000:1000 import-extcommunity
vpn-target 1000:1000 export-extcommunity
#
address-family evpn
vpn-target 1000:1000 import-extcommunity
vpn-target 1000:1000 export-extcommunity
#
return
sy
# distributed-gateway local開啟分布式網關
#
interface Vsi-interface10
ip binding vpn-instance a
ip address 192.168.10.254 255.255.255.0
local-proxy-arp enable
mac-address 0001-0001-0001
distributed-gateway local
#
#
interface Vsi-interface20
ip binding vpn-instance a
local-proxy-arp enable
ip address 192.168.20.254 255.255.255.0
mac-address 0002-0002-0002
distributed-gateway local
#
# 關聯實例 綁定vsi接口
# 這些都是L2 vni
vsi vpna
gateway Vsi-interface 10
vsi vpnb
gateway Vsi-interface 20
# 配置L3 vni
# 這裏UP主覺得多此一舉 華為的直接在ipv4地址族下配置的
# 這裏 1111 無所謂倆台leaf相同即可
#
interface Vsi-interface8191
ip binding vpn-instance a
l3-vni 1000
#
# S10510上
# 開啟L2VPN 關閉自動學習arp
l2vpn enable
vxlan tunnel arp-learning disable
# 創建vpn實例與leaf設備的實例rt相匹配
ip vpn-instance a
route-distinguisher 1000:1000
#
address-family ipv4
vpn-target 1000:1000 import-extcommunity
vpn-target 1000:1000 export-extcommunity
#
address-family evpn
vpn-target 1000:1000 import-extcommunity
vpn-target 1000:1000 export-extcommunity
# 創建vsi三層接口綁定vpn實例
interface Vsi-interface 2401
description SDN_VRF_VSI_Interface_24001
ip binding vpn-instance a
l3-vni 1000
bgp 65205 instance SDN_INSTANCE_BGP
ip vpn-instance a
address-family ipv4 unicast
import-route ospf 3
# 引入bgp路由
ospf 3 vpn-instance a
import-route bgp 100 allow-ibgp
area 0.0.0.0
network 0.0.0.0 0.0.0.0
# xxx配置
int g1/0/1
port link-mode route
ip add 1.1.1.2 30
ospf
ar 0
net 0.0.0.0 0.0.0.0
如果是這種情況,建議聯係400熱線或對接渠道H3C認證代理商溝通下細節吧。目前看標準vxlan就行了。如果想簡化配置和管理維護的話