Now, we'll use loopback interface for internal socket

This commit is contained in:
Sukchan Lee 2017-10-20 19:15:58 +09:00
parent 074b7b41e8
commit 6b8cdafbbd

View file

@ -1,24 +1,17 @@
#!/bin/sh
if [ 1 -ne $# ]
then
echo You must specify interface name : ./netconfig.sh eth0
exit;
fi
SYSTEM=`uname`;
if [ "$SYSTEM" = "Linux" ]; then
ifconfig $1:hss 10.1.35.214/32 up
ifconfig $1:mme 10.1.35.215/32 up
ifconfig $1:sgw 10.1.35.216/32 up
ifconfig $1:pcrf 10.1.35.218/32 up
ifconfig $1:pgw 10.1.35.219/32 up
ifconfig lo:hss 10.1.35.214 netmask 255.255.255.255 up
ifconfig lo:mme 10.1.35.215 netmask 255.255.255.255 up
ifconfig lo:sgw 10.1.35.216 netmask 255.255.255.255 up
ifconfig lo:pcrf 10.1.35.218 netmask 255.255.255.255 up
ifconfig lo:pgw 10.1.35.219 netmask 255.255.255.255 up
else
ifconfig $1 alias 10.1.35.214 netmask 255.255.255.255
ifconfig $1 alias 10.1.35.215 netmask 255.255.255.255
ifconfig $1 alias 10.1.35.216 netmask 255.255.255.255
ifconfig $1 alias 10.1.35.218 netmask 255.255.255.255
ifconfig $1 alias 10.1.35.219 netmask 255.255.255.255
ifconfig lo0 alias 10.1.35.214 netmask 255.255.255.255
ifconfig lo0 alias 10.1.35.215 netmask 255.255.255.255
ifconfig lo0 alias 10.1.35.216 netmask 255.255.255.255
ifconfig lo0 alias 10.1.35.218 netmask 255.255.255.255
ifconfig lo0 alias 10.1.35.219 netmask 255.255.255.255
fi