containerlabでEVPNを作る(3) - EVPN/MPLS
cEOSでEVPN/MPLSネットワークを作る 今回はEVPN/MPLSのL2VPNを作ります。 EVPN/VXLANの時と同じように、netshootコンテナでPingを行い、L2リーチャビリティを確認します。 Arista EOSでのEVPN/MPLSの設定については既にこの方が詳しい情報を載せており、このページの作成に当たって大いに参考にさせていただきました。 構成 ※画像クリックで拡大できます トポロジやアンダーレイのプロトコルスタックはVXLANの時と変わりません。ホスト名はSpine, LeafからP, PEに変えています。 また、PルータとPEルータ間のネットワークを/31にしました。 コンフィグ 最終的にできあがったコンフィグは以下の通りです。 p-01 ! Startup-config last modified at Sat May 31 08:29:56 2025 by root ! device: p-01 (cEOSLab, EOS-4.34.0F-41641815.4340F (engineering build)) ! no aaa root ! username admin privilege 15 role network-admin secret sha512 <REMOVED> ! management api http-commands no shutdown ! vrf MGMT no shutdown ! no service interface inactive port-id allocation disabled ! transceiver qsfp default-mode 4x10G ! service routing protocols model multi-agent ! hostname p-01 ! spanning-tree mode mstp ! system l1 unsupported speed action error unsupported error-correction action error ! vrf instance MGMT ! management api gnmi transport grpc default vrf MGMT ! management api netconf transport ssh default vrf MGMT ! interface Ethernet1 no switchport ip address 192.168.1.1/31 ip ospf network point-to-point ip ospf area 0.0.0.0 ! interface Ethernet2 no switchport ip address 192.168.1.3/31 ip ospf network point-to-point ip ospf area 0.0.0.0 ! interface Loopback0 ip address 1.1.1.1/32 ip ospf area 0.0.0.0 ! interface Management0 vrf MGMT ip address 172.20.20.3/24 ipv6 address 3fff:172:20:20::3/64 ! ip routing no ip routing vrf MGMT ! ip route vrf MGMT 0.0.0.0/0 172.20.20.1 ! ipv6 route vrf MGMT ::/0 3fff:172:20:20::1 ! mpls ip ! mpls label range ospf-sr 16000 8000 mpls label range static 16 15984 ! router bgp 65001 router-id 1.1.1.1 no bgp default ipv4-unicast neighbor PE-RRCLIENTS peer group neighbor PE-RRCLIENTS remote-as 65001 neighbor PE-RRCLIENTS update-source Loopback0 neighbor PE-RRCLIENTS route-reflector-client neighbor PE-RRCLIENTS send-community extended neighbor 2.1.1.1 peer group PE-RRCLIENTS neighbor 2.1.1.2 peer group PE-RRCLIENTS ! address-family evpn neighbor PE-RRCLIENTS activate neighbor PE-RRCLIENTS encapsulation mpls ! router multicast ipv4 software-forwarding kernel ! ipv6 software-forwarding kernel ! router ospf 1 router-id 1.1.1.1 passive-interface Loopback0 max-lsa 12000 ! segment-routing mpls no shutdown prefix-segment 1.1.1.1/32 index 11 ! end pe-01 ! Startup-config last modified at Sat May 31 08:29:56 2025 by root ! device: pe-01 (cEOSLab, EOS-4.34.0F-41641815.4340F (engineering build)) ! no aaa root ! username admin privilege 15 role network-admin secret sha512 <REMOVED> ! management api http-commands no shutdown ! vrf MGMT no shutdown ! no service interface inactive port-id allocation disabled ! transceiver qsfp default-mode 4x10G ! service routing protocols model multi-agent ! hostname pe-01 ! spanning-tree mode mstp ! system l1 unsupported speed action error unsupported error-correction action error ! vlan 100 ! vrf instance MGMT ! management api gnmi transport grpc default vrf MGMT ! management api netconf transport ssh default vrf MGMT ! interface Ethernet1 no switchport ip address 192.168.1.0/31 ip ospf network point-to-point ip ospf area 0.0.0.0 ! interface Ethernet2 switchport access vlan 100 ! interface Loopback0 ip address 2.1.1.1/32 ip ospf area 0.0.0.0 ! interface Management0 vrf MGMT ip address 172.20.20.2/24 ipv6 address 3fff:172:20:20::2/64 ! ip routing no ip routing vrf MGMT ! ip route vrf MGMT 0.0.0.0/0 172.20.20.1 ! ipv6 route vrf MGMT ::/0 3fff:172:20:20::1 ! mpls ip ! mpls label range ospf-sr 16000 8000 mpls label range static 16 15984 ! router bgp 65001 router-id 2.1.1.1 no bgp default ipv4-unicast neighbor 1.1.1.1 remote-as 65001 neighbor 1.1.1.1 update-source Loopback0 neighbor 1.1.1.1 send-community extended ! vlan 100 rd 2.1.1.1:100 route-target both 65000:100 redistribute learned ! address-family evpn neighbor 1.1.1.1 activate neighbor 1.1.1.1 encapsulation mpls next-hop-self source-interface Loopback0 ! router multicast ipv4 software-forwarding kernel ! ipv6 software-forwarding kernel ! router ospf 1 router-id 2.1.1.1 passive-interface Loopback0 max-lsa 12000 ! segment-routing mpls no shutdown prefix-segment 2.1.1.1/32 index 21 ! end pe-02 ! Startup-config last modified at Sat May 31 08:29:56 2025 by root ! device: pe-02 (cEOSLab, EOS-4.34.0F-41641815.4340F (engineering build)) ! no aaa root ! username admin privilege 15 role network-admin secret sha512 <REMOVED> ! management api http-commands no shutdown ! vrf MGMT no shutdown ! no service interface inactive port-id allocation disabled ! transceiver qsfp default-mode 4x10G ! service routing protocols model multi-agent ! hostname pe-02 ! spanning-tree mode mstp ! system l1 unsupported speed action error unsupported error-correction action error ! vlan 100 ! vrf instance MGMT ! management api gnmi transport grpc default vrf MGMT ! management api netconf transport ssh default vrf MGMT ! interface Ethernet1 no switchport ip address 192.168.1.2/31 ip ospf network point-to-point ip ospf area 0.0.0.0 ! interface Ethernet2 switchport access vlan 100 ! interface Loopback0 ip address 2.1.1.2/32 ip ospf area 0.0.0.0 ! interface Management0 vrf MGMT ip address 172.20.20.4/24 ipv6 address 3fff:172:20:20::4/64 ! ip routing no ip routing vrf MGMT ! ip route vrf MGMT 0.0.0.0/0 172.20.20.1 ! ipv6 route vrf MGMT ::/0 3fff:172:20:20::1 ! mpls ip ! mpls label range ospf-sr 16000 8000 mpls label range static 16 15984 ! router bgp 65001 router-id 2.1.1.2 no bgp default ipv4-unicast neighbor 1.1.1.1 remote-as 65001 neighbor 1.1.1.1 update-source Loopback0 neighbor 1.1.1.1 send-community extended ! vlan 100 rd 2.1.1.2:100 route-target both 65000:100 redistribute learned ! address-family evpn neighbor 1.1.1.1 activate neighbor 1.1.1.1 encapsulation mpls next-hop-self source-interface Loopback0 ! router multicast ipv4 software-forwarding kernel ! ipv6 software-forwarding kernel ! router ospf 1 router-id 2.1.1.2 passive-interface Loopback0 max-lsa 12000 ! segment-routing mpls no shutdown prefix-segment 2.1.1.2/32 index 22 ! end 構築 containerlab 名前が変わった以外は、VXLANの時と同様です。 ...