An open API service indexing awesome lists of open source software.

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

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
```