Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangwenhui
OpenXG-RAN
Commits
8aff61d0
Commit
8aff61d0
authored
Jul 10, 2019
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'LTE-sidelink' of
https://gitlab.eurecom.fr/oai/openairinterface5g
into LTE-sidelink
parents
f40a59b2
22d93ade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
remote_UE_routing.sh
remote_UE_routing.sh
+14
-1
No files found.
remote_UE_routing.sh
View file @
8aff61d0
#!/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
#Interface configuration
sudo
ifconfig oip0 10.0.0.2
...
...
@@ -7,10 +16,14 @@ sudo ifconfig oip0 hw ether 00:00:00:00:00:02
#Routing configuration for specific sidelink destination addresses (sidelink (10.0.0.1))
sudo
ip neigh add 10.0.0.1 lladdr 00:00:00:00:00:01 dev oip0 nud permanent
sudo
ip neigh change 10.0.0.1 lladdr 00:00:00:00:00:01 dev oip0 nud permanent
#
Establishment of SLRB for sidelink communication
#
Mark outgoing UNICAST traffic to UE 10.0.0.2 with the SLRB ID
sudo
iptables
-A
POSTROUTING
-t
mangle
-o
oip0
-d
10.0.0.1
-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
# Associate destination address (e.g. 8.8.8.8) with the MAC address of the relay UE at the neighbor table
sudo
ip neigh add 8.8.8.8 lladdr 00:00:00:00:00:01 dev oip0 nud permanent
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment