Skip to content

Commit

Permalink
temp config for srlceos case
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jan 14, 2021
1 parent b0965cc commit d17e14c
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions docs/lab-examples/srl-ceos.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,60 @@ A lab consists of an SR Linux node connected with Arista cEOS via a point-to-poi
This lab allows users to launch basic interoperability scenarios between Nokia SR Linux and Arista cEOS operating systems.

### BGP
<div class="mxgraph" style="max-width:100%;border:1px solid transparent;margin:0 auto; display:block;" data-mxgraph="{&quot;page&quot;:0,&quot;zoom&quot;:1.5,&quot;highlight&quot;:&quot;#0000ff&quot;,&quot;nav&quot;:true,&quot;check-visible-state&quot;:true,&quot;resize&quot;:true,&quot;url&quot;:&quot;https://raw.githubusercontent.com/srl-wim/container-lab/diagrams/srlceos01.drawio&quot;}"></div>

This lab demonstrates a simple iBGP peering scenario between Nokia SR Linux and Arista cEOS.

#### Configuration
Once the lab is deployed with containerlab, use the following configuration instructions to make interfaces configuration and enable BGP on both nodes.

=== "srl"
Get into SR Linux CLI with `docker exec -it clab-srlceos01-srl sr_cli` and start configuration
```bash
# enter candidate datastore
enter candidate

# configure loopback and data interfaces
set / interface ethernet-1/1 admin-state enable
set / interface ethernet-1/1 subinterface 0 admin-state enable
set / interface ethernet-1/1 subinterface 0 ipv4 address 192.168.1.1/24

set / interface lo0 subinterface 0 admin-state enable
set / interface lo0 subinterface 0 ipv4 address 10.10.10.1/32

# configure BGP
set / network-instance default router-id 10.10.10.1
set / network-instance default interface ethernet-1/1.0
set / network-instance default interface lo0.0

set / network-instance default protocols ospf instance main admin-state enable
set / network-instance default protocols ospf instance main version ospf-v2
set / network-instance default protocols ospf instance main area 0.0.0.0 interface ethernet-1/1.0 interface-type point-to-point
set / network-instance default protocols ospf instance main area 0.0.0.0 interface ethernet-1/1.0

# commit config
commit now
```
=== "ceos"
cRPD configuration needs to be done both from the container process, as well as within the CLI.
First attach to the container process `bash` shell and configure interfaces: `docker exec -it clab-srlceos01-crpd bash`
```bash
# configure linux interfaces
ip addr add 192.168.1.2/24 dev eth1
ip addr add 10.10.10.2/32 dev lo
```
Then launch the CLI and continue configuration `docker exec -it clab-srlceos01-crpd cli`:
```bash
# enter configuration mode
configure
set routing-options router-id 10.10.10.2

set protocols ospf area 0.0.0.0 interface eth1 interface-type p2p
set protocols ospf area 0.0.0.0 interface lo.0 interface-type nbma

# commit configuration
commit
```

[srl]: https://www.nokia.com/networks/products/service-router-linux-NOS/
[ceos]: https://www.arista.com/en/products/software-controlled-container-networking
Expand Down

0 comments on commit d17e14c

Please sign in to comment.