forked from magma/magma
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(orc8r): Adds docs for Charmed Magma 1.8 (magma#15186)
* docs(orc8r): Adds docs for Charmed Magma 1.8 Signed-off-by: Bartlomiej Gmerek <[email protected]> * docs(orc8r): Fixes styling issues Signed-off-by: Bartlomiej Gmerek <[email protected]> * docs(orc8r): Fixes styling issues Signed-off-by: Bartlomiej Gmerek <[email protected]> * docs(orc8r): Fixes styling issues Signed-off-by: Bartlomiej Gmerek <[email protected]> * docs(orc8r): Addressing PR comments Signed-off-by: Bartlomiej Gmerek <[email protected]> * Updating links to the official Charmed Magma docs Signed-off-by: Bartlomiej Gmerek <[email protected]> * Minor updates in the tutorial Signed-off-by: Bartlomiej Gmerek <[email protected]> * Minor updates in the tutorial Signed-off-by: Bartlomiej Gmerek <[email protected]> --------- Signed-off-by: Bartlomiej Gmerek <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,854 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
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
77 changes: 77 additions & 0 deletions
77
docs/docusaurus/versioned_docs/version-1.8.0/lte/deploy_agw_using_juju.md
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,77 @@ | ||
--- | ||
id: version-1.8.0-deploy_agw_using_juju | ||
title: Deploy AGW using Juju | ||
hide_title: true | ||
original_id: deploy_agw_using_juju | ||
--- | ||
|
||
# Deploy Charmed Magma Access Gateway | ||
|
||
## Requirements | ||
|
||
### Management machine | ||
|
||
- Ubuntu machine with internet access | ||
|
||
### Access Gateway machine | ||
|
||
The Access Gateway must be installed on a machine with the following specifications: | ||
|
||
- **Operating System**: Ubuntu 20.04 LTS with Linux Kernel 5.4 | ||
- **Processor**: x86-64 dual-core processor (around 2GHz clock speed or faster) | ||
- **Memory**: 4GB RAM | ||
- **Storage**: 32GB or greater SSD | ||
- **Networking**: At least two ethernet interfaces using two different subnets (**SGi** for internet connectivity and **S1** for enodeB connectivity) | ||
|
||
!!! danger | ||
|
||
Installing this charm will affect the target computer's networking configuration. Make sure it is installed on designated hardware (personal computers are strongly discouraged). | ||
|
||
!!! info | ||
|
||
Some clouds like AWS use newer kernel versions by default. If you want to downgrade your kernel, please refer to the following [guide](https://discourse.ubuntu.com/t/how-to-downgrade-the-kernel-on-ubuntu-20-04-to-the-5-4-lts-version/26459). | ||
|
||
## Set up your management environment | ||
|
||
- Install [Juju 2.9](https://juju.is/docs/olm/installing-juju) on your management machine | ||
- Create and bootstrap a [manual cloud](https://juju.is/docs/olm/manual-setup) | ||
- [Add the Ubuntu machine](https://juju.is/docs/olm/manual-setup#heading--add-machines-to-a-manual-cloud) to your manual cloud | ||
|
||
## Install Magma Access Gateway | ||
|
||
=== "Option 1: DHCP network configuration" | ||
|
||
Deploy Magma Access Gateway: | ||
``` bash | ||
juju deploy magma-access-gateway-operator --config sgi=enp0s1 --config s1=enp0s2 --channel=1.8/stable --to <AGW machine ID> | ||
``` | ||
|
||
!!! info | ||
The interface names will need to be adjusted based on your specific machine. | ||
|
||
=== "Option 2: Static network configuration" | ||
|
||
Create a file called `agw_config.yaml` that contains the following content: | ||
|
||
``` yaml | ||
--- | ||
magma-access-gateway-operator: | ||
sgi: enp0s1 | ||
sgi-ipv4-address: 192.168.0.2/24 | ||
sgi-ipv4-gateway: 192.168.0.1 | ||
sgi-ipv6-address: fd7d:3797:378b:a502::2/64 | ||
sgi-ipv6-gateway: fd7d:3797:378b:a502::1 | ||
s1: enp0s2 | ||
s1-ipv4-address: 192.168.1.2/24 | ||
s1-ipv6-address: fd7d:3797:378b:a503::2/64 | ||
dns: '["8.8.8.8", "208.67.222.222"]' | ||
``` | ||
|
||
!!! info | ||
The interface names and IP addresses will need to be adjusted based on your specific machine. | ||
|
||
Deploy Magma Access Gateway: | ||
|
||
```bash | ||
juju deploy magma-access-gateway-operator --config agw_config.yaml --channel=1.8/stable --to <AGW machine ID> | ||
``` |
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
35 changes: 35 additions & 0 deletions
35
...ed_docs/version-1.8.0/tutorials/00_private_mobile_network_with_charmed_magma.md
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,35 @@ | ||
--- | ||
id: version-1.8.0-00_overview | ||
title: Overview | ||
hide_title: true | ||
original_id: 00_overview | ||
--- | ||
|
||
# Operate your own private mobile network with Charmed Magma | ||
|
||
In this tutorial, we will use Juju to deploy and run Magma's 4G core network on AWS. | ||
We will also deploy a radio and cellphone simulator from the [srsRAN](https://www.srslte.com/) | ||
project to simulate usage of this network. You will need: | ||
|
||
- An AWS account[^1] | ||
- A public domain | ||
- A computer[^2] with the following software installed: | ||
- [juju 2.9](https://juju.is/docs/olm/install-juju) | ||
- [kubectl](https://kubernetes.io/docs/tasks/tools/) | ||
- [aws cli](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) | ||
- [eksctl](https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html) | ||
|
||
## Table of contents | ||
|
||
1. [Getting Started](01_getting_started.md) | ||
2. [Deploying Magma Orchestrator](02_deploying_magma_orchestrator.md) | ||
3. [Deploying Magma Access Gateway](03_deploying_magma_access_gateway.md) | ||
4. [Integrating Magma Access Gateway with Magma Orchestrator](04_integrating_magma_access_gateway_with_magma_orchestrator.md) | ||
5. [Deploying the radio simulator](05_deploying_the_radio_simulator.md) | ||
6. [Simulating user traffic](06_simulating_user_traffic.md) | ||
7. [Destroying the environment](07_destroying_the_environment.md) | ||
|
||
[^1]: This tutorial uses AWS as the cloud provider. You can use any cloud provider | ||
that Juju supports. See [Juju Clouds](https://juju.is/docs/olm/juju-supported-clouds) | ||
for more information. | ||
[^2]: All the commands were tested from a Ubuntu 22.04 LTS machine. |
Oops, something went wrong.