forked from acouzens/open5gs
ipv6 address is changed
This commit is contained in:
parent
bd424f3a08
commit
e424e554d7
|
@ -24,11 +24,13 @@ AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS.
|
|||
AC_CONFIG_SRCDIR([main.c])
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
LO_DEV="lo0"
|
||||
case $host in
|
||||
*linux*)
|
||||
OSDIR="unix"
|
||||
OSCPPFLAGS="-DLINUX=1"
|
||||
IPFW_CPPFLAGS="-DNEED_SYSCTLBYNAME -DNEED_SIN_LEN"
|
||||
LO_DEV="lo"
|
||||
;;
|
||||
*-apple-darwin*)
|
||||
OSDIR="unix"
|
||||
|
@ -41,6 +43,7 @@ esac
|
|||
AC_SUBST(OSCPPFLAGS)
|
||||
AC_SUBST(OSDIR)
|
||||
AC_SUBST(IPFW_CPPFLAGS)
|
||||
AC_SUBST(LO_DEV)
|
||||
|
||||
AH_TOP([
|
||||
#ifndef __NEXTEPC_CONFIG_H__
|
||||
|
|
|
@ -87,8 +87,6 @@ mme:
|
|||
# name: localhost
|
||||
#
|
||||
s1ap:
|
||||
- addr: 127.0.0.1
|
||||
- addr: ::1
|
||||
|
||||
#
|
||||
# <GTP-C Server>>
|
||||
|
@ -164,48 +162,46 @@ sgw:
|
|||
#
|
||||
# o Specify SGW addresses the GTP-C must connect to
|
||||
#
|
||||
# o One SGW is defined. If prefer_ipv4 is not true, [fec0::2] is selected.
|
||||
# o One SGW is defined. If prefer_ipv4 is not true, [fe80::2%@LO_DEV@] is selected.
|
||||
# gtpc:
|
||||
# addr:
|
||||
# - 127.0.0.2
|
||||
# - fec0::2
|
||||
# - fe80::2%@LO_DEV@
|
||||
#
|
||||
# o Two SGW are defined. MME selects SGW with round-robin manner per UE
|
||||
# gtpc:
|
||||
# - addr: 127.0.0.2
|
||||
# - addr: fec0::2
|
||||
# - addr: fe80::2%@LO_DEV@
|
||||
#
|
||||
# o Three SGW are defined. MME selects SGW with round-robin manner per UE
|
||||
# gtpc:
|
||||
# - addr
|
||||
# - 127.0.0.2
|
||||
# - fec0::2
|
||||
# - fe80::2%@LO_DEV@
|
||||
# - addr
|
||||
# - 127.0.0.12
|
||||
# - fec0::12
|
||||
# - addr
|
||||
# - 127.0.0.22
|
||||
# - fec0::22
|
||||
# - name: sgw3.nextepc.org
|
||||
#
|
||||
# ------------------------ SGW --------------------------
|
||||
#
|
||||
# o Specify local addresses the GTP-C server must bind to
|
||||
#
|
||||
# o GTP-C Server(127.0.0.2:2123, [fec0::2]:2123)
|
||||
# o GTP-C Server(127.0.0.2:2123, [fe80::2%@LO_DEV@]:2123)
|
||||
# gtpc:
|
||||
# addr:
|
||||
# - 127.0.0.2
|
||||
# - fec0::2
|
||||
# - fe80::2%@LO_DEV@
|
||||
#
|
||||
# o Same configuration(127.0.0.2:2123, [fec0::2]:2123) as below.
|
||||
# o Same configuration(127.0.0.2:2123, [fe80::2%@LO_DEV@]:2123) as below.
|
||||
# gtpc:
|
||||
# - addr: 127.0.0.2
|
||||
# - addr: fec0::2
|
||||
# - addr: fe80::2%@LO_DEV@
|
||||
#
|
||||
gtpc:
|
||||
addr:
|
||||
- 127.0.0.2
|
||||
- fec0::2
|
||||
- fe80::2%@LO_DEV@
|
||||
|
||||
#
|
||||
# <GTP-U Server>>
|
||||
|
@ -233,26 +229,26 @@ pgw:
|
|||
# - addr: 127.0.0.3
|
||||
# - addr: ::3
|
||||
#
|
||||
# o One PGW is defined. if prefer_ipv4 is not true, [fec0::3] is selected.
|
||||
# o One PGW is defined. if prefer_ipv4 is not true, [fe80::2%@LO_DEV@] is selected.
|
||||
# gtpc:
|
||||
# - addr:
|
||||
# - 127.0.0.3
|
||||
# - fec0::3
|
||||
# - fe80::3%@LO_DEV@
|
||||
#
|
||||
# ------------------------ PGW --------------------------
|
||||
#
|
||||
# o Specify local addresses the GTP-C server must bind to
|
||||
#
|
||||
# o GTP-C Server(127.0.0.3:2123, [fec0::3]:2123)
|
||||
# o GTP-C Server(127.0.0.3:2123, [fe80::3%@LO_DEV@]:2123)
|
||||
# gtpc:
|
||||
# addr:
|
||||
# - 127.0.0.3
|
||||
# - fec0::3
|
||||
# - fe80::3%@LO_DEV@
|
||||
#
|
||||
gtpc:
|
||||
addr:
|
||||
- 127.0.0.3
|
||||
- fec0::3
|
||||
- fe80::3%@LO_DEV@
|
||||
|
||||
#
|
||||
# <GTP-U Server>>
|
||||
|
@ -262,10 +258,10 @@ pgw:
|
|||
# o GTP-U Server(127.0.0.3:2152, [::3]:2152)
|
||||
# gtpu:
|
||||
# - addr: 127.0.0.3
|
||||
# - addr: fec0::3
|
||||
# - addr: fe80::3%@LO_DEV@
|
||||
gtpu:
|
||||
- addr: 127.0.0.3
|
||||
- addr: fec0::3
|
||||
- addr: fe80::3%@LO_DEV@
|
||||
|
||||
#
|
||||
# <UE network>
|
||||
|
|
|
@ -8,17 +8,17 @@ if [ "$SYSTEM" = "Linux" ]; then
|
|||
fi
|
||||
ip addr add 45.45.0.1/16 dev pgwtun
|
||||
ip link set pgwtun up
|
||||
ip addr add fec0::2 dev lo
|
||||
ip addr add fec0::3 dev lo
|
||||
ip addr add fec0::4 dev lo
|
||||
ip addr add fec0::5 dev lo
|
||||
ip addr add fe80::2 dev lo
|
||||
ip addr add fe80::3 dev lo
|
||||
ip addr add fe80::4 dev lo
|
||||
ip addr add fe80::5 dev lo
|
||||
else
|
||||
ifconfig lo0 alias 127.0.0.2 netmask 255.255.255.255
|
||||
ifconfig lo0 alias 127.0.0.3 netmask 255.255.255.255
|
||||
ifconfig lo0 alias 127.0.0.4 netmask 255.255.255.255
|
||||
ifconfig lo0 alias 127.0.0.5 netmask 255.255.255.255
|
||||
ifconfig lo0 inet6 fec0::2 prefixlen 128
|
||||
ifconfig lo0 inet6 fec0::3 prefixlen 128
|
||||
ifconfig lo0 inet6 fec0::4 prefixlen 128
|
||||
ifconfig lo0 inet6 fec0::5 prefixlen 128
|
||||
ifconfig lo0 inet6 fe80::2 prefixlen 128
|
||||
ifconfig lo0 inet6 fe80::3 prefixlen 128
|
||||
ifconfig lo0 inet6 fe80::4 prefixlen 128
|
||||
ifconfig lo0 inet6 fe80::5 prefixlen 128
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue