a.Mini-um Specification
b. Recommended Specification
c. General Requirements
a. Download the compressed golang
Note : If you cannot downloading compressed go file consider to reconfigure network to dynamic addressing using
change dhcp value to true
b. Extract the compressed file
c. Create empty directories
d. Set some environment variable
e. Make sure that golang installed properly
a. Install prerequisities package
b. Import public key for mongodb
c. Add mongoDB 7.0 repository to /etc/apt/sources.list.d directory
Note: consider to change focal
to jammy
if you try to install mongodb in ubuntu 22.04
d. Reload local package index
e. Install mongoDB
f. Activate mongodb service
Note: If you can't install the newer version, check the CPU use the command below
If it doesn't emitt anything like this
then your CPU doesn't have AVX, consider installing older version of mongodb, like v4.4 or below
If the command show some output you can install newer version, here is the example
a. Install Control-plane dependencies
b. Install User-plane dependencies
c. Edit firewall rule
Modify the -o (ex. enp0s3
) options based on the ifconfig
output
If ifconfig
command not found, run this command
d. Clone control-plane repository
e. Build all network functions
f. Retrieve 5G GTP-U kernel module
g. Build the UPF
h. Install nodejs and yarn package
Note : Try use this command instead if you got an error that you supposed to install nodejs-12
i. Build WebConsole
j. Test Network Function
a. Minimum Specification
b. Recommended Specification
c. General Requirements
a. Move to home directory
b. Clone UERANSIM repository
c. Move to UERANSIM directory
d. Switch working directory
e. Update system repositories and Upgrade installed package
f. Installing required tools
g. Build UERANSIM
if you encounter problem due to cmake version, you can use this command to remove and reinstall newer version of cmake, adjust the version accordingly
a. Open file /etc/hostname
`sudo nano /etc/hostname`
b. Replace it's contain with "free5gc"
c. Save the file, click "CTRL+x" then "y" then "ENTER"
d. Checkout the network address of the host
If the VM hosted in windows type this command in command prompt
Here is the result
When the screenshot is taken, the computer use wireless adapter, so the network address would be 192.168.57.0
and the default gateway will be 192.168.57.250
d. Checkout file under /etc/netplan directory
`ls /etc/netplan`
The command will produce output like
`01-network-manager-all.yaml`
e. Edit the file
sudo nano /etc/netplan/01-network-manager-all.yaml
Aternatives
`sudo nano /etc/netplan/$(ls /etc/netplan)`
f. At first, the file will look like
Edit the file
g. Check for syntax error in the configuration file
h. Apply the configuration
Important: Every time you reboot your system or reconnect to other network, you must reconfigure the static address as the host address is changed
Note: Writer use VirtualBox to create VM, the network of Free5GC and UERANSIM are set to Bridged Adapter. Choose the similar setting if the VM created using different software such as VMWare.
a. Edit file ~/free5gc/config/amfcfg.yaml
b. Find the ngapIpList key
c. Replace localhost address with 192.168.56.101
d. Save the file and exit from text editor
a. Edit file ~/free5gc/config/smfcfg.yaml
b. Find interfaces block
c. Replace address 127.0.0.8 with your static address
a. Edit file ~/free5gc/config/upfcfg.yaml
b. Find gtpu IP line
c. Replace address 127.0.0.8 with 192.168.56.101
Replace the linkIp, ngapIp, gtpIp with the UE/RAN SIM ip address and replace address under amfConfigs with Core Network IP address
Open web browser and type <Your static address>:5000
Login using admin as username and free5gc as password
then write these lines to the file
note: change interface in -o option based on
ifconfig
command output
to change terminal in ubuntu server, use CTRL+ALT+F2
in new terminal, issue command:
to change terminal in ubuntu server, use CTRL+ALT+F3
Make sure the interface uesimtun0
exist