From f0971857b7edc2b22cfdf64378e4f3b341decbd4 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:54:09 +0000 Subject: [PATCH] Update README.md --- .../README.md | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/openairinterface5g/openairinterface-install-scripts/README.md b/openairinterface5g/openairinterface-install-scripts/README.md index c58e0978..0e8f4d11 100644 --- a/openairinterface5g/openairinterface-install-scripts/README.md +++ b/openairinterface5g/openairinterface-install-scripts/README.md @@ -191,43 +191,43 @@ To install OAI FlexRIC, go back to /home/$your user$ and follow this tutorial. **Step 1:** Creating a namespace: -sudo ip netns add oai-ue1 +> sudo ip netns add oai-ue1 **Step 2:** Creating a pair of virtual interfaces (veth): -sudo ip link add veth0 type veth peer name veth1 +> 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-ue1 +> sudo ip link set veth1 netns oai-ue1 **Step 4:** Configuring an IP address for veth0 interface: -sudo ip addr add 192.168.1.1/24 dev veth0 +> 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-ue1 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: -sudo ip link set veth0 up +> sudo ip link set veth0 up **Step 7:** Bringing up the veth1 interface within the namespace: -sudo ip netns exec oai-ue1 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-ue1 ip route add 192.168.70.0/24 via 192.168.1.1 dev veth1 +> sudo ip netns exec oai-ue1 ip route add 192.168.70.0/24 via 192.168.1.1 dev veth1 **Step 9:** Enabling packet forwarding within the namespace: -sudo ip netns exec oai-ue1 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-ue1 iptables -P FORWARD ACCEPT +> sudo ip netns exec oai-ue1 iptables -P FORWARD ACCEPT ## UE 2 Configurations @@ -236,43 +236,43 @@ sudo ip netns exec oai-ue1 iptables -P FORWARD ACCEPT **Step 1:** Creating a namespace: -sudo ip netns add oai-ue2 +> sudo ip netns add oai-ue2 **Step 2:** Creating a pair of virtual interfaces (veth): -sudo ip link add veth1 type veth peer name veth2 +> sudo ip link add veth1 type veth peer name veth2 **Step 3:** Moving one interface to the created namespace: -sudo ip link set veth2 netns oai-ue2 +> sudo ip link set veth2 netns oai-ue2 **Step 4:** Configuring an IP address for veth1 interface: -sudo ip addr add 192.168.1.1/24 dev veth1 +> 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-ue2 ip addr add 192.168.1.2/24 dev veth2 +> sudo ip netns exec oai-ue2 ip addr add 192.168.1.2/24 dev veth2 **Step 6:** Bringing up the veth1 interface: -sudo ip link set veth1 up +> sudo ip link set veth1 up **Step 7:** Bringing up the veth1 interface within the namespace: -sudo ip netns exec oai-ue2 ip link set veth2 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-ue2 ip route add 192.168.70.0/24 via 192.168.1.1 dev veth2 +> sudo ip netns exec oai-ue2 ip route add 192.168.70.0/24 via 192.168.1.1 dev veth2 **Step 9:** Enabling packet forwarding within the namespace: -sudo ip netns exec oai-ue2 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-ue2 iptables -P FORWARD ACCEPT +> sudo ip netns exec oai-ue2 iptables -P FORWARD ACCEPT ## Deployments -- GitLab