错误产生场景
执行下面代码时产生错误,有9个test都失败了
$ ./build/tests/attach/attach ## EPC Only $ ./build/tests/registration/registration ## 5G Core Only
产生原因
未安装MongoDB或者未运行MongoDB,或者未运行tun设备
解决办法
安装open5GS前要先安装MongoDB,并且运行MongoDB,设置tun设备。使用如下代码
$ sudo systemctl start mongod $ sudo systemctl enable mongod $ sudo ip tuntap add name ogstun mode tun $ sudo ip addr add 10.45.0.1/16 dev ogstun $ sudo ip addr add 2001:db8:cafe::1/48 dev ogstun $ sudo ip link set ogstun up标签:fails,open5GS,ip,sudo,ogstun,add,报错,MongoDB From: https://www.cnblogs.com/songsj/p/17834072.html