2010-08-25 00:51:51 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-28 21:39:47 -04:00
|
|
|
#
|
2010-08-25 00:51:51 -04:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
2021-06-03 02:37:05 -04:00
|
|
|
#
|
2010-08-25 00:51:51 -04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
#
|
2010-08-25 00:51:51 -04:00
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
|
|
|
|
|
2022-08-31 16:09:06 -04:00
|
|
|
# see also ifconfig.sh.in and testsock.pl
|
|
|
|
|
|
2022-03-15 13:01:34 -04:00
|
|
|
ifup() {
|
|
|
|
|
/sbin/ifconfig lo0 10.53.$1.$3 alias
|
|
|
|
|
/sbin/ifconfig lo0 inet6 fd92:7065:b8e:${2}ff::${3} alias
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-31 16:09:06 -04:00
|
|
|
for ns in 1 2 3 4 5 6 7 8 9 10 11
|
2022-03-15 13:01:34 -04:00
|
|
|
do
|
|
|
|
|
ifup 0 ff $ns
|
|
|
|
|
done
|
|
|
|
|
for ns in 1 2
|
2010-08-25 00:51:51 -04:00
|
|
|
do
|
2022-03-15 13:01:34 -04:00
|
|
|
ifup 1 99 $ns
|
|
|
|
|
ifup 2 00 $ns
|
2010-08-25 00:51:51 -04:00
|
|
|
done
|