mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-05 04:42:23 +08:00
13 lines
165 B
Bash
13 lines
165 B
Bash
#!/bin/sh
|
|
|
|
IP="10.127.x.x"
|
|
|
|
case `uname` in
|
|
Linux)
|
|
ip link set $INTERFACE up
|
|
ip addr add "$IP" dev $INTERFACE
|
|
;;
|
|
*BSD)
|
|
ifconfig $INTERFACE "$IP"
|
|
;;
|
|
esac
|