Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
config-amarisoft
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
nexedi
config-amarisoft
Commits
db50078e
Commit
db50078e
authored
Aug 26, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add multi-UE demo config used for ORS5 UE
parent
e0053539
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
0 deletions
+96
-0
ue/multi-ue-demo/ue-ifup
ue/multi-ue-demo/ue-ifup
+54
-0
ue/multi-ue-demo/ue.cfg
ue/multi-ue-demo/ue.cfg
+42
-0
No files found.
ue/multi-ue-demo/ue-ifup
0 → 100755
View file @
db50078e
#!/bin/bash
# Copyright (C) 2022 Amarisoft
# lteue PDN configurator script version 2022-08-19
ue_id
=
"
$1
"
# UE ID
pdn_id
=
"
$2
"
# PDN unique id (start from 0)
ifname
=
"
$3
"
# Interface name
ipv4_addr
=
"
$4
"
# IPv4 address
ipv4_dns
=
"
$5
"
# IPv4 DNS
ipv6_local_addr
=
"
$6
"
# IPv6 local address
ipv6_dns
=
"
$7
"
# IPv6 DNS
old_link_local
=
""
#echo "Configure $ue_id/$pdn_id, tun=$ifname, ip=$ipv4_addr, dns=$ipv4_dns"
ifname1
=
"pdn
$pdn_id
"
ip
link set
dev
$ifname
name
$ifname1
ifname
=
"
$ifname1
"
if
[
"
$ipv6_local_addr
"
!=
""
]
;
then
bash
-c
"echo '0' > /proc/sys/net/ipv6/conf/
$ifname
/disable_ipv6"
bash
-c
"echo '2' > /proc/sys/net/ipv6/conf/
$ifname
/accept_ra"
bash
-c
"echo '2' > /proc/sys/net/ipv6/conf/
$ifname
/router_solicitation_delay"
bash
-c
"echo '2' > /proc/sys/net/ipv6/conf/
$ifname
/autoconf"
else
bash
-c
"echo '1' > /proc/sys/net/ipv6/conf/
$ifname
/disable_ipv6"
fi
if
[
"
$pdn_id
"
=
"0"
]
;
then
ifconfig lo up
fi
ifconfig
$ifname
up
if
[
"
$ipv4_addr
"
!=
""
]
;
then
ifconfig
$ifname
$ipv4_addr
/24
if
[
"
$pdn_id
"
=
"0"
]
;
then
ip route add default via
$ipv4_addr
fi
fi
if
[
"
$ipv6_local_addr
"
!=
""
]
;
then
old_link_local
=
`
ip addr show dev
$ifname
|
sed
-e
's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d'
`
if
[
"
$old_link_local
"
!=
""
]
;
then
ifconfig
$ifname
inet6 del
$old_link_local
/64
fi
ifconfig
$ifname
inet6 add
$ipv6_local_addr
/64
fi
iptables
-t
nat
-D
POSTROUTING
-o
pdn0
-j
MASQUERADE
ip6tables
-t
nat
-D
POSTROUTING
-o
pdn0
-j
MASQUERADE
iptables
-t
nat
-A
POSTROUTING
-o
pdn0
-j
MASQUERADE
ip6tables
-t
nat
-A
POSTROUTING
-o
pdn0
-j
MASQUERADE
ip
-6
route add default via fe80::a1f0:e37f:f44c:907 dev pdn0
echo
1
>
/proc/sys/net/ipv6/conf/all/forwarding
echo
1
>
/proc/sys/net/ipv4/conf/all/forwarding
ue/multi-ue-demo/ue.cfg
0 → 100644
View file @
db50078e
{
log_options: "all.level=info,all.max_size=1",
log_filename: "/tmp/ue0.log",
com_addr: "0.0.0.0:9002",
rf_driver: {
name: "sdr",
args: "dev0=/dev/sdr0",
rx_antenna:"tx_rx",
},
tx_gain: 20.0,
rx_gain: 15.0,
cell_groups: [{
group_type: "nr",
multi_ue: false,
cells: [{
rf_port: 0,
bandwidth: 40,
band: 78,
dl_nr_arfcn: 646666,
ssb_nr_arfcn: 645984,
subcarrier_spacing: 30,
n_antenna_dl: 2,
n_antenna_ul: 2,
}],
}],
ue_list: [
{
as_release: 15,
ue_category: "nr",
tun_setup_script: "ue-ifup",
attach_pdn_type: "ipv4v6",
apn: "internet",
sim_algo: "milenage",
imsi: "001010000000486",
opc: "000102030405060708090A0B0C0D0E0F",
sqn: "000000000000",
K: "00112233445566778899AABBCCDDEEFF",
impu: "impu486",
impi: "impi486@amarisoft.com",
}
],
}
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