mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 23:37:22 +00:00
Now, we'll use loopback interface for internal socket
This commit is contained in:
parent
074b7b41e8
commit
6b8cdafbbd
1 changed files with 10 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue