-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add how to set static ip for UE
- Loading branch information
Showing
11 changed files
with
143 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+80.7 KB
docs/guide/Static-IP/images/ue2_010203_static_ip_verify_collision.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
# Set Static IP for UE | ||
|
||
In this demo, we will practice: | ||
|
||
- Static IP Pool settings | ||
- Set Static IP address for UE in webconsole | ||
- Verify the IP address settings | ||
|
||
|
||
|
||
## 1. Static IP pool settings | ||
|
||
We first have to know the static IP pool for specific DNN. | ||
|
||
- In `smfcfg.yaml`, the **userplaneInformation** is what we need now: | ||
- The following files remove some settings; please refer to the sample configuration file. | ||
- We set two slices with one DNN each for this demo: | ||
- 01010203 | ||
- internet | ||
- pools: 10.60.0.0/16 | ||
- staticPools: **10.60.100.0/24** | ||
- 01112233 | ||
- internet | ||
- pools: 10.61.0.0/16 | ||
- staticPools: **10.61.100.0/24** | ||
|
||
```yaml | ||
configuration: | ||
userplaneInformation: # list of userplane information | ||
upNodes: # information of user-plane node (AN or UPF) | ||
UPF: # the name of the node | ||
type: UPF # the type of the node (AN or UPF) | ||
sNssaiUpfInfos: # S-NSSAI information list for this UPF | ||
- sNssai: # S-NSSAI(Single Network Slice Selection Assistance Information) | ||
sst: 1 # Slice/Service Type (uinteger, range: 0~255) | ||
sd: 010203 # Slice Differentiator(3 bytes hex string, range: 000000~FFFFFF) | ||
dnnUpfInfoList: # DNN information list for this S-NSSAI | ||
- dnn: internet | ||
pools: | ||
- cidr: 10.60.0.0/16 | ||
staticPools: | ||
- cidr: 10.60.100.0/24 | ||
- sNssai: | ||
sst: 1 | ||
sd: 112233 | ||
dnnUpfInfoList: | ||
- dnn: internet | ||
pools: | ||
- cidr: 10.61.0.0/16 | ||
staticPools: | ||
- cidr: 10.61.100.0/24 | ||
``` | ||
## 2. Create Subscribers with Static-IP | ||
In this step, we would go through how to set static IP addresses for subscribers and verify the settings. | ||
- You could also refer to this for how to create subscribers.](./../Webconsole/Create-Subscriber-via-webconsole.md) | ||
- We would create two subscribers: | ||
- *imsi-208930000000001* | ||
- *imsi-208930000000002* | ||
- Both have slices *010203* and *112233,* but have different IP settings. | ||
### imsi-208930000000001 | ||
- **010203** | ||
- A Static IPv4 Address toggle under the slices' DNN section would be displayed. | ||
![ue1_010203](./images/ue1_010203.png) | ||
- Turn it one, and set the IPv4 address you want to use for this UE of this DNN. | ||
- We set **10.60.100.163** | ||
![ue1_010203_static_ip](./images/ue1_010203_static_ip.png) | ||
- Click Verify | ||
- If the setting is OK, the webconsole will show **"OK"** in an alert box. | ||
![ue1_010203_static_ip_verify](./images/ue1_010203_static_ip_verify.png) | ||
- **112233** | ||
- Set the IPv4 address you want for this UE of this DNN. | ||
- We set **10.60.100.150** | ||
- <font color="red">Note that **10.60.100.150** is not in *10.61.100.0/24* (The Static-IP pool for this DNN)</font> | ||
![ue1_112233_static_ip](./images/ue1_112233_static_ip.png) | ||
- Click Verify | ||
- Since the IP address is not in the Static-IP pool for this DNN, it would pop up **"No"** with the reason. | ||
![ue1_112233_static_ip_verify_1_failed](./images/ue1_112233_static_ip_verify_1_failed.png) | ||
- Correct the IP and Verify again: **10.61.100.150** | ||
![ue1_112233_static_ip_verify_2](./images/ue1_112233_static_ip_verify_2.png) | ||
### imsi-208930000000002 | ||
- **010203** | ||
- Set **10.60.100.163** for this DNN and click Verify. | ||
- <font color="red">Note that **10.60.100.163** was set by the other UE</font> | ||
![ue2_010203_static_ip_verify_collision](./images/ue2_010203_static_ip_verify_collision.png) | ||
- Change to **10.60.100.165** | ||
- **112233** | ||
- Keep the Static IPv4 Address toggle off, as Dynamic IPv4 address for this DNN. | ||
## Test with UERANSIM | ||
- You can refer to [this](./../5-install-ueransim.md) for instructions on how to use UERANSIM. | ||
### imsi-208930000000001 | ||
![ue1_ueransim](./images/ue1_ueransim.png) | ||
- This UE gets **10.60.100.163** for slice 010203, which is what we set before | ||
- This UE gets **10.61.100.165** for slice 112233, which is what we set before | ||
### imsi-208930000000002 | ||
![ue2_ueransim](./images/ue2_ueransim.png) | ||
- This UE gets **10.60.100.165** for slice 010203, which is what we set before | ||
- This UE gets **10.61.0.1** for slice 112233, the IP address in pools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters