Skip to content
Snippets Groups Projects
Commit d1896cff authored by Carlos Antonio De Lima Filho's avatar Carlos Antonio De Lima Filho
Browse files

Update README.md

parent 7f03eca0
No related branches found
No related tags found
No related merge requests found
...@@ -192,7 +192,7 @@ To install OAI FlexRIC, go back to /home/$your user$ and follow this tutorial. ...@@ -192,7 +192,7 @@ To install OAI FlexRIC, go back to /home/$your user$ and follow this tutorial.
**Step 1:** Creating a namespace: **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): **Step 2:** Creating a pair of virtual interfaces (veth):
...@@ -200,7 +200,7 @@ sudo ip link add veth0 type veth peer name veth1 ...@@ -200,7 +200,7 @@ sudo ip link add veth0 type veth peer name veth1
**Step 3:** Moving one interface to the created namespace: **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: **Step 4:** Configuring an IP address for veth0 interface:
...@@ -208,7 +208,7 @@ sudo ip addr add 192.168.1.1/24 dev veth0 ...@@ -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: **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: **Step 6:** Bringing up the veth0 interface:
...@@ -216,61 +216,61 @@ sudo ip link set veth0 up ...@@ -216,61 +216,61 @@ sudo ip link set veth0 up
**Step 7:** Bringing up the veth1 interface within the namespace: **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: **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: **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:: **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 ## UE 2 Configurations
**Step 1:** Creating a namespace: **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): **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: **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: **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: **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: **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: **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:: **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 ## Deployment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment