version 1.2.2.1, 2015/03/05 22:58:33
|
version 1.2.2.2, 2015/03/05 23:23:09
|
Line 8 VLANDEV="em0"
|
Line 8 VLANDEV="em0"
|
OPTS="" |
OPTS="" |
#IP="auto" |
#IP="auto" |
IP="192.168.0.1/24" |
IP="192.168.0.1/24" |
|
ALIASES="" |
#IP6="auto" |
#IP6="auto" |
IP6="" |
IP6="" |
|
ALIASES6="" |
|
|
[ -z "$IFACE" -o -z "$VLANDEV" ] && exit |
[ -z "$IFACE" -o -z "$VLANDEV" ] && exit |
|
|
Line 23 if [ -n "$IP" ]; then
|
Line 25 if [ -n "$IP" ]; then
|
ifconfig $IFACE inet $IP |
ifconfig $IFACE inet $IP |
fi |
fi |
fi |
fi |
|
for i in $ALIASES; do |
|
ifconfig $IFACE inet alias $i |
|
done |
if [ -n "$IP6" ]; then |
if [ -n "$IP6" ]; then |
if [ "$IP" = "auto" ]; then |
if [ "$IP" = "auto" ]; then |
ifconfig $IFACE accept_rtadv |
ifconfig $IFACE accept_rtadv |
Line 30 if [ -n "$IP6" ]; then
|
Line 35 if [ -n "$IP6" ]; then
|
ifconfig $IFACE inet6 $IP6 |
ifconfig $IFACE inet6 $IP6 |
fi |
fi |
fi |
fi |
|
for i in $ALIASES6; do |
|
ifconfig $IFACE inet6 alias $i |
|
done |
ifconfig $IFACE $OPTS up |
ifconfig $IFACE $OPTS up |