Clone
21
new epc docker
Cedric Roux edited this page 2016-12-09 22:36:39 +01:00

This is a docker for new version openair-cn (tag v0.4.0)

This image would require KERNEL 4.7.x on your host machine, currently 4.7.1 and 4.7.2 is supported.*

  • Download the docker image:

sudo docker pull luhan/oai-cn:v0.1

  • Create a network for oai-cn, we will assign a static IP to the container

sudo docker network create --driver=bridge --subnet=172.19.0.0/24 --gateway=172.19.0.1 oainet

  • Run the openair-cn container

sudo docker run --ip=172.19.0.10 --net=oainet --expose=1-9000 -ti -h=epc --privileged=true luhan/oai-cn:v0.1 /bin/bash

An user (Qiong Wu, @Freundschaft) reported in a gitlab issue that the above command did not work. Here is the message. You may want to try his command if things fail for you.

It didnt work for me, since GTP module was not loaded in the docker container, running the command below instead did the trick.

sudo docker run --ip=172.19.0.10 --net=oainet --expose=1-9000 -ti -h=epc --privileged=true --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules luhan/oai-cn:v0.1 /bin/bash

You can set this ip according to your environment. It is used for S1-U, S1-MME.

  • Start necessary services

Executable scripts are located at /openair-cn/SCRIPTS

/start_service.sh

This script will start necessary services for oai-cn and prepare environment variables.

  • Run HSS, MME, SPGW
./run_hss
./run_mme -i
./run_spgw -i

If you want to run this three elements in different windows, you can use ssh to connect to the container. Just copy the ssh public key of your host machine into file /root/.ssh/authorized_keys.

To add your SIM card information into HSS, you can use browser on your host machine to open phpmyadmin on HSS, http://172.19.0.10/phpmyadmin. default username: root, password: linux

  • Configure a larger MTU on S1-U related interfaces, including docker bridge.

Refer to here

  • Current oai-sim/eNB will not work with kernel 4.7, you might need to run oai-sim/eNB on another PC or VM, and connect oai-sim/eNB and oai-cn by bridge. A typical deployment scenario may like below:

image