This commit is contained in:
Sukchan Lee 2017-12-08 06:30:15 +00:00
parent e424e554d7
commit f069f19185
2 changed files with 24 additions and 24 deletions

View File

@ -162,22 +162,22 @@ sgw:
#
# o Specify SGW addresses the GTP-C must connect to
#
# o One SGW is defined. If prefer_ipv4 is not true, [fe80::2%@LO_DEV@] is selected.
# o One SGW is defined. If prefer_ipv4 is not true, [fec0::2] is selected.
# gtpc:
# addr:
# - 127.0.0.2
# - fe80::2%@LO_DEV@
# - fec0::2
#
# o Two SGW are defined. MME selects SGW with round-robin manner per UE
# gtpc:
# - addr: 127.0.0.2
# - addr: fe80::2%@LO_DEV@
# - addr: fec0::2
#
# o Three SGW are defined. MME selects SGW with round-robin manner per UE
# gtpc:
# - addr
# - 127.0.0.2
# - fe80::2%@LO_DEV@
# - fec0::2
# - addr
# - 127.0.0.12
# - fec0::12
@ -187,21 +187,21 @@ sgw:
#
# o Specify local addresses the GTP-C server must bind to
#
# o GTP-C Server(127.0.0.2:2123, [fe80::2%@LO_DEV@]:2123)
# o GTP-C Server(127.0.0.2:2123, [fec0::2]:2123)
# gtpc:
# addr:
# - 127.0.0.2
# - fe80::2%@LO_DEV@
# - fec0::2
#
# o Same configuration(127.0.0.2:2123, [fe80::2%@LO_DEV@]:2123) as below.
# o Same configuration(127.0.0.2:2123, [fec0::2]:2123) as below.
# gtpc:
# - addr: 127.0.0.2
# - addr: fe80::2%@LO_DEV@
# - addr: fec0::2
#
gtpc:
addr:
- 127.0.0.2
- fe80::2%@LO_DEV@
- fec0::2
#
# <GTP-U Server>>
@ -229,26 +229,26 @@ pgw:
# - addr: 127.0.0.3
# - addr: ::3
#
# o One PGW is defined. if prefer_ipv4 is not true, [fe80::2%@LO_DEV@] is selected.
# o One PGW is defined. if prefer_ipv4 is not true, [fec0::2] is selected.
# gtpc:
# - addr:
# - 127.0.0.3
# - fe80::3%@LO_DEV@
# - fec0::3
#
# ------------------------ PGW --------------------------
#
# o Specify local addresses the GTP-C server must bind to
#
# o GTP-C Server(127.0.0.3:2123, [fe80::3%@LO_DEV@]:2123)
# o GTP-C Server(127.0.0.3:2123, [fec0::3]:2123)
# gtpc:
# addr:
# - 127.0.0.3
# - fe80::3%@LO_DEV@
# - fec0::3
#
gtpc:
addr:
- 127.0.0.3
- fe80::3%@LO_DEV@
- fec0::3
#
# <GTP-U Server>>
@ -258,10 +258,10 @@ pgw:
# o GTP-U Server(127.0.0.3:2152, [::3]:2152)
# gtpu:
# - addr: 127.0.0.3
# - addr: fe80::3%@LO_DEV@
# - addr: fec0::3
gtpu:
- addr: 127.0.0.3
- addr: fe80::3%@LO_DEV@
- addr: fec0::3
#
# <UE network>

View File

@ -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 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
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
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 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
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
fi