FRR EVPN 集中式网关(CR) 配置及拓扑
拓扑:
配置:
50.57 配置:
kernel config:
#50.57 #create namespace ns5, add virtual eth veth5 connect to host5 in namespace #host5 50.1.1.2/24 00:00:00:00:00:05 gateway:50.1.1.1 ip netns add ns5 ip link add veth5 type veth peer name host5 netns ns5 ip netns exec ns5 ip link set lo up ip netns exec ns5 ip link set host5 address 00:00:00:00:00:05 ip netns exec ns5 ip link set host5 up ip netns exec ns5 ip addr add 50.1.1.2/24 dev host5 ip netns exec ns5 ip route add default via 50.1.1.1 dev host5 #host6 60.1.1.2/24 gateway:20.1.1.1 ip netns add ns6 ip link add veth6 type veth peer name host6 netns ns6 ip netns exec ns6 ip link set lo up ip netns exec ns6 ip link set host6 address 00:00:00:00:00:06 ip netns exec ns6 ip link set host6 up ip netns exec ns6 ip addr add 60.1.1.2/24 dev host6 ip netns exec ns6 ip route add default via 60.1.1.1 dev host6 #add bridge including vxlan instance and access port veth #bridge50 veth5+vxlan50 IP:50.1.1.1 MAC:00:00:32:00:00:01 ip link add br50 type bridge ip link add vxlan50 type vxlan id 50 local 10.10.18.209 dstport 4789 nolearning ip link set br50 up ip link set veth5 up ip link set vxlan50 up ip link set veth5 master br50 ip link set vxlan50 master br50 ip link set dev br50 address 00:00:32:00:00:01 ip addr add 50.1.1.1/24 dev br50 #bridge60 veth6+vxlan60 IP:60.1.1.1 MAC:00:00:3c:00:00:01 ip link add br60 type bridge ip link add vxlan60 type vxlan id 60 local 10.10.18.209 dstport 4789 nolearning ip link set br60 up ip link set veth6 up ip link set vxlan60 up ip link set veth6 master br60 ip link set vxlan60 master br60 ip link set dev br60 address 00:00:3c:00:00:01 ip addr add 60.1.1.1/24 dev br60 # add vrf ip link add vrf2 type vrf table 200 ip link set vrf2 up ip link set br50 master vrf2 ip link set br60 master vrf2
CLI config:
router bgp 8888 bgp router-id 10.10.18.209 bgp bestpath as-path multipath-relax neighbor fabric peer-group neighbor fabric remote-as external neighbor 10.10.18.212 peer-group fabric neighbor 10.10.18.212 update-source 10.10.18.209 ! address-family l2vpn evpn neighbor fabric activate advertise-all-vni exit-address-family ! router bgp 8888 vrf vrf2 address-family l2vpn evpn advertise ipv4 unicast exit-address-family
50.204 配置:
kernel config:
#DUT2 50.204 #create namespace ns7, add virtual eth veth7 connect to host7 in namespace #host7 50.1.1.7/24 00:00:00:00:00:07 gateway:50.1.1.1 ip netns add ns7 ip link add veth7 type veth peer name host7 netns ns7 ip netns exec ns7 ip link set lo up ip netns exec ns7 ip link set host7 address 00:00:00:00:00:07 ip netns exec ns7 ip link set host7 up ip netns exec ns7 ip addr add 50.1.1.7/24 dev host7 ip netns exec ns7 ip route add default via 50.1.1.1 dev host7 #host8 60.1.1.8/24 gateway:60.1.1.1 ip netns add ns8 ip link add veth8 type veth peer name host8 netns ns8 ip netns exec ns8 ip link set lo up ip netns exec ns8 ip link set host8 address 00:00:00:00:00:08 ip netns exec ns8 ip link set host8 up ip netns exec ns8 ip addr add 60.1.1.8/24 dev host8 ip netns exec ns8 ip route add default via 60.1.1.1 dev host8 #add bridge including vxlan instance and access port veth #bridge50 veth7+vxlan50 IP:50.1.1.1 MAC:00:00:32:00:00:01 ip link add br50 type bridge ip link add vxlan50 type vxlan id 50 local 10.10.18.212 dstport 4789 nolearning ip link set br50 up ip link set veth7 up ip link set vxlan50 up ip link set veth7 master br50 ip link set vxlan50 master br50 ip link set dev br50 address 00:00:32:00:00:01 ip addr add 50.1.1.1/24 dev br50 #bridge60 veth8+vxlan60 IP:60.1.1.1 MAC:00:00:3c:00:00:01 ip link add br60 type bridge ip link add vxlan60 type vxlan id 60 local 10.10.18.212 dstport 4789 nolearning ip link set br60 up ip link set veth8 up ip link set vxlan60 up ip link set veth8 master br60 ip link set vxlan60 master br60 ip link set dev br60 address 00:00:3c:00:00:01 ip addr add 60.1.1.1/24 dev br60
CLI config:
router bgp 9999 bgp router-id 10.10.18.212 bgp bestpath as-path multipath-relax neighbor fabric peer-group neighbor fabric remote-as external neighbor 10.10.18.209 peer-group fabric neighbor 10.10.18.209 update-source 10.10.18.212 ! address-family l2vpn evpn neighbor fabric activate advertise-all-vni exit-address-family ! router bgp 9999 vrf vrf2 address-family l2vpn evpn advertise ipv4 unicast exit-address-family
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 深入理解 Mybatis 分库分表执行原理
· 如何打造一个高并发系统?
· .NET Core GC压缩(compact_phase)底层原理浅谈
· 现代计算机视觉入门之:什么是图片特征编码
· .NET 9 new features-C#13新的锁类型和语义
· Spring AI + Ollama 实现 deepseek-r1 的API服务和调用
· 《HelloGitHub》第 106 期
· 数据库服务器 SQL Server 版本升级公告
· 深入理解Mybatis分库分表执行原理
· 使用 Dify + LLM 构建精确任务处理应用