guest KVM access to both subnets

yaboc

Renowned Member
Nov 13, 2012
90
3
73
Hi

I have SAN + one proxmox host setup with multiple KVM guests.

SAN ISCSI is on it's own 192.168.1.0 network, proxmox host has two nics set up with static ip for each network (san, lan)

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.18.66.3
netmask 255.255.255.0
gateway 10.18.66.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.1.3
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_fd 0

now when add another NIC to kvm (win xp) bridged to vmbr1 and in guest KVM i assign static ip on the san subnet im unable to ping san, san switch.
i basically want to use one of the KVMs accessible from my LAN, to be able to access my SAN box.


Thanks for any advice

y
 
Can you from the host ping the SAN?
Can you from the KVM guest ping anything on the 1.0 network? Can it ping the host on the 1.0 network?
 
Probably you are using two gateways and if you trace-route 192.168.1.x it will try to find this IP through router/gateway 10.18.66.1. So i guess you need to add permanent route and remove gateway setting from second NIC:

Code:
[B]route add[/B] -p [I]destination[/I] [B]mask[/B] [I]subnetmask[/I] [I]gateway[/I]
 
it's weird but i readded the virtual NIC bridget to SAN physical NIC gave it static IP on SAN network and i'm able to ping the SAN network thus able to access SAN machine for managment. THANKS!
 
Last edited: