03 - OAI接入网搭建过程 - 研0

第一章 接入网基础文件下载

  • 1.1 安装git
sudo apt-get update
sudo apt-get install subversion git
  • 1.2 Add a certificate from gitlab.eurecom.fr to your Ubuntu
echo -n | openssl s_client -showcerts -connect gitlab.eurecom.fr:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt 
  • 1.3 Disable certificate check completely if you do not have root access to /etc/ssl directory
git config --global http.sslverify false
  • 1.4 接入网基本文件下载
git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git

第二章 Build , Config and Run

  • 2.1 Build
cd ~/openairinterface5g
source oaienv
cd cmake_targets

接下来一步需要科学上网,挂个代理 or换到清华源

./build_oai -I --eNB -x --install-system-files -w USRP
  • 2.2 修改~/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/下配置文件的内容
sudo vim ~/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf

mobile_network_code 改为跟核心网一样
mme_ip_address中的ipv4改为运行核心网主机的IP
NETWORK_INTERFACES中俩IP改为自己的IP
然后把它拷到~/openairinterface5g/cmake_targets/lte_build_oai/build目录下。

  • 2.3 修改配置
sudo vi ~/openairinterface5g/openair3/NAS/TOOLS/ue_eurecom_test_sfr.conf

因为IMSI=MCC+MNC+MSIN,而之前IMSI设置为208930000000001
所以将PLMN1的MCC改为208,MNC改为93(跟前面一样),UE0的MSIN改为0000000001

  • 2.4 run接入网(先插上USRP)
cd ~/openairinterface5g/cmake_targets/lte_build_oai/build
sudo ./lte-softmodem -O enb.band7.tm1.usrpb210.conf

猜你喜欢

转载自blog.csdn.net/BUPTOctopus/article/details/81561607
03