-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-testbed-ceos-ceos-lab-4hosts.sh
executable file
·52 lines (31 loc) · 1.4 KB
/
deploy-testbed-ceos-ceos-lab-4hosts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
echo 'Deploying containerlab topology with two Arista cEOS routers with 4 hosts...'
sudo containerlab deploy --topo telemetry-testbed-ceos-ceos-4hosts.yaml
echo 'Done!'
echo ''
echo ''
echo 'Configuring client "pc11" container...'
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc11 ifconfig eth1 10.0.1.2 netmask 255.255.255.0
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc11 ip route add 10.0.2.0/24 via 10.0.1.1 dev eth1
echo 'Done!'
echo ''
echo ''
echo 'Configuring client "pc12" container...'
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc12 ifconfig eth1 10.0.1.3 netmask 255.255.255.0
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc12 ip route add 10.0.2.0/24 via 10.0.1.1 dev eth1
echo 'Done!'
echo ''
echo ''
echo 'Configuring client "pc21" container...'
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc21 ifconfig eth1 10.0.2.2 netmask 255.255.255.0
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc21 ip route add 10.0.1.0/24 via 10.0.2.1 dev eth1
echo 'Done!'
echo ''
echo ''
echo 'Configuring client "pc22" container...'
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc22 ifconfig eth1 10.0.2.3 netmask 255.255.255.0
sudo docker exec -it clab-telemetry-testbed-ceos-ceos-4hosts-pc22 ip route add 10.0.1.0/24 via 10.0.2.1 dev eth1
echo 'Done!'
echo ''
echo ''
echo 'All done!'