Skip to content

Commit 6c81a86

Browse files
committed
Update open5gs and ueransim IPs
1 parent 15677c3 commit 6c81a86

File tree

11 files changed

+27
-17
lines changed

11 files changed

+27
-17
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ To deploy Open5GS and its components, follow the deployment steps below:
3434

3535
Please refer to the specific directories for more detailed instructions and usage examples.
3636

37+
### IP Ranges
38+
This project uses overlay IPs for tunnels deployed with the OVS-CNI in Kubernetes. The CNI configuration is outlined in the `networks5g/`.
39+
40+
- `n2network` as IP `10.10.2.0/24`, `n3network` has IP `10.10.3.0/24`, `n4network` has IP `10.10.4.0/24`.
41+
- Due to constraints in srsRAN, both AMF and gNB currently utilize the `n3network` instead of `n2network`.
42+
- UPF N3 IP range is from `10.10.3.X` from `UPFX`. UPF N4 IP range is from `10.10.4.X` for `UPFX`.
43+
- SMF N4 IP range is from `10.10.4.{100 + X}` from `SMFX`
44+
- AMF IP range is from `10.10.3.200` to `10.10.3.230`.
45+
- gNB IP range is from `10.10.3.231` to `10.10.3.250`.
46+
47+
Please use the above conventions when connecting external gNBs, e.g., srsRAN.
48+
49+
3750
## Scripts
3851
The `bin` directory contains scripts for easily viewing logs and getting a shell on any of the NFs. Usage is as follows.
3952
```bash

open5gs/common/amf/amf-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ data:
2828
port: 80
2929
3030
ngap:
31-
- addr: 10.10.3.10
31+
- addr: 10.10.3.200
3232
metrics:
3333
- addr: 0.0.0.0
3434
port: 9090

open5gs/common/amf/amf-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
nf: amf
1919
annotations:
2020
k8s.v1.cni.cncf.io/networks: '[
21-
{ "name": "n3network", "interface": "n3", "ips": [ "10.10.3.10/24" ] }
21+
{ "name": "n3network", "interface": "n3", "ips": [ "10.10.3.200/24" ] }
2222
]'
2323
spec:
2424
# nodeSelector:

open5gs/slices/slice1/smf1/smf-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ data:
3838
- addr: 0.0.0.0
3939
port: 9090
4040
subnet:
41-
- addr: 10.45.0.1/16
41+
- addr: 10.41.0.1/16
4242
dnn: internet
4343
dns:
4444
- 8.8.8.8

open5gs/slices/slice1/smf1/smf-deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ spec:
2121
name: smf1
2222
annotations:
2323
k8s.v1.cni.cncf.io/networks: '[
24-
{ "name": "n3network", "interface": "n3", "ips": [ "10.10.3.11/24" ] },
25-
{ "name": "n4network", "interface": "n4", "ips": [ "10.10.4.11/24" ] }
24+
{ "name": "n4network", "interface": "n4", "ips": [ "10.10.4.101/24" ] }
2625
]'
2726
spec:
2827
# nodeSelector:

open5gs/slices/slice1/upf1/upf-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ data:
1818
gtpu:
1919
- dev: n3
2020
subnet:
21-
- addr: 10.45.0.1/16
21+
- addr: 10.41.0.1/16
2222
dnn: internet
2323
metrics:
2424
- addr: 0.0.0.0
@@ -29,7 +29,7 @@ data:
2929
#!/bin/bash
3030
3131
ip tuntap add name ogstun mode tun;
32-
ip addr add 10.45.0.1/16 dev ogstun;
32+
ip addr add 10.41.0.1/16 dev ogstun;
3333
sysctl -w net.ipv6.conf.all.disable_ipv6=1;
3434
ip link set ogstun up;
3535
sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward";

open5gs/slices/slice2/smf2/smf-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ data:
3838
- addr: 0.0.0.0
3939
port: 9090
4040
subnet:
41-
- addr: 10.46.0.1/16
41+
- addr: 10.42.0.1/16
4242
dnn: streaming
4343
dns:
4444
- 8.8.8.8

open5gs/slices/slice2/smf2/smf-deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ spec:
2121
name: smf2
2222
annotations:
2323
k8s.v1.cni.cncf.io/networks: '[
24-
{ "name": "n3network", "interface": "n3", "ips": [ "10.10.3.12/24" ] },
25-
{ "name": "n4network", "interface": "n4", "ips": [ "10.10.4.12/24" ] }
24+
{ "name": "n4network", "interface": "n4", "ips": [ "10.10.4.102/24" ] }
2625
]'
2726
spec:
2827
# nodeSelector:

open5gs/slices/slice2/upf2/upf-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ data:
1717
gtpu:
1818
- dev: n3
1919
subnet:
20-
- addr: 10.46.0.1/16
20+
- addr: 10.42.0.1/16
2121
dnn: streaming
2222
metrics:
2323
- addr: 0.0.0.0
@@ -28,7 +28,7 @@ data:
2828
#!/bin/bash
2929
3030
ip tuntap add name ogstun mode tun;
31-
ip addr add 10.46.0.1/16 dev ogstun;
31+
ip addr add 10.42.0.1/16 dev ogstun;
3232
sysctl -w net.ipv6.conf.all.disable_ipv6=1;
3333
ip link set ogstun up;
3434
sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward";

ueransim/ueransim-gnb/config/open5gs-gnb.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ idLength: 32 # NR gNB ID length in bits [22...32]
66
tac: 1 # Tracking Area Code
77

88
linkIp: 0.0.0.0 # gNB's local IP address for Radio Link Simulation (Usually same with local IP)
9-
ngapIp: 10.10.3.22 # gNB's local IP address for N2 Interface (Usually same with local IP)
10-
gtpIp: 10.10.3.22 # gNB's local IP address for N3 Interface (Usually same with local IP)
9+
ngapIp: 10.10.3.231 # gNB's local IP address for N2 Interface (Usually same with local IP)
10+
gtpIp: 10.10.3.231 # gNB's local IP address for N3 Interface (Usually same with local IP)
1111

1212
# List of AMF address information
1313
amfConfigs:
14-
- address: 10.10.3.10
14+
- address: 10.10.3.200
1515
port: 38412
1616

1717
# List of supported S-NSSAIs by this gNB

ueransim/ueransim-gnb/gnb-deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ spec:
1919
component: gnb
2020
annotations:
2121
k8s.v1.cni.cncf.io/networks: '[
22-
{ "name": "n2network", "interface": "n2", "ips": [ "10.10.2.22/24" ] },
23-
{ "name": "n3network", "interface": "n3", "ips": [ "10.10.3.22/24" ] }
22+
{ "name": "n3network", "interface": "n3", "ips": [ "10.10.3.231/24" ] }
2423
]'
2524
spec:
2625
containers:

0 commit comments

Comments
 (0)