]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
update ifconfig.bat with current test interfaces
authorEvan Hunt <each@isc.org>
Tue, 22 Jan 2019 22:31:26 +0000 (14:31 -0800)
committerEvan Hunt <each@isc.org>
Fri, 25 Jan 2019 18:43:10 +0000 (10:43 -0800)
the addresses set up in ifconfig.bat were out of sync with the
ones in ifconfig.sh

bin/tests/system/ifconfig.bat

index 0d87c796fd6a20d2329123e98f44af5e62969564..d4ba3f2dc71034d2557c079ed0b26c8c4bec2b66 100644 (file)
@@ -9,10 +9,13 @@ rem file, You can obtain one at http://mozilla.org/MPL/2.0/.
 rem ifconfig.bat
 rem Set up interface aliases for bind9 system tests.
 rem
-rem IPv4: 10.53.0.{1..8}                       RFC 1918
-rem IPv6: fd92:7065:b8e:ffff::{1..8}           ULA
+rem IPv4: 10.53.0.{1..10}                      RFC 1918
+rem       10.53.1.{0..2}
+rem       10.53.2.{0..2}
+rem IPv6: fd92:7065:b8e:ffff::{1..10}          ULA
+rem       fd92:7065:b8e:99ff::{1..2}
+rem       fd92:7065:b8e:ff::{1..2}
 rem
-
 echo Please adapt this script to your system
 rem remove the following line when the script is ready
 exit /b 1
@@ -30,5 +33,12 @@ echo on
 
 FOR %%I IN (1,2,3,4,5,6,7,8) DO (
        netsh interface ipv4 add address name=Loopback 10.53.0.%%I 255.255.255.0
-       netsh interface ipv6 add address interface=Ethernet fd92:7065:b8e:ffff::%%I/64
+       netsh interface ipv6 add address interface=Loopback fd92:7065:b8e:ffff::%%I/64
+)
+FOR %%I IN (1,2) DO (
+       netsh interface ipv4 add address name=Loopback 10.53.1.%%I 255.255.255.0
+       netsh interface ipv4 add address name=Loopback 10.53.2.%%I 255.255.255.0
+
+       netsh interface ipv6 add address interface=Loopback fd92:7065:b8e:99ff::%%I/64
+       netsh interface ipv6 add address interface=Loopback fd92:7065:b8e:ff::%%I/64
 )