From d1896cff93519e56c960e21cb33c4089631a91ea Mon Sep 17 00:00:00 2001 From: Carlos Antonio De Lima Filho <carlos.lima.106@ufrn.edu.br> Date: Tue, 12 Nov 2024 23:19:42 +0000 Subject: [PATCH] Update README.md --- .../README.md | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/openairinterface5g/openairinterface-install-scripts/README.md b/openairinterface5g/openairinterface-install-scripts/README.md index 0bac9681..247d3770 100644 --- a/openairinterface5g/openairinterface-install-scripts/README.md +++ b/openairinterface5g/openairinterface-install-scripts/README.md @@ -192,7 +192,7 @@ To install OAI FlexRIC, go back to /home/$your user$ and follow this tutorial. **Step 1:** Creating a namespace: -sudo ip netns add oai-2 +sudo ip netns add oai-ue1 **Step 2:** Creating a pair of virtual interfaces (veth): @@ -200,7 +200,7 @@ sudo ip link add veth0 type veth peer name veth1 **Step 3:** Moving one interface to the created namespace: -sudo ip link set veth1 netns oai-2 +sudo ip link set veth1 netns oai-ue1 **Step 4:** Configuring an IP address for veth0 interface: @@ -208,7 +208,7 @@ sudo ip addr add 192.168.1.1/24 dev veth0 **Step 5:** Configuring an IP address for veth1 interface within the namespace: -sudo ip netns exec oai-2 ip addr add 192.168.1.2/24 dev veth1 +sudo ip netns exec oai-ue1 ip addr add 192.168.1.2/24 dev veth1 **Step 6:** Bringing up the veth0 interface: @@ -216,61 +216,61 @@ sudo ip link set veth0 up **Step 7:** Bringing up the veth1 interface within the namespace: -sudo ip netns exec oai-2 ip link set veth1 up +sudo ip netns exec oai-ue1 ip link set veth1 up **Step 8:** Adding a route within the namespace: -sudo ip netns exec oai-2 ip route add 192.168.70.128/26 via 192.168.1.1 dev veth1 +sudo ip netns exec oai-ue1 ip route add 192.168.70.128/26 via 192.168.1.1 dev veth1 **Step 9:** Enabling packet forwarding within the namespace: -sudo ip netns exec oai-2 sysctl net.ipv4.conf.all.forwarding=1 +sudo ip netns exec oai-ue1 sysctl net.ipv4.conf.all.forwarding=1 **Step 10:** Setting default policy for packet forwarding within the namespace to ACCEPT:: -sudo ip netns exec oai-2 iptables -P FORWARD ACCEPT +sudo ip netns exec oai-ue1 iptables -P FORWARD ACCEPT ## UE 2 Configurations **Step 1:** Creating a namespace: -sudo ip netns add oai-2 +sudo ip netns add oai-ue2 **Step 2:** Creating a pair of virtual interfaces (veth): -sudo ip link add veth0 type veth peer name veth1 +sudo ip link add veth1 type veth peer name veth2 **Step 3:** Moving one interface to the created namespace: -sudo ip link set veth1 netns oai-2 +sudo ip link set veth2 netns oai-ue2 -**Step 4:** Configuring an IP address for veth0 interface: +**Step 4:** Configuring an IP address for veth1 interface: -sudo ip addr add 192.168.1.1/24 dev veth0 +sudo ip addr add 192.168.1.1/24 dev veth1 **Step 5:** Configuring an IP address for veth1 interface within the namespace: -sudo ip netns exec oai-2 ip addr add 192.168.1.2/24 dev veth1 +sudo ip netns exec oai-ue2 ip addr add 192.168.1.2/24 dev veth2 -**Step 6:** Bringing up the veth0 interface: +**Step 6:** Bringing up the veth1 interface: -sudo ip link set veth0 up +sudo ip link set veth1 up **Step 7:** Bringing up the veth1 interface within the namespace: -sudo ip netns exec oai-2 ip link set veth1 up +sudo ip netns exec oai-ue2 ip link set veth2 up **Step 8:** Adding a route within the namespace: -sudo ip netns exec oai-2 ip route add 192.168.70.128/26 via 192.168.1.1 dev veth1 +sudo ip netns exec oai-ue2 ip route add 192.168.70.128/26 via 192.168.1.1 dev veth2 **Step 9:** Enabling packet forwarding within the namespace: -sudo ip netns exec oai-2 sysctl net.ipv4.conf.all.forwarding=1 +sudo ip netns exec oai-ue2 sysctl net.ipv4.conf.all.forwarding=1 **Step 10:** Setting default policy for packet forwarding within the namespace to ACCEPT:: -sudo ip netns exec oai-2 iptables -P FORWARD ACCEPT +sudo ip netns exec oai-ue2 iptables -P FORWARD ACCEPT ## Deployment -- GitLab