... | ... | @@ -53,7 +53,7 @@ nano |
|
|
Then fill the FQDN in /etc/hosts as follows:
|
|
|
|
|
|
```shell
|
|
|
labuser@labuser:$ cat /etc/hosts
|
|
|
nano@nano:$ cat /etc/hosts
|
|
|
127.0.0.1 localhost
|
|
|
127.0.1.1 nano.openair4G.eur nano
|
|
|
127.0.1.1 hss.openair4G.eur hss
|
... | ... | @@ -107,11 +107,14 @@ Look at [AutoBuild](AutoBuild) for more details. |
|
|
|
|
|
### 1.2 Configuration
|
|
|
|
|
|
#### 1.2.2 eNB and EPC+HSS on Different Hosts
|
|
|
#### 1.2.1 eNB and EPC+HSS on Different Hosts (RECOMMENDED SETUP)
|
|
|
|
|
|
Next, we explain the setup for running eNB and EPC+HSS on two different hosts. Assume the IP addresses of eNB and EPC+HSS are 192.168.12.82 and 192.168.12.62 respectively. We also assume that the interface with which they are connected together is ethernet (eth0).
|
|
|
|
|
|
##### 1.2.2.1 Configure eNB machine (update config files)
|
|
|
##### 1.2.1.1 Configure eNB machine (update config files)
|
|
|
|
|
|
**Note: You should always run eNB/EPC on seperate machines as there might be unexpected real-time issues**
|
|
|
|
|
|
Then, make sure the networking parameters are properly specified in eNB and EPC configuration files. In eNB configuration file (`~/openairinterface5g/targets/PROJECT/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf`),
|
|
|
|
|
|
```
|
... | ... | @@ -140,7 +143,7 @@ mobile_network_code = "92"; |
|
|
|
|
|
where mme_ip_address is network interface's IP address of your EPC/HSS, and NETWORK_INTERFACE is your eNB related network interface information.
|
|
|
|
|
|
##### 1.2.2.2 Configure EPC machine (update config files)
|
|
|
##### 1.2.1.2 Configure EPC machine (update config files)
|
|
|
|
|
|
Copy the EPC config files in /usr/local/etc/oai
|
|
|
```
|
... | ... | @@ -156,6 +159,15 @@ sudo cp ~/openair-cn/ETC/hss_fd.conf /usr/local/etc/oai/freeDiameter |
|
|
In MME configuration file (`/usr/local/etc/oai/mme.conf`):
|
|
|
|
|
|
```
|
|
|
|
|
|
REALM = "openair4G.eur";
|
|
|
|
|
|
S6A :
|
|
|
{
|
|
|
S6A_CONF = "/usr/local/etc/oai/freeDiameter/mme_fd.conf"; # YOUR MME freeDiameter config file path
|
|
|
HSS_HOSTNAME = "hss"; # THE HSS HOSTNAME
|
|
|
};
|
|
|
|
|
|
GUMMEI_LIST = (
|
|
|
{MCC="208" ; MNC="92"; MME_GID="4" ; MME_CODE="1"; } # YOUR GUMMEI CONFIG HERE
|
|
|
);
|
... | ... | @@ -242,6 +254,7 @@ In MME freediameter configuration file (`/usr/local/etc/oai/freeDiameter/mme_fd. |
|
|
```
|
|
|
Identity = "nano.openair4G.eur";
|
|
|
Realm = "openair4G.eur";
|
|
|
ConnectPeer= "hss.openair4G.eur" { ConnectTo = "127.0.0.1"; No_SCTP ; No_IPv6; Prefer_TCP; No_TLS; port = 3868; realm = "openair4G.eur";};
|
|
|
|
|
|
```
|
|
|
|
... | ... | @@ -264,7 +277,187 @@ MYSQL_pass = "linux"; #Put here the root password of mysql database that was p |
|
|
|
|
|
Note that PGW_IPV4_ADDRESS_FOR_SGI is the address used by EPC to access the (external) Internet.
|
|
|
|
|
|
#### 1.2.2 eNB and EPC+HSS on Same Host (**NOT RECOMMENDED SETUP**)
|
|
|
|
|
|
Next, we explain the setup for running eNB and EPC+HSS on same hosts. Assume the IP addresses of eNB/EPC are 192.168.12.82 respectively. We also assume that the interface with which they are connected together is ethernet (eth0).
|
|
|
|
|
|
The contents of /etc/hosts of this machine (calisson) that runs both eNB/EPC is:
|
|
|
|
|
|
```
|
|
|
calisson@calisson:$ cat /etc/hosts
|
|
|
127.0.0.1 localhost
|
|
|
127.0.1.1 calisson.openair4G.eur calisson
|
|
|
127.0.33.1 hss.openair4G.eur hss
|
|
|
|
|
|
calisson@calisson:$ hostname
|
|
|
calisson
|
|
|
```
|
|
|
|
|
|
**If you change the hostname or /etc/hosts, you might need to reboot the computer for hostname settings to take effect!!!**
|
|
|
|
|
|
The hostname of this machine is *calisson*
|
|
|
|
|
|
##### 1.2.1.1 Configure eNB machine (update config files)
|
|
|
|
|
|
Then, make sure the networking parameters are properly specified in eNB and EPC configuration files. In eNB configuration file (`~/openairinterface5g/targets/PROJECT/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf`),
|
|
|
|
|
|
```
|
|
|
tracking_area_code = "1";
|
|
|
mobile_country_code = "208";
|
|
|
mobile_network_code = "92";
|
|
|
|
|
|
|
|
|
////////// MME parameters:
|
|
|
mme_ip_address = ( { ipv4 = "127.0.1.10";
|
|
|
ipv6 = "192:168:30::17";
|
|
|
active = "yes";
|
|
|
preference = "ipv4";
|
|
|
}
|
|
|
);
|
|
|
NETWORK_INTERFACES :
|
|
|
{
|
|
|
ENB_INTERFACE_NAME_FOR_S1_MME = "lo";
|
|
|
ENB_IPV4_ADDRESS_FOR_S1_MME = "127.0.1.2/8";
|
|
|
|
|
|
ENB_INTERFACE_NAME_FOR_S1U = "lo";
|
|
|
ENB_IPV4_ADDRESS_FOR_S1U = "127.0.6.2/8";
|
|
|
ENB_PORT_FOR_S1U = 2152; # Spec 2152
|
|
|
};
|
|
|
```
|
|
|
|
|
|
where mme_ip_address is network interface's IP address of your EPC/HSS, and NETWORK_INTERFACE is your eNB related network interface information.
|
|
|
|
|
|
##### 1.2.1.2 Configure EPC machine (update config files)
|
|
|
|
|
|
Copy the EPC config files in /usr/local/etc/oai
|
|
|
```
|
|
|
sudo mkdir -p /usr/local/etc/oai/freeDiameter
|
|
|
sudo cp ~/openair-cn/ETC/mme.conf /usr/local/etc/oai
|
|
|
sudo cp ~/openair-cn/ETC/hss.conf /usr/local/etc/oai
|
|
|
sudo cp ~/openair-cn/ETC/spgw.conf /usr/local/etc/oai
|
|
|
sudo cp ~/openair-cn/ETC/acl.conf /usr/local/etc/oai/freeDiameter
|
|
|
sudo cp ~/openair-cn/ETC/mme_fd.conf /usr/local/etc/oai/freeDiameter
|
|
|
sudo cp ~/openair-cn/ETC/hss_fd.conf /usr/local/etc/oai/freeDiameter
|
|
|
```
|
|
|
|
|
|
In MME configuration file (`/usr/local/etc/oai/mme.conf`):
|
|
|
|
|
|
```
|
|
|
REALM = "openair4G.eur";
|
|
|
|
|
|
S6A :
|
|
|
{
|
|
|
S6A_CONF = "/usr/local/etc/oai/freeDiameter/mme_fd.conf"; # YOUR MME freeDiameter config file path
|
|
|
HSS_HOSTNAME = "hss"; # THE HSS HOSTNAME
|
|
|
};
|
|
|
|
|
|
GUMMEI_LIST = (
|
|
|
{MCC="208" ; MNC="92"; MME_GID="4" ; MME_CODE="1"; } # YOUR GUMMEI CONFIG HERE
|
|
|
);
|
|
|
|
|
|
TAI_LIST = (
|
|
|
{MCC="208" ; MNC="92"; TAC = "1"; } # YOUR PLMN CONFIG HERE
|
|
|
);
|
|
|
|
|
|
NETWORK_INTERFACES :
|
|
|
{
|
|
|
# MME binded interface for S1-C or S1-MME communication (S1AP), can be ethernet interface, virtual ethernet interface, we don't advise wireless interfaces
|
|
|
MME_INTERFACE_NAME_FOR_S1_MME = "lo"; # YOUR NETWORK CONFIG HERE
|
|
|
MME_IPV4_ADDRESS_FOR_S1_MME = "127.0.1.10/8"; # YOUR NETWORK CONFIG HERE
|
|
|
|
|
|
# MME binded interface for S11 communication (GTPV2-C)
|
|
|
MME_INTERFACE_NAME_FOR_S11_MME = "lo"; # YOUR NETWORK CONFIG HERE
|
|
|
MME_IPV4_ADDRESS_FOR_S11_MME = "127.0.8.11/8"; # YOUR NETWORK CONFIG HERE
|
|
|
MME_PORT_FOR_S11_MME = 2123; # YOUR NETWORK CONFIG HERE
|
|
|
};
|
|
|
|
|
|
S-GW :
|
|
|
{
|
|
|
# S-GW binded interface for S11 communication (GTPV2-C), if none selected the ITTI message interface is used
|
|
|
SGW_IPV4_ADDRESS_FOR_S11 = "127.0.8.1/8"; # YOUR NETWORK CONFIG HERE
|
|
|
|
|
|
};
|
|
|
|
|
|
```
|
|
|
|
|
|
In SPGW configuration file (`/usr/local/etc/oai/spgw.conf`):
|
|
|
```
|
|
|
S-GW :
|
|
|
{
|
|
|
NETWORK_INTERFACES :
|
|
|
{
|
|
|
# S-GW binded interface for S11 communication (GTPV2-C), if none select$
|
|
|
SGW_INTERFACE_NAME_FOR_S11 = "lo"; $
|
|
|
SGW_IPV4_ADDRESS_FOR_S11 = "127.0.8.1/8"; $
|
|
|
|
|
|
# S-GW binded interface for S1-U communication (GTPV1-U) can be etherne$
|
|
|
SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP = "lo"; $
|
|
|
SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP = "127.0.6.1/8"; $
|
|
|
SGW_IPV4_PORT_FOR_S1U_S12_S4_UP = 2152; $
|
|
|
|
|
|
# S-GW binded interface for S5 or S8 communication, not implemented, so$
|
|
|
SGW_INTERFACE_NAME_FOR_S5_S8_UP = "none"; $
|
|
|
SGW_IPV4_ADDRESS_FOR_S5_S8_UP = "0.0.0.0/24"; $
|
|
|
};
|
|
|
...
|
|
|
}
|
|
|
|
|
|
|
|
|
P-GW =
|
|
|
{
|
|
|
NETWORK_INTERFACES :
|
|
|
{
|
|
|
# P-GW binded interface for S5 or S8 communication, not implemented, so leave it to none
|
|
|
PGW_INTERFACE_NAME_FOR_S5_S8 = "none"; # DO NOT CHANGE (NOT IMPLEMENTED YET)
|
|
|
PGW_IPV4_ADDRESS_FOR_S5_S8 = "0.0.0.0/24"; # DO NOT CHANGE (NOT IMPLEMENTED YET)
|
|
|
|
|
|
# P-GW binded interface for SGI (egress/ingress internet traffic)
|
|
|
PGW_INTERFACE_NAME_FOR_SGI = "eth0"; # YOUR NETWORK CONFIG HERE
|
|
|
PGW_IPV4_ADDRESS_FOR_SGI = "192.168.12.82/24"; # YOUR NETWORK CONFIG HERE
|
|
|
PGW_MASQUERADE_SGI = "yes"; # YOUR NETWORK CONFIG HERE
|
|
|
};
|
|
|
...
|
|
|
# DNS address communicated to UEs
|
|
|
DEFAULT_DNS_IPV4_ADDRESS = "192.168.106.12"; # YOUR NETWORK CONFIG HERE
|
|
|
DEFAULT_DNS_SEC_IPV4_ADDRESS = "192.168.12.100"; # YOUR NETWORK CONFIG HERE
|
|
|
|
|
|
...
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
In HSS freediameter configuration file (`/usr/local/etc/oai/freeDiameter/hss_fd.conf`):
|
|
|
```
|
|
|
Identity = "hss.openair4G.eur";
|
|
|
Realm = "openair4G.eur";
|
|
|
|
|
|
```
|
|
|
|
|
|
In MME freediameter configuration file (`/usr/local/etc/oai/freeDiameter/mme_fd.conf`):
|
|
|
```
|
|
|
Identity = "calisson.openair4G.eur";
|
|
|
Realm = "openair4G.eur";
|
|
|
ConnectPeer= "hss.openair4G.eur" { ConnectTo = "127.0.33.1"; No_SCTP ; No_IPv6; Prefer_TCP; No_TLS; port = 3868; realm = "openair4G.eur";};
|
|
|
|
|
|
```
|
|
|
|
|
|
In HSS configuration file (`/usr/local/etc/oai/hss.conf`):
|
|
|
```
|
|
|
MYSQL_user = "root";
|
|
|
MYSQL_pass = "linux"; #Put here the root password of mysql database that was provided during installation
|
|
|
```
|
|
|
|
|
|
**Example configuration files for working setup**
|
|
|
[enb.band7.tm1.usrpb210.conf](/uploads/e08eebbf85c7623fac9bbba2790a1579/enb.band7.tm1.usrpb210.conf)
|
|
|
[spgw.conf](/uploads/925c683f95210e6731893bdb6bb4a1d1/spgw.conf)
|
|
|
[mme.conf](/uploads/45692cad7415309bad958362e4820722/mme.conf)
|
|
|
[mme_fd.conf](/uploads/2bd4c8d20208284604e281fc3c065aad/mme_fd.conf)
|
|
|
[hss.conf](/uploads/01c71c24a5912a63285763dbab457b8a/hss.conf)
|
|
|
[hss_fd.conf](/uploads/f3a874b4eec8e3c906801e6952a2a046/hss_fd.conf)
|
|
|
[acl.conf](/uploads/232f53f0cec1feb0060676d2d9e05760/acl.conf)
|
|
|
|
|
|
|
|
|
Note that PGW_IPV4_ADDRESS_FOR_SGI is the address used by EPC to access the (external) Internet.
|
|
|
#### 1.3.1 Running eNB, EPC and HSS (Assuming eNB, EPC, HSS are on same machine)
|
|
|
|
|
|
##### Compile & Run EPC:
|
... | ... | @@ -543,4 +736,3 @@ sudo insmod ~/trunk/targets/bin/xt_GTPUSP.ko |
|
|
* [figure_local_eNB_EPC.png](HowToConnectCOTSUEwithOAIeNB/figure_local_eNB_EPC.png)
|
|
|
* [huawei_apn.png](HowToConnectCOTSUEwithOAIeNB/huawei_apn.png)
|
|
|
|
|
|
-- @Xuhang.Ying, @Virgilios.Passas - 25 Jul 2015 |