Commit 4b512003 authored by Marcel Wiget's avatar Marcel Wiget
Browse files

adjusted for juniper/openjnpr-container-vmx

parent 6311148e
......@@ -10,7 +10,7 @@ A more detailed example configuration can be found in the [Network Configuration
Containers [dhcptester1](https://hub.docker.com/r/marcelwiget/dhcptester/) and [dhcptester2](https://hub.docker.com/r/marcelwiget/dhcptester/) are simulation multiple DHCP clients each with double tagged VLANs, with one subscriber per inner VLAN (aka CVLAN model).
PE & BNG are [vmx-docker-light](https://hub.docker.com/r/marcelwiget/vmx-docker-light/) containers, running vMX 18.2R1in light mode. The Junos configurations for PE and BNG can be found in [bng.conf](bng.conf) and [pe.conf](pe.conf).
PE & BNG are [OpenJNPR-Container-vMX](https://hub.docker.com/r/juniper/openjnpr-container-vmx/) containers, running vMX 18.2R1 in light mode. The Junos configurations for PE and BNG can be found in [bng.conf](bng.conf) and [pe.conf](pe.conf).
The whole setup can be brought to live by running [make](Makefile), which launches [docker-compose.yml](docker-compose.yml).
......@@ -26,8 +26,8 @@ The whole setup can be brought to live by running [make](Makefile), which launch
Clone this repo:
```
git clone https://gitlab.com/mwiget/bng-pwht
cd bng-pwht
git clone https://gitlab.com/mwiget/bng-pwht-demo
cd bng-pwht-demo
```
Download the KVM version of vMX, e.g. vmx-bundle-18.2R1.9.tgz, and extract the QCOW2 image junos-vmx-x86-64-18.2R1.9.qcow2, then remove the other files:
......@@ -86,12 +86,11 @@ Use 'docker ps' to verify the containers have successfully started:
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
73b8bcbd6336 marcelwiget/dhcptester:latest "/usr/bin/dhcptester…" About a minute ago Up 56 seconds dhcptester1
9267596b0850 marcelwiget/dhcptester:latest "/usr/bin/dhcptester…" About a minute ago Up About a minute dhcptester2
166e7a5beea4 marcelwiget/vmx-docker-light:latest "/launch.sh" About a minute ago Up About a minute 0.0.0.0:33027->22/tcp, 0.0.0.0:33026->830/tcp bng
4d7b9e8ab88d marcelwiget/vmx-docker-light:latest "/launch.sh" About a minute ago Up About a minute 0.0.0.0:33025->22/tcp, 0.0.0.0:33024->830/tcp pe
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4debcb069e73 marcelwiget/dhcptester:latest "/usr/bin/dhcptester…" 31 minutes ago Up 31 minutes dhcptester1
b278e5a59a67 marcelwiget/dhcptester:latest "/usr/bin/dhcptester…" 31 minutes ago Up 31 minutes dhcptester2
7420e5a1e03e juniper/openjnpr-container-vmx:bionic "/launch.sh" 31 minutes ago Up 31 minutes 0.0.0.0:33051->22/tcp, 0.0.0.0:33050->830/tcp pe
b6d404c28dbe juniper/openjnpr-container-vmx:bionic "/launch.sh" 31 minutes ago Up 31 minutes 0.0.0.0:33053->22/tcp, 0.0.0.0:33052->830/tcp bng```
If any of the containers isn't running, check its log file for possible root causes:
......@@ -151,8 +150,8 @@ dhcptester2 /usr/bin/dhcptester -e 2 - ... Up
pe /launch.sh Up 0.0.0.0:33025->22/tcp,
0.0.0.0:33024->830/tcp
./getpass.sh
vMX bng (172.18.0.3 ) root password to aezoozooteeweenohteingoh
vMX pe (172.18.0.2 ) root password to razacaeshoungiphahwejohb
vMX pe (172.18.0.2) 18.2R1.9 eceeR9ooc4et9biu3Se4sieN ready
vMX bng (172.18.0.3) 18.2R1.9 ahcoo2eiM1IosaejaiF7dahy ready
```
The last 2 lines show the IP addresses and their root passwords (only valid when logging in via the serial console by launching 'docker attach [bng|pe]').
......
system {
configuration-database {
ephemeral {
instance vfp0;
}
max-db-size 2572864;
}
root-authentication {
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLxUbwJ8sJD1euXqRvnU8tblaNGYWVdcGVksYu2GKwmfGtadEhtN5nG4trGBR3wMBse2HEe/Fhg4IVIFqAmvxQ0hj5KvZRnYg3eQYouLF8UprRM5a9IzYIlBjdwYMQaNIwDOh/TfV+W1famLSkPdXAiX/1Tq9YXzsBtSkfLWlKanx/np6ZhamC+Wfsh7jAIJsqB0gLWId2yl/hVV8lDCnL7WvuPby8IMKI1oWNdQkl87lb34ot8WsnYxtgPwNNTwhNLjc7byTuj+B7olZczWSWexDscd+xmXA7F6OR8riIZvY/z/OaLn2r+pUNSHwXXAqoNM5KDbIpXKP8fagbSS5B mwiget@sb"; ## SECRET-DATA
}
host-name bng;
services {
ssh {
client-alive-interval 30;
}
netconf {
ssh;
}
dhcp-local-server {
pool-match-order {
ip-address-first;
......@@ -198,3 +185,4 @@ access {
}
}
}
apply-groups openjnpr-container-vmx;
system {
configuration-database {
ephemeral {
instance vfp0;
}
}
root-authentication {
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLxUbwJ8sJD1euXqRvnU8tblaNGYWVdcGVksYu2GKwmfGtadEhtN5nG4trGBR3wMBse2HEe/Fhg4IVIFqAmvxQ0hj5KvZRnYg3eQYouLF8UprRM5a9IzYIlBjdwYMQaNIwDOh/TfV+W1famLSkPdXAiX/1Tq9YXzsBtSkfLWlKanx/np6ZhamC+Wfsh7jAIJsqB0gLWId2yl/hVV8lDCnL7WvuPby8IMKI1oWNdQkl87lb34ot8WsnYxtgPwNNTwhNLjc7byTuj+B7olZczWSWexDscd+xmXA7F6OR8riIZvY/z/OaLn2r+pUNSHwXXAqoNM5KDbIpXKP8fagbSS5B mwiget@sb"; ## SECRET-DATA
}
host-name pe;
services {
ssh {
client-alive-interval 30;
}
netconf {
ssh;
}
}
}
chassis {
fpc 0 {
pic 0 {
......@@ -100,3 +81,4 @@ access {
authentication-order none;
}
}
apply-groups openjnpr-container-vmx;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment