Skip to content

Commit

Permalink
complete configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Maen Artimy committed Mar 19, 2024
1 parent 51a1603 commit 3013a7f
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 75 deletions.
27 changes: 25 additions & 2 deletions config/srl-r1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ set / interface ethernet-1/11 description "Leaf1 to Spine"
set / interface ethernet-1/11 subinterface 0 admin-state enable
set / interface ethernet-1/11 subinterface 0 ipv4 address 10.10.10.2/30

# Configure interfaces to server
set / interface ethernet-1/21 admin-state enable
set / interface ethernet-1/21 description "Leaf1 to Server"
set / interface ethernet-1/21 subinterface 0 admin-state enable
set / interface ethernet-1/21 subinterface 0 type bridged

# Configure routing policy
set / routing-policy policy all default-action accept

Expand All @@ -23,22 +29,39 @@ set / network-instance default description "Default VRF"
set / network-instance default interface system0.0
set / network-instance default interface ethernet-1/11.0

# Configure BGP
# Configure eBGP
set / network-instance default protocols bgp autonomous-system 65001
set / network-instance default protocols bgp router-id 1.1.1.1
set / network-instance default protocols bgp group UNDERLAY export-policy all
set / network-instance default protocols bgp group UNDERLAY import-policy all
set / network-instance default protocols bgp group UNDERLAY peer-as 65000
set / network-instance default protocols bgp neighbor 10.10.10.1 peer-group UNDERLAY

# EVPN
# Configure EVPN via iBGP
set / network-instance default protocols bgp group OVERLAY export-policy all
set / network-instance default protocols bgp group OVERLAY import-policy all
set / network-instance default protocols bgp group OVERLAY peer-as 65500
set / network-instance default protocols bgp group OVERLAY evpn admin-state enable
set / network-instance default protocols bgp group OVERLAY local-as 65500

set / network-instance default protocols bgp neighbor 1.1.1.3 peer-group OVERLAY
set / network-instance default protocols bgp neighbor 1.1.1.3 transport local-address 1.1.1.1

# Configure Tunnel Interface
set / tunnel-interface vxlan1 vxlan-interface 1 type bridged
set / tunnel-interface vxlan1 vxlan-interface 1 ingress vni 1
#set / tunnel-interface vxlan1 vxlan-interface 1 egress source-ip use-system-ipv4-address

# Configure MAC VRF
set / network-instance vrf-1 type mac-vrf
set / network-instance vrf-1 admin-state enable
set / network-instance vrf-1 interface ethernet-1/21.0
set / network-instance vrf-1 vxlan-interface vxlan1.1
set / network-instance vrf-1 protocols bgp-evpn bgp-instance 1 admin-state enable
set / network-instance vrf-1 protocols bgp-evpn bgp-instance 1 vxlan-interface vxlan1.1
set / network-instance vrf-1 protocols bgp-evpn bgp-instance 1 evi 111
set / network-instance vrf-1 protocols bgp-vpn bgp-instance 1 route-target export-rt target:100:111
set / network-instance vrf-1 protocols bgp-vpn bgp-instance 1 route-target import-rt target:100:111

# commit config
commit now
33 changes: 33 additions & 0 deletions config/srl-r3.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ set / interface ethernet-1/11 description "Leaf2 to Spine"
set / interface ethernet-1/11 subinterface 0 admin-state enable
set / interface ethernet-1/11 subinterface 0 ipv4 address 10.10.10.6/30

# Configure interfaces to server
set / interface ethernet-1/21 admin-state enable
set / interface ethernet-1/21 description "Leaf2 to Server"
set / interface ethernet-1/21 subinterface 0 admin-state enable
set / interface ethernet-1/21 subinterface 0 type bridged

# Configure routing policy
set / routing-policy policy all default-action accept

Expand All @@ -31,5 +37,32 @@ set / network-instance default protocols bgp group UNDERLAY import-policy all
set / network-instance default protocols bgp group UNDERLAY peer-as 65000
set / network-instance default protocols bgp neighbor 10.10.10.5 peer-group UNDERLAY

# Configure EVPN via iBGP
set / network-instance default protocols bgp group OVERLAY export-policy all
set / network-instance default protocols bgp group OVERLAY import-policy all
set / network-instance default protocols bgp group OVERLAY peer-as 65500
set / network-instance default protocols bgp group OVERLAY evpn admin-state enable
set / network-instance default protocols bgp group OVERLAY local-as 65500

set / network-instance default protocols bgp neighbor 1.1.1.1 peer-group OVERLAY
set / network-instance default protocols bgp neighbor 1.1.1.1 transport local-address 1.1.1.3


# Configure Tunnel Interface
set / tunnel-interface vxlan1 vxlan-interface 1 type bridged
set / tunnel-interface vxlan1 vxlan-interface 1 ingress vni 1
#set / tunnel-interface vxlan1 vxlan-interface 1 egress source-ip use-system-ipv4-address

# Configure MAC VRF
set / network-instance vrf-1 type mac-vrf
set / network-instance vrf-1 admin-state enable
set / network-instance vrf-1 interface ethernet-1/21.0
set / network-instance vrf-1 vxlan-interface vxlan1.1
set / network-instance vrf-1 protocols bgp-evpn bgp-instance 1 admin-state enable
set / network-instance vrf-1 protocols bgp-evpn bgp-instance 1 vxlan-interface vxlan1.1
set / network-instance vrf-1 protocols bgp-evpn bgp-instance 1 evi 111
set / network-instance vrf-1 protocols bgp-vpn bgp-instance 1 route-target export-rt target:100:111
set / network-instance vrf-1 protocols bgp-vpn bgp-instance 1 route-target import-rt target:100:111

# commit config
commit now
71 changes: 0 additions & 71 deletions infs.md

This file was deleted.

2 changes: 0 additions & 2 deletions tiny.clab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ topology:
image: akpinar/alpine:latest
exec:
- ip addr add 192.168.1.11/24 dev eth1
- ip route replace default via 192.168.1.1 dev eth1
group: server

h2:
kind: linux
image: akpinar/alpine:latest
exec:
- ip addr add 192.168.1.12/24 dev eth1
- ip route replace default via 192.168.1.1 dev eth1
group: server

links:
Expand Down

0 comments on commit 3013a7f

Please sign in to comment.