# Variables used for the various interfaces:
#
-my $ip = '192.168.0.2';
-my $nm = '255.255.255.0';
+my $ip = '192.168.0.2/24';
my $gw = '192.168.0.1';
my $svcnodeip = '239.192.105.237';
my $physdev = 'eth0';
my $vmbr0_part = <<"PART";
auto vmbr0
iface vmbr0 inet static
- address 10.0.0.2
- netmask 255.255.255.0
+ address 10.0.0.2/24
gateway 10.0.0.1
bridge-ports eth0
bridge-stp off
type => 'eth',
method => 'static',
address => $ip,
- netmask => $nm,
gateway => $gw,
families => ['inet'],
autostart => 1
auto eth1
iface eth1 inet static
address $ip
- netmask $nm
gateway $gw
PART
chomp $eth1_part;
auto eth1
iface eth1 inet6 static
address $ip
- netmask $nm
gateway $gw
iface eth2 inet manual
auto vmbr0
iface vmbr0 inet static
- address 10.0.0.2
- netmask 255.255.255.0
+ address 10.0.0.2/24
gateway 10.0.0.1
bridge-ports eth0
bridge-stp off