https://github.com/s5uishida/change_from_tun_to_tap_in_open5gs
A Note for Changing Network Interface of UPF from TUN to TAP in Open5GS
https://github.com/s5uishida/change_from_tun_to_tap_in_open5gs
open5gs tap tun upf
Last synced: 4 months ago
JSON representation
A Note for Changing Network Interface of UPF from TUN to TAP in Open5GS
- Host: GitHub
- URL: https://github.com/s5uishida/change_from_tun_to_tap_in_open5gs
- Owner: s5uishida
- Created: 2023-07-01T17:49:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T21:50:45.000Z (over 1 year ago)
- Last Synced: 2025-01-21T21:47:37.442Z (6 months ago)
- Topics: open5gs, tap, tun, upf
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Note for Changing Network Interface of UPF from TUN to TAP in Open5GS
---
### [Sample Configurations and Miscellaneous for Mobile Network](https://github.com/s5uishida/sample_config_misc_for_mobile_network)
---
Open5GS UPF operates a network interface of which name containing the "tap" string as a TAP interface.
The default is a TUN interface.An example when the network interface name is `ogstap` is as follows.
## Changes of the network settings in UPF machine
```diff
-ip tuntap add name ogstun mode tun
-ip addr add 10.45.0.1/16 dev ogstun
-ip link set ogstun up
+ip tuntap add name ogstap mode tap
+ip addr add 10.45.0.1/16 dev ogstap
+ip link set ogstap up
```## Changes of the configuration for UPF
- `open5gs/install/etc/open5gs/upf.yaml`
```diff
--- upf.yaml.orig 2024-03-29 06:38:35.252793670 +0900
+++ upf.yaml 2024-03-29 06:37:56.318811109 +0900
@@ -19,6 +19,7 @@
- address: 127.0.0.7
session:
- subnet: 10.45.0.1/16
+ dev: ogstap
metrics:
server:
- address: 127.0.0.7
```