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!
ifconfig
? it seems you are defining aliases for 4 ip addresses (ifconfig binds an ip to an interface, not a network), you may want to define eth0 (regular/'real' ip), and different eth0:x aliases for each hostmodprobe dummy numdummies=2