-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 942 Bytes
/
Makefile
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
#!/bin/bash
.PHONY: install start ospf bgp clean
install:
sudo apt install bird2 terminator tcpdump mtr-tiny vim
mkdir -p ~/.config/terminator
cp .terminator_config ~/.config/terminator/config
start:
/usr/bin/terminator -l LinuxRouting --working-directory ~
ospf:
cp templates/ospf/R1/bird.conf R1/bird.conf
cp templates/ospf/R2/bird.conf R2/bird.conf
cp templates/ospf/R3/bird.conf R3/bird.conf
cp templates/ospf/R4/bird.conf R4/bird.conf
cp templates/ospf/R5/bird.conf R5/bird.conf
cp templates/ospf/R6/bird.conf R6/bird.conf
bgp:
cp templates/bgp/R1/bird.conf R1/bird.conf
cp templates/bgp/R2/bird.conf R2/bird.conf
cp templates/bgp/R3/bird.conf R3/bird.conf
cp templates/bgp/R4/bird.conf R4/bird.conf
cp templates/bgp/R5/bird.conf R5/bird.conf
cp templates/bgp/R6/bird.conf R6/bird.conf
clean:
rm R1/bird.conf
rm R2/bird.conf
rm R3/bird.conf
rm R4/bird.conf
rm R5/bird.conf
rm R6/bird.conf
sudo ./teardown.sh