my $ip;
if ($switch == 1) {
- $ip = "87.76." . ($row - 1) . "1";
+ $ip = "87.76." . ($row) . ".1";
} elsif ($switch == 2) {
- $ip = "87.76." . ($row - 1) . "65";
+ $ip = "87.76." . ($row) . ".65";
} elsif ($switch == 3) {
- $ip = "87.76." . ($row - 1) . "129";
+ $ip = "87.76." . ($row) . ".129";
} elsif ($switch == 4) {
- $ip = "87.76." . $row . "1";
+ $ip = "87.76." . ($row + 1) . ".1";
} elsif ($switch == 5) {
- $ip = "87.76." . $row . "65";
+ $ip = "87.76." . ($row + 1) . ".65";
} elsif ($switch == 6) {
- $ip = "87.76." . $row . "129";
+ $ip = "87.76." . ($row + 1) . ".129";
}
my $vlan = "$row$switch";
ip igmp snooping
storm-control broadcast level 2
no shutdown
-
+!
EOF
}
open DISTRO, ">$distro-config"
or die "$distro-config: $!";
print DISTRO $distros{$distro};
+ print DISTRO "end\n";
close DISTRO;
}
./config/make-named-secondary.pl | ssh root@insert 'cat > /etc/bind/named.conf'
./config/make-missing-zones.pl
(cd mbd && ./generate-helper-list.pl > ../mbd-ports)
+./config/make-port-config.pl
scp mbd-ports *-config sesse@f1:/tftpboot/portcfg/