MDT Server Setup

SSH to the ubuntu server at 10.200.255.4 using clab/clab@123. (This SSH session is also set in the MTPutty file).

We will be installing a TIG server that will be our telemetry collector for the labs in this series.

First, install docker. You can copy and paste this entire block at once.

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

# Install docker:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

Clone this repo: https://github.com/RomainCyr/tig-stack-qos-interface-statistics/tree/main

git clone https://github.com/RomainCyr/tig-stack-qos-interface-statistics.git

CD to the new directory. Edit docker-compose.yaml. Uncomment dial_out and comment out dial_in. (We will start with dial out sessions).

cd tig-stack-qos-interface-statistics
nano docker-compose.yaml

Launch the docker container using:

sudo docker compose up -d

Add port forwarding. This will map port 80 to grafana’s listening port (3000).

sudo iptables -t nat -A PREROUTING -i enp1s0 -p tcp --dport 80 -j REDIRECT --to-port 3000

Set the LAN IP, which the XR router will use to stream data to the collector.

sudo ip addr add 10.100.100.1/24 dev enp1s2
sudo apt install net-tools
sudo ifconfig ens2 up

Add a route for XR1’s loopback via the LAN interface. This is needed because the TPA source address will be Lo0 by default on XR1, and we cannot change this on XRd, because tpa config is not available. (We can on XRv9K though, if you decide to use that instead).

sudo ip route add 10.0.0.1/32 via 10.100.100.101

If all is working, you should be able to navigate to http://10.200.255.4 from your PC, and be presented with a Grafana login page. The credentials are admin/admin123. You may have to wait a minute for Grafana to fully start up.

Last updated