I'm trying to create multiple subnets on a Wheezy server, where I can run multiple virtual machines off of each subnet. Initially, I'd like to create 2 and I've gotten one of the subnets working, but can't seem to get the second one going.
My /etc/network/interfaces includes:
iface eth0 inet manual
up ip link set $IFACE up promisc on
down ip link set $IFACE down promisc off
auto dummy0
iface dummy0 inet static
address 10.1.1.1
netmask 255.255.255.0
auto dummy1
iface dummy1 inet static
address 10.1.2.1
netmask 255.255.255.0
#VirtualMachineDummy0
auto dummy0:245
allow-hotplug dummy0:245
iface dummy0:245 inet static
address 10.1.1.245
netmask 255.255.255.0
#SubNet2
auto dummy1:111
allow-hotplug dummy1:111
iface dummy1:1 inet static
address 10.1.2.111
netmask 255.255.255.0
I can ping 10.1.1.245 and the virtual machine has connectivity, but I cannot ping 10.1.2.1 or 10.1.2.111.
FYI: along the way, I have tried disabling ipv6 and adding:
touch /etc/modprobe.d/local
echo "options dummy numdummies=2" > /etc/modprobe.d/local
Any suggestions as to how to fix this? Thanks!
You seem to be stuttering. You only need one of these, or in your case none of these.
I would adjust your configuration like this. This skips the unneeded and deprecated 'alias' style syntax, and the
auto device
is only applied to physical devices.You might also be running into a limitation on the number of dummy interfaces. Depending on the kernel in use this may be limited to a relatively small number. The dummy module supports the
numdummies=N
option.