# Run a docker Debian10-based container in interactive mode
docker pull debian:buster
docker run -it --detach --entrypoint /bin/bash --name multione_docker debian:buster

# Copy project from host
docker cp cernbox/gitlab_workspace/multione-docker/multione multione_docker:/

# Attach to the container
docker attach --detach-keys "ctrl-p" multione_docker

# Install libraries and packets
apt-get update &&\
apt-get install git -y &&\
apt-get install wget -y &&\
apt-get install tmux -y &&\
apt-get install nano -y &&\
apt-get install telnet -y &&\
apt-get install iperf3 -y &&\
apt-get install default-jre-headless --no-install-recommends -y &&\
apt-get install net-tools

# Download freeRtr
wget freertr.net/rtr.jar

# Load topology
cd multione/
chmod +x start-topology.sh
./start-topology.sh

# Kill tmux
tmux kill-server

# Access the router R11
telnet 127.0.0.1 2525

# Ping between loopbacks
R11# ping fd01:30::33 vrf VRF_EXT source loopback100            ---- It should go through VLAN 30 because there both belong to different experiments
R11# ping fd01:40::44 vrf VRF_EXT source loopback100            ---- It should go through VLAN 30 because there is no flow label for VRF_CMS
R11# ping fd01:40::44 vrf VRF_EXT source loopback100 flow 65540 ---- It should go through VLAN 20 because there is the flow label for VRF_CMS

