H3C S6800 EVPN分布式VXLAN IP网关典型配置
功能需求
·    PCAPCB分别模拟不同站点的主机;
·    PCAPCB处在不同VXLAN
·    S6800AS6800B作为分布式EVPN VXLAN网关设备;
·    S6800C作为RR设备负责反射BGP路由;
·    通过配置分布式EVPN网关实现不同VXLAN之间的三层互通;
组网信息及描述
配置步骤
1、配置PC IP地址
分别配置PCAPCB IP地址为10.1.1.1 20.1.1.1 其网关分别是10.1.1.254/2420.1.1.254/2430.1.1.254/24
2、配置S6800A交换机
步骤一:配置VXLAN.bin的文件怎么打开的硬件资源模式(需重启设备生效)。
<H3C> system-view
[H3C] hardware-resource vxlan l3gw8k
步骤二:配置VLAN 1013PCA连接端口属于VLAN10S6800AS6800C互联口属于VLAN13
[H3C] vlan 10
[H3C-vlan10]quit
[H3C] vlan 13
[H3C-vlan13]quit
[H3C] interface Ten-GigabitEthernet1/0/10
[H3C-Ten-GigabitEthernet1/0/10] port access vlan 10 
[H3C] interface Ten-GigabitEthernet1/0/2
[H3C-Ten-GigabitEthernet1/0/2] port access vlan 13
步骤三:创建Loopback 1接口
[H3C]interface LoopBack 1
[H3C-LoopBack1]ip address 1.1.1.1 32
步骤四:创建vlan13虚接口
[H3C]interface Vlan-interface 13
[H3C-Vlan-interface13]ip address 13.1.1.1 30
步骤五:配置OSPF,使得设备之间IP可达
[H3C]ospf 1
[H3C-ospf-1]area 0
[H3C-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.3
[H3C-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
步骤六:开启L2VPN功能
[H3C] l2vpn enable
步骤七:关闭远端MAC地址和远端ARP花盛开自动学习功能
[H3C] vxlan tunnel mac-learning disable
[H3C] vxlan tunnel arp-learning disable
步骤八:创建VSI,并进入VSI视图(这里12即创建的VSI名称),并分别关联VXLAN100200
[H3C]vsi 1
[H3C-vsi-1]vxlan 100
[H3C-vsi-1-vxlan-100]quit
[H3C-vsi-1]quit
[H3C]vsi 2
[H3C-vsi-2]vxlan 200
[H3C-vsi-2-vxlan-200]quit
[H3C-vsi-2]quit
步骤九:在给数学老师的祝福语VSI实例1下创建EVPN实例,并配置自动生成EVPN实例的RDRT
[H3C] vsi 1
[H3C-vsi-1] evpn encapsulation vxlan
[H3C-vsi-1-evpn-vxlan] route-distinguisher auto
[H3C-vsi-1-evpn-vxlan] vpn-target auto
[H3C-vsi-1-evpn-vxlan] quit
步骤十:在VSI实例2下创建EVPN实例,并配置自动生成EVPN实例的RDRT
[H3C] vsi 2
[H3C-vsi-2] evpn encapsulation vxlan
毕业留言给学生
[H3C-vsi-2-evpn-vxlan] route-distinguisher auto
[H3C-vsi-2-evpn-vxlan] vpn-target auto
[H3C-vsi-2-evpn-vxlan] quit
步骤十一:配置BGP发布EVPN路由
[H3C]bgp 100
[H3C-bgp-default] peer 3.3.3.3 as-number 100
冬奥会中国金牌获得者
[H3C-bgp-default] peer 3.3.3.3 connect-interface LoopBack1
[H3C-bgp-default]address-family l2vpn evpn
[H3C-bgp-default-evpn]peer 3.3.3.3 enable
步骤十二:创建以太网服务实例1及配置封装模式,并使其与VSI关联
[H3C]interface Ten-GigabitEthernet 1/0/10
[H3C-Ten-GigabitEthernet1/0/10]service-instance 1
[H3C-Ten-GigabitEthernet1/0/10-srv1]encapsulation s-vid 10
[H3C-Ten-GigabitEthernet1/0/10-srv1]xconnect vsi 1
步骤十三:配置L3VNIRDRT
[H3C] ip vpn-instance 1
[H3C-vpn-instance-1] route-distinguisher 1:1
[H3C-vpn-instance-1] address-family ipv4
[H3C-vpn-ipv4-1] vpn-target 2:2
[H3C-vpn-ipv4-1] quit
[H3C-vpn-instance-1] address-family evpn
[H3C-vpn-evpn-1] vpn-target 1:1
[H3C-vpn-evpn-1] quit
[H3C-vpn-instance-1] quit
步骤十四:创建VSI虚接口VSI-interface1,并为其配置IP地址和MAC地址,该IP地址作为VXLAN 100内主机的网关地址,指定该VSI虚接口为分布式本地网关接口,并开启本地代理ARP功能。
[H3C]interface Vsi-interface 1
[H3C-Vsi-interface1] ip binding vpn-instance 1
[H3C-Vsi-interface1]ip address 10.1.1.254 24
[H3C-Vsi-interface1] mac-address 0001-0001-0001
[H3C-Vsi-interface1] local-proxy-arp enable 
[H3C-Vsi-interface1] distributed-gateway local
[H3C-Vsi-interface1] quit
步骤十五:创建VSI虚接口VSI-interface2,并为其配置IP地址和MAC地址,该IP地址作为VXLAN 200内主机的网关地址,指定该VSI虚接口为分布式本地网关接口,并开启本地代理ARP功能。
[H3C]interface Vsi-interface 2
11月适合去国外哪里旅游
[H3C-Vsi-interface2] ip binding vpn-instance 1
[H3C-Vsi-interface2]ip address 20.1.1.254 24
[H3C-Vsi-interface2] mac-address 0002-0002-0002
[H3C-Vsi-interface2] local-proxy-arp enable 
[H3C-Vsi-interface2] distributed-gateway local
[H3C-Vsi-interface2] quit
步骤十六:创建VSI虚接口VSI-interface3,在该接口上配置VPN实例1对应的L3VNI1
[H3C]interface Vsi-interface 3
[H3C-Vsi-interface3] ip binding vpn-instance 1
[H3C-Vsi-interface3] l3-vni 1
[H3C-Vsi-interface3]quit
步骤十七:配置VXLAN 100所在的VSI实例和接口VSI-interface1关联。
[H3C]vsi 1
[H3C-vsi-1]gateway vsi-interface 1
步骤十八:配置VXLAN 200所在的VSI实例和接口VSI-interface2关联。
[H3C]vsi 2
[H3C-vsi-2]gateway vsi-interface 2
3、配置S6800B交换机
步骤一:配置VXLAN的硬件资源模式(需重启设备生效)。
<H3C> system-view
[H3C] hardware-resource vxlan l3gw8k
步骤二:配置VLAN 2023PCB连接端口属于VLAN20S6800BS6800C互联口属于vlan 23
<H3C> system-view
[H3C] vlan 20
[H3C-vlan20]quit
[H3C] vlan 23
[H3C-vlan123]quit
[H3C] interface Ten-GigabitEthernet1/0/20
[H3C-Ten-GigabitEthernet1/0/20] port access vlan 20 
[H3C] interface Ten-GigabitEthernet1/0/3
[H3C-Ten-GigabitEthernet1/0/3] port access vlan 23
步骤三:创建loopback1 接口
[H3C]interface LoopBack 1
[H3C-LoopBack1]ip address 2.2.2.2 32
步骤四:创建VLAN23虚接口

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。