[PVE-User] Can't use second subnet

Neil Aggarwal neil at JAMMConsulting.com
Sat Mar 26 18:16:52 CET 2011


Hey all:

> I read that I need to set up a bridge for the second
> subnet, but I am not sure how to do that.

I have been doing some more playing with it and I think
I got it working.  Here is what I am doing:

If a VM is going to be on the same subnet as the host
machine, use the Virtual Network (venet) network type
and assign it an IP address when creating it.

If a VM is going to be on a different subnet as the
host machine, use the Bridged Ethernet (veth) Network
Type and assign it to the vmbr0 bridge.  Then using
the console, edit these files to set up the network:

/etc/sysconfig/network:
NETWORKING="yes"
GATEWAY="[IP of the gateway]"
HOSTNAME="[fully qualified host name]"

/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
ONBOOT=yes
IPADDR=[IP of the machine]
NETMASK=[Netmask IP] 

Did I miss anything?

Thanks,	
	Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 5.5 preinstalled
Unmetered bandwidth = no overage charges 




More information about the pve-user mailing list