update netconfig.sh

This commit is contained in:
Sukchan Lee 2017-10-20 23:51:54 +09:00
parent 6b8cdafbbd
commit f6f1720fee
1 changed files with 13 additions and 1 deletions

View File

@ -8,10 +8,22 @@ if [ "$SYSTEM" = "Linux" ]; then
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
elif [ "$SYSTEM" = "Darwin" ]; then
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
else
if [ 1 -ne $# ]
then
echo You must specify output directory : ./netconfig.sh em0
exit;
fi
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
fi