Commit 22d93ade authored by Raymond Knopp's avatar Raymond Knopp

Merge branch 'LTE-sidelink' of https://gitlab.eurecom.fr/oai/openairinterface5g into LTE-sidelink

parents 5e735a44 f820a0da
#!/bin/bash
sudo iptables -t mangle -F
sudo iptables -t nat -F
# Load ue_ip module
sudo rmmod ue_ip
source oaienv
cd cmake_targets/tools
source init_nas_s1 UE
# Sidelink interface configuration
sudo ifconfig oip0 10.0.0.1
......@@ -10,9 +18,13 @@ sudo ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up
# Routing and SLRB configuration for specific sidelink (10.0.0.2) and external(e.g., 8.8.8.8) destination addresses.
sudo ip neigh add 10.0.0.2 lladdr 00:00:00:00:00:02 dev oip0 nud permanent
sudo ip neigh change 10.0.0.2 lladdr 00:00:00:00:00:02 dev oip0 nud permanent
sudo iptables -A POSTROUTING -t mangle -o oip0 -d 10.0.0.2 -j MARK --set-mark 4
# Mark outgoing MULTICAST traffic to group 224.0.0.3 with the SLRB ID
sudo iptables -A POSTROUTING -t mangle -o oip0 -d 224.0.0.3 -j MARK --set-mark 5
sudo ip route add 8.8.8.8 dev oip1
# Applying NAT so that the Remote UE originating/destined traffic does not get blocked at the PGW.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment