Hello,
* EDIT * This block is static not portable
I'm having problems assigning IPs from my /28 subnet (SL Static Block) to my VMs. I was able to get the VMs to ping the host and gateway but they can't reach the internet.
Host:
All IPs are supposed to be usable but I had to leave 3 out for the network, gateway and broadcast.
Guest:
I am also able to ping the VM from the host:
Thanks
* EDIT * This block is static not portable
I'm having problems assigning IPs from my /28 subnet (SL Static Block) to my VMs. I was able to get the VMs to ping the host and gateway but they can't reach the internet.
Host:
Code:
auto lo
iface lo inet loopback
# device: eth1
auto eth1
iface eth1 inet static
address 0.0.0.146
netmask 255.255.255.248
gateway 0.0.0.141
auto vmbr0
iface vmbr0 inet static
address 0.0.0.94 (Using as gateway for VMs)
netmask 255.255.255.240
bridge_ports none
bridge_stp off
bridge_fd 0
# Extra IPs
#up ip route add 0.0.0.92/28 dev vmbr0 Network
#up ip route add 0.0.0.93/28 dev vmbr0 Gateway up ip route add 0.0.0.94/28 dev vmbr0
up ip route add 0.0.0.95/28 dev vmbr0
up ip route add 0.0.0.96/28 dev vmbr0
up ip route add 0.0.0.97/28 dev vmbr0
up ip route add 0.0.0.98/28 dev vmbr0
up ip route add 0.0.0.99/28 dev vmbr0
up ip route add 0.0.0.100/28 dev vmbr0
up ip route add 0.0.0.101/28 dev vmbr0
up ip route add 0.0.0.102/28 dev vmbr0
up ip route add 0.0.0.103/28 dev vmbr0
up ip route add 0.0.0.104/28 dev vmbr0
up ip route add 0.0.0.105/28 dev vmbr0
up ip route add 0.0.0.106/28 dev vmbr0
# up ip route add 0.0.0.107/28 dev vmbr0 Broadcast
All IPs are supposed to be usable but I had to leave 3 out for the network, gateway and broadcast.
Guest:
Code:
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 0.0.0.95
netmask 255.255.255.240
network 0.0.0.92
broadcast 0.0.0.107
gateway 0.0.0.94
I am also able to ping the VM from the host:
Code:
# ping 0.0.0.95
PING 0.0.0.95 (0.0.0.95) 56(84) bytes of data.
64 bytes from 0.0.0.95: icmp_ seq=1 ttl=64 time=0.119 ms
64 bytes from 0.0.0.95: icmp_ seq=2 ttl=64 time=0.126 ms
64 bytes from 0.0.0.95: icmp_ seq=3 ttl=64 time=0.102 ms
Thanks
Last edited: